comparison plugin/plugins/SamplePlayer.cpp @ 1202:3b84f9bd0048 3.0-integration

Merge work on unified spectrogram and colour 3d plot caching renderer
author Chris Cannam
date Fri, 05 Aug 2016 15:05:02 +0100
parents 63b73a21bccd
children 1c9bbbb6116a
comparison
equal deleted inserted replaced
1185:69c84a66727b 1202:3b84f9bd0048
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;