mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 16:51:37 -05:00
-Tap tempo working
This commit is contained in:
parent
19d522b7f7
commit
3f3b934ab5
1 changed files with 9 additions and 0 deletions
|
@ -57,6 +57,7 @@ class TimeManager
|
|||
if ( tapTempoPos < 3 )
|
||||
{
|
||||
tapTempo[tapTempoPos] = frame;
|
||||
tapTempoPos++;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -66,6 +67,14 @@ class TimeManager
|
|||
|
||||
int average = (tapFpb1 + tapFpb2) / 2;
|
||||
setFpb(average);
|
||||
|
||||
char buffer [50];
|
||||
sprintf (buffer, "TM, tap() average = %i", average );
|
||||
EventGuiPrint e( buffer );
|
||||
writeToGuiRingbuffer( &e );
|
||||
|
||||
// reset, so next 3 taps restart process
|
||||
tapTempoPos = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue