mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 09:01:39 -05:00
-Looper records loop lenght better
This commit is contained in:
parent
3f3b934ab5
commit
0443975eb7
1 changed files with 7 additions and 3 deletions
|
@ -71,7 +71,11 @@ void Looper::process(int nframes, Buffers* buffers)
|
||||||
|
|
||||||
void Looper::bar()
|
void Looper::bar()
|
||||||
{
|
{
|
||||||
stopRecordOnBar = false;
|
// queue stop recording -> stop recording, now calculate beats in loop
|
||||||
|
if ( stopRecordOnBar )
|
||||||
|
{
|
||||||
|
stopRecordOnBar = false;
|
||||||
|
}
|
||||||
|
|
||||||
if ( playedBeats >= numBeats )
|
if ( playedBeats >= numBeats )
|
||||||
{
|
{
|
||||||
|
@ -109,11 +113,11 @@ void Looper::bar()
|
||||||
|
|
||||||
void Looper::beat()
|
void Looper::beat()
|
||||||
{
|
{
|
||||||
if (state == STATE_RECORDING)
|
if (state == STATE_RECORDING || stopRecordOnBar )
|
||||||
{
|
{
|
||||||
numBeats++;
|
numBeats++;
|
||||||
}
|
}
|
||||||
playedBeats++; // only reset if we're on the last beat of a loop
|
playedBeats++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Looper::setLoopLength(float l)
|
void Looper::setLoopLength(float l)
|
||||||
|
|
Loading…
Add table
Reference in a new issue