Mercurial > hg > svcore
comparison plugin/plugins/SamplePlayer.cpp @ 1189:63b73a21bccd spectrogram-minor-refactor
Small fix to compiler warning
author | Chris Cannam |
---|---|
date | Thu, 23 Jun 2016 08:45:52 +0100 |
parents | b14064bd1f97 |
children | 1c9bbbb6116a |
comparison
equal
deleted
inserted
replaced
1188:d9698ee93659 | 1189:63b73a21bccd |
---|---|
569 | 569 |
570 if (m_retune && *m_retune) { | 570 if (m_retune && *m_retune) { |
571 if (m_concertA) { | 571 if (m_concertA) { |
572 ratio *= *m_concertA / 440.f; | 572 ratio *= *m_concertA / 440.f; |
573 } | 573 } |
574 if (m_basePitch && n != *m_basePitch) { | 574 if (m_basePitch && float(n) != *m_basePitch) { |
575 ratio *= powf(1.059463094f, float(n) - *m_basePitch); | 575 ratio *= powf(1.059463094f, float(n) - *m_basePitch); |
576 } | 576 } |
577 } | 577 } |
578 | 578 |
579 if (long(pos + m_sampleNo) < m_ons[n]) return; | 579 if (long(pos + m_sampleNo) < m_ons[n]) return; |