c@243: /* c@243: * Segmenter.cpp c@243: * c@243: * Created by Mark Levy on 04/04/2006. c@309: * Copyright 2006 Centre for Digital Music, Queen Mary, University of London. c@309: c@309: This program is free software; you can redistribute it and/or c@309: modify it under the terms of the GNU General Public License as c@309: published by the Free Software Foundation; either version 2 of the c@309: License, or (at your option) any later version. See the file c@309: COPYING included with this distribution for more information. c@243: * c@243: */ c@243: c@243: #include c@243: c@243: #include "Segmenter.h" c@243: c@243: ostream& operator<<(ostream& os, const Segmentation& s) c@243: { c@243: os << "structure_name : begin_time end_time\n"; c@243: c@243: for (int i = 0; i < s.segments.size(); i++) c@243: { c@243: Segment seg = s.segments[i]; c@243: os << std::fixed << seg.type << ':' << '\t' << std::setprecision(6) << seg.start / static_cast(s.samplerate) c@243: << '\t' << std::setprecision(6) << seg.end / static_cast(s.samplerate) << "\n"; c@243: } c@243: c@243: return os; c@243: }