Sun Feb 21, 2021 5:29 am
Thanks, jrball.
By way of example, make a copy of ExampleCustomOrgan2 CODM ODF, find its Coupler object that currently has CouplerCode=1006 ("Coupler: Gt to Ped") section, and edit it to change it as follows:
CouplerCode=10003 [which means "Couplers: custom coupler 4 to Pedal" -- this ODF already has three other custom couplers for the Pedal division, so this one will be the fourth]
Name=Coupler: Gt to Ped 5th
CustomDisplay1_Text=GT TO PED 5th
DisplayName=GT TO PED 5th
OverrideSourceDivisionToSpecifiedDivisionCode [leave this at 0/null, since CouplerCode above defines the source division]
OverrideDestDivisionToSpecifiedDivisionCode=2 [Great]
CustomCoupler_MIDINoteNumIncrementFromSourceToDest=7 [since a scale interval of a 5th is +7 semitones]
CustomCoupler_KeyActionTypeCode=1 [normal]
CustomCoupler_KeyActionEffectCode=1 [normal]
CustomCoupler_PipeMIDINoteNum036_PizzOrReitPeriodMs=0/null
CustomCoupler_PipeMIDINoteNum096_PizzOrReitPeriodMs=0/null
Since this ODF has a ShortcutPiston object as a reversible (which is named "Reversible: Gt to Pd") pointing to that original Gt to Ped coupler, we will also need to edit that ShortcutPiston to change it to point to the new coupler code as follows:
Name=Revers: Gt-Pd 5th
CustomDisplay1_Text=GT-PD 5th
CouplerCode=10003
Best regards, Martin.
Hauptwerk software designer/developer, Milan Digital Audio.