Skip to content

Commit 31a9e49

Browse files
committed
Pipeline emgerency release via Control bar toggle.
1 parent 619f145 commit 31a9e49

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Applications/Note/Note.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,14 @@ void Note::Setup(const vector<string>& args) {
185185
controlBarToggle.SetName("Control Bar");
186186
controlBarToggle.SetColor(Color(0xFF8000));
187187
controlBarToggle.SetValuePointer(&controlBar);
188-
controlBarToggle.OnPress([&]() -> void {controlBar.Save();});
188+
controlBarToggle.OnPress([&]() -> void {
189+
controlBar.Save();
190+
if(controlBar == false)
191+
{
192+
runtimes[0].midiPipeline.Reset();
193+
runtimes[1].midiPipeline.Reset();
194+
}
195+
});
189196
actionMenu.AddUIComponent(controlBarToggle, Point(0, 7));
190197

191198
UIButton arpConfigBtn;

0 commit comments

Comments
 (0)