zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 0321d13c497fed163e125590be04a78d26271fc8
parent 73ff4b7b7d33fa481b65b368b96b6ac2ad9d96d1
Author: fundamental <mark.d.mccurry@gmail.com>
Date:   Tue, 17 May 2016 15:22:24 -0400

Add Option To Clear MIDI Learn Bindings

Diffstat:
Msrc/Misc/MiddleWare.cpp | 4++++
Msrc/UI/MasterUI.fl | 5+++++
2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/Misc/MiddleWare.cpp b/src/Misc/MiddleWare.cpp @@ -1026,6 +1026,10 @@ static rtosc::Ports middwareSnoopPorts = { xml.loadXMLfile(file); loadMidiLearn(xml, impl.midi_mapper); rEnd}, + {"clear_xlz:", 0, 0, + rBegin; + impl.midi_mapper.clear(); + rEnd}, //scale file stuff {"load_xsz:s", 0, 0, rBegin; diff --git a/src/UI/MasterUI.fl b/src/UI/MasterUI.fl @@ -313,6 +313,11 @@ osc->write("/load_xlz", "s", filename);} xywh {40 40 100 20} } MenuItem {} { + label {Clear Midi Learn...} + callback {osc->write("/clear_xlz", "");} + xywh {40 40 100 20} + } + MenuItem {} { label {Save Midi Learn...} callback {char *filename; int result;