comparison layer/SpectrogramLayer.cpp @ 591:0946feb81b79 sonification

Add playExampleNote route through view manager out to the audio play source
author Chris Cannam
date Fri, 24 Jun 2011 16:42:48 +0100
parents 241929c5d57c
children a13aa5320221
comparison
equal deleted inserted replaced
590:241929c5d57c 591:0946feb81b79
3796 3796
3797 midipitch = Pitch::getPitchForFrequency(freq,centsOffsetReturn,concertA); 3797 midipitch = Pitch::getPitchForFrequency(freq,centsOffsetReturn,concertA);
3798 3798
3799 std::cerr<< "Frequency: " << freq << " " << unit.toStdString() << " (midi pitch = " << midipitch << ")" << std::endl; 3799 std::cerr<< "Frequency: " << freq << " " << unit.toStdString() << " (midi pitch = " << midipitch << ")" << std::endl;
3800 3800
3801 v->playExampleNote(midipitch);
3802
3801 return true; 3803 return true;
3804
3802 } else { 3805 } else {
3803 return false; 3806 return false;
3804 } 3807 }
3805 } 3808 }
3806 3809