Disable tempo Dial in Free Record Mode

main
Georg Krause 2019-06-06 15:18:20 +02:00
parent c2c1838756
commit 1574a000f2
4 changed files with 13 additions and 1 deletions

View File

@ -110,7 +110,10 @@ public:
}
cairo_line_to(cr, x+w/2,y+h/2);
cairo_set_line_width(cr, lineWidth);
cairo_set_source_rgba(cr, 1.0, 0.48, 0, 0.8);
if(active())
cairo_set_source_rgba(cr, 1.0, 0.48, 0, 0.8);
else
cairo_set_source_rgba(cr, 1.0, 0.48, 0, 0.4);
cairo_stroke(cr);
cairo_restore( cr );

View File

@ -148,6 +148,7 @@ void handleGuiEvents()
gm->metronomeEnable(!e.enable);
gm->tapEnable(!e.enable);
gm->beatLightEnable(!e.enable);
gm->tempoDialEnable(!e.enable);
}
break;
}

View File

@ -396,6 +396,13 @@ void GMasterTrack::beatLightEnable(bool b) {
}
}
void GMasterTrack::tempoDialEnable(bool b) {
if(b)
tempoDial.activate();
else
tempoDial.deactivate();
}
void
GMasterTrack::setClipLength(int l)
{

View File

@ -65,6 +65,7 @@ public:
void setFreeRecMode(bool e);
void tapEnable(bool b);
void beatLightEnable(bool b);
void tempoDialEnable(bool b);
Avtk::Volume *getInputVolume();
Avtk::Volume* getVolume();