mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 17:11:40 -05:00
restyled looper and looperclip
This commit is contained in:
parent
a431ff3868
commit
a2e154a8be
2 changed files with 13 additions and 15 deletions
|
@ -149,8 +149,7 @@ void Looper::process(unsigned int nframes, Buffers* buffers)
|
||||||
if(playSpeed!=1.0f) {
|
if(playSpeed!=1.0f) {
|
||||||
pitchShift( 1, &tmpL, &outL[i] );
|
pitchShift( 1, &tmpL, &outL[i] );
|
||||||
pitchShift( 1, &tmpR, &outR[i] );
|
pitchShift( 1, &tmpR, &outR[i] );
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
outL[i]+=tmpL;
|
outL[i]+=tmpL;
|
||||||
outR[i]+=tmpR;
|
outR[i]+=tmpR;
|
||||||
}
|
}
|
||||||
|
|
|
@ -433,8 +433,7 @@ void LooperClip::getSample(float playSpeed, float* L, float* R)
|
||||||
*L = vL.at(_playhead);
|
*L = vL.at(_playhead);
|
||||||
*R = vR.at(_playhead);
|
*R = vR.at(_playhead);
|
||||||
_playhead +=playSpeed;
|
_playhead +=playSpeed;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
*L = 0.f;
|
*L = 0.f;
|
||||||
*R = 0.f;
|
*R = 0.f;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue