mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 16:51:37 -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 ) {
|
||||
EventTimeTempoTap e;
|
||||
writeToDspRingbuffer( &e );
|
||||
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;
|
||||
writeToDspRingbuffer( &e );
|
||||
}
|
||||
} else {
|
||||
LUPPP_WARN("Error: unknown command string");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue