add hint for bpm limits

This commit is contained in:
Georg Krause 2018-03-31 15:22:33 +02:00
parent ac6d1fc4cc
commit fe77d3ca63

View file

@ -170,7 +170,9 @@ static void gmastertrack_button_callback(Fl_Widget *w, void *data)
} else if ( strcmp( w->label(), "Tap" ) == 0 ) {
if ( Fl::event_button() == FL_RIGHT_MOUSE ) {
const char* answer = fl_input("Enter BPM value: ");
string question = "Enter BPM value (between " + to_string(MIN_TEMPO) + " and "
+ to_string(MAX_TEMPO) + "):";
const char* answer = fl_input(question.c_str());
if(answer) {
int bpm = atoi(answer);