-Fixed bug in time-stretching, needs proper testing but working fine on initial tests

main
Harry van Haaren 2013-09-06 11:26:42 +01:00
parent a0fb8cb5b5
commit c63fa91ff8
1 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,9 @@ void Looper::process(unsigned int nframes, Buffers* buffers)
{
float tmp = clips[clip]->getSample(playSpeed);
float deltaPitch = 12 * log ( playSpeed ) / log (2);
semitoneShift = -deltaPitch;
// write the pitch-shifted signal to the track buffer
pitchShift( 1, &tmp, &out[i] );
}