mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 09:01:39 -05:00
fix formatting
This commit is contained in:
parent
fe77d3ca63
commit
31a6de2b27
1 changed files with 2 additions and 3 deletions
|
@ -170,8 +170,7 @@ 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 ) {
|
if ( Fl::event_button() == FL_RIGHT_MOUSE ) {
|
||||||
string question = "Enter BPM value (between " + to_string(MIN_TEMPO) + " and "
|
string question = "Enter BPM value (between " + to_string(MIN_TEMPO) + " and " + to_string(MAX_TEMPO) + "):";
|
||||||
+ to_string(MAX_TEMPO) + "):";
|
|
||||||
const char* answer = fl_input(question.c_str());
|
const char* answer = fl_input(question.c_str());
|
||||||
if(answer) {
|
if(answer) {
|
||||||
int bpm = atoi(answer);
|
int bpm = atoi(answer);
|
||||||
|
@ -274,7 +273,7 @@ GMasterTrack::GMasterTrack(int x, int y, int w, int h, const char* l ) :
|
||||||
void GMasterTrack::setBpm( int b )
|
void GMasterTrack::setBpm( int b )
|
||||||
{
|
{
|
||||||
bpm = b;
|
bpm = b;
|
||||||
tempoDial.value( ( bpm - MIN_TEMPO ) / (float)(MAX_TEMPO-MIN_TEMPO) );
|
tempoDial.value( ( bpm - MIN_TEMPO ) / (float)(MAX_TEMPO - MIN_TEMPO) );
|
||||||
std::stringstream s;
|
std::stringstream s;
|
||||||
s << bpm;
|
s << bpm;
|
||||||
tempoDial.copy_label( s.str().c_str() );
|
tempoDial.copy_label( s.str().c_str() );
|
||||||
|
|
Loading…
Add table
Reference in a new issue