comparison dsp/segmentation/Segmenter.cpp @ 480:175e51ae78eb

Untabify, indent, tidy
author Chris Cannam <cannam@all-day-breakfast.com>
date Fri, 31 May 2019 10:53:39 +0100
parents 7e8d1f26b098
children d48276a3ae24
comparison
equal deleted inserted replaced
479:7e52c034cf62 480:175e51ae78eb
17 #include "Segmenter.h" 17 #include "Segmenter.h"
18 18
19 ostream& operator<<(ostream& os, const Segmentation& s) 19 ostream& operator<<(ostream& os, const Segmentation& s)
20 { 20 {
21 os << "structure_name : begin_time end_time\n"; 21 os << "structure_name : begin_time end_time\n";
22 22
23 for (int i = 0; i < int(s.segments.size()); i++) { 23 for (int i = 0; i < int(s.segments.size()); i++) {
24 Segment seg = s.segments[i]; 24 Segment seg = s.segments[i];
25 os << std::fixed << seg.type << ':' << '\t' << std::setprecision(6) << seg.start / static_cast<double>(s.samplerate) 25 os << std::fixed << seg.type << ':' << '\t' << std::setprecision(6) << seg.start / static_cast<double>(s.samplerate)
26 << '\t' << std::setprecision(6) << seg.end / static_cast<double>(s.samplerate) << "\n"; 26 << '\t' << std::setprecision(6) << seg.end / static_cast<double>(s.samplerate) << "\n";
27 } 27 }
28 28
29 return os; 29 return os;
30 } 30 }