mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 16:51:37 -05:00
add sanity check for bpm value
This commit is contained in:
parent
fe1b68a069
commit
ac6d1fc4cc
1 changed files with 5 additions and 2 deletions
|
@ -173,8 +173,11 @@ static void gmastertrack_button_callback(Fl_Widget *w, void *data)
|
|||
const char* answer = fl_input("Enter BPM value: ");
|
||||
if(answer) {
|
||||
int bpm = atoi(answer);
|
||||
EventTimeBPM e = EventTimeBPM( bpm );
|
||||
writeToDspRingbuffer( &e );
|
||||
|
||||
if ( bpm >= MIN_TEMPO && bpm <= MAX_TEMPO) {
|
||||
EventTimeBPM e = EventTimeBPM( bpm );
|
||||
writeToDspRingbuffer( &e );
|
||||
}
|
||||
}
|
||||
} else {
|
||||
EventTimeTempoTap e;
|
||||
|
|
Loading…
Add table
Reference in a new issue