comparison data/model/WaveFileModel.cpp @ 838:33fca917c800

Add toDelimitedDataString alternative with frame extents
author Chris Cannam
date Wed, 09 Oct 2013 14:47:19 +0100
parents c9fc7728ab0d
children e802e550a1f2
comparison
equal deleted inserted replaced
837:1de00ee53be1 838:33fca917c800
461 461
462 float sample = m_directRead[index]; 462 float sample = m_directRead[index];
463 if (sample > max || got == 0) max = sample; 463 if (sample > max || got == 0) max = sample;
464 if (sample < min || got == 0) min = sample; 464 if (sample < min || got == 0) min = sample;
465 total += fabsf(sample); 465 total += fabsf(sample);
466 466
467 ++i; 467 ++i;
468 ++got; 468 ++got;
469 469
470 if (got == blockSize) { 470 if (got == blockSize) {
471 ranges.push_back(Range(min, max, total / got)); 471 ranges.push_back(Range(min, max, total / got));