comparison plugins/Notes.cpp @ 15:30153569c1a6

* FLOOR -> floor
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Apr 2007 10:14:16 +0000
parents 1169d00391d8
children 8c939fff7ee1
comparison
equal deleted inserted replaced
14:a5e23a7501a2 15:30153569c1a6
393 std::sort(toSort.begin(), toSort.end()); 393 std::sort(toSort.begin(), toSort.end());
394 float median = toSort[toSort.size()/2]; 394 float median = toSort[toSort.size()/2];
395 if (median < 45.0) return; 395 if (median < 45.0) return;
396 396
397 float freq = median; 397 float freq = median;
398 int midiPitch = (int)FLOOR(aubio_freqtomidi(freq) + 0.5); 398 int midiPitch = (int)floor(aubio_freqtomidi(freq) + 0.5);
399 399
400 if (m_avoidLeaps) { 400 if (m_avoidLeaps) {
401 if (m_prevPitch >= 0) { 401 if (m_prevPitch >= 0) {
402 while (midiPitch < m_prevPitch - 12) { 402 while (midiPitch < m_prevPitch - 12) {
403 midiPitch += 12; 403 midiPitch += 12;