mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 09:01:39 -05:00
parent
3fd73ac58c
commit
2c43704b8f
1 changed files with 11 additions and 2 deletions
|
@ -169,8 +169,17 @@ static void gmastertrack_button_callback(Fl_Widget *w, void *data)
|
||||||
|
|
||||||
|
|
||||||
} else if ( strcmp( w->label(), "Tap" ) == 0 ) {
|
} else if ( strcmp( w->label(), "Tap" ) == 0 ) {
|
||||||
|
if ( Fl::event_button() == FL_RIGHT_MOUSE ) {
|
||||||
|
const char* answer = fl_input("Enter BPM value: ");
|
||||||
|
if(answer) {
|
||||||
|
int bpm = atoi(answer);
|
||||||
|
EventTimeBPM e = EventTimeBPM( bpm );
|
||||||
|
writeToDspRingbuffer( &e );
|
||||||
|
}
|
||||||
|
} else {
|
||||||
EventTimeTempoTap e;
|
EventTimeTempoTap e;
|
||||||
writeToDspRingbuffer( &e );
|
writeToDspRingbuffer( &e );
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
LUPPP_WARN("Error: unknown command string");
|
LUPPP_WARN("Error: unknown command string");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue