Commit 1574a000 authored by Georg Krause's avatar Georg Krause

Disable tempo Dial in Free Record Mode

parent c2c18387
Pipeline #304 passed with stages
in 1 minute and 26 seconds
......@@ -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 );
......
......@@ -148,6 +148,7 @@ void handleGuiEvents()
gm->metronomeEnable(!e.enable);
gm->tapEnable(!e.enable);
gm->beatLightEnable(!e.enable);
gm->tempoDialEnable(!e.enable);
}
break;
}
......
......@@ -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)
{
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment