sean-e / mTroll

mTroll is the software MIDI control engine part of a hybrid hardware/software MIDI foot controller, but can be used standalone on Windows.
http://www.creepingfog.com/mTroll/
GNU General Public License v3.0
4 stars 0 forks source link

add 2 new patch types to reduce verbosity of simple control change patches #16

Closed sean-e closed 2 years ago

sean-e commented 2 years ago

Add ToggleControlChange and MomentaryControlChange patch types as shortcuts for toggle and momentary patch types that simply modify a single controller between 0 and 127, reducing verbosity of patch definition.

Behavior of these two patch definitions would be equivalent: old:

<patch name="EDP Toggle Reverse" type="toggle" device="EDP">
    <ControlChange group="A" controller="59" value="127" />
    <ControlChange group="B" controller="59" value="0" />
</patch>

new:

<patch name="EDP Toggle Reverse" type="toggleControlChange" device="EDP" controller="59" />