I have a note binding on notes in range 21-108, which control envelope sustain parameter by velocity value.
How can set note binding (or whole note tag) attribute 'enabled' to false?
I tried set ui button state bindings attribute 'type' to note/note_binding/velocity_binding.. but without results.
Any ideas?
Thank you.
...
<button x="0" y="0" width="50" height="50" style="image" value="1">
<state name="sustain_off" mainImage="Resources/btn_off.png" hoverImage="Resources/btn_off.png" clickImage="Resources/btn_click.png">
<binding type="note_binding" level="midi" position="0" parameter="ENABLED" translation="fixed_value" translationValue="false" />
</state>
<state name="sustain_on" mainImage="Resources/btn_on.png" hoverImage="Resources/btn_on.png" clickImage="Resources/btn_click.png">
<binding type="note_binding" level="midi" position="0" parameter="ENABLED" translation="fixed_value" translationValue="true" />
</state>
</button>
...
<midi>
<note note="21-108">
<binding level="instrument" type="amp" parameter="ENV_SUSTAIN" translation="linear" translationReversed="true" translationOutputMin="0.8" translationOutputMax="1.00" />
</note>
</midi>