I can’t find it in the documentation, and nobody appears to have posted anything similar. Is there a reason why this works
var btnNextTrack = surface.makeButton(0.25, 0.5, 0.25, 0.25)
btnNextTrack.mSurfaceValue.mMidiBinding
.setInputPort(midiInput)
.bindToControlChange14BitNRPN(nrpnChannel, nrpnAddress)
.setValueRange(0, 0x3fff);
page.makeCommandBinding(btnNextTrack.mSurfaceValue, "Project", "Select Track: Next");
updateNrpnAddress();
var btnNextBank = surface.makeButton(0.25, 1.0, 0.25, 0.25)
btnNextBank.mSurfaceValue.mMidiBinding
.setInputPort(midiInput)
.bindToControlChange(ccChannel, ccNumber)
.setValueRange(0, 0x7f);
page.makeActionBinding(btnNextBank.mSurfaceValue, mixerBankZone.mAction.mNextBank);
updateCcNumber();
and this doesn’t?
var btnNextTrack = surface.makeButton(0.25, 0.5, 0.25, 0.25)
btnNextTrack.mSurfaceValue.mMidiBinding
.setInputPort(midiInput)
.bindToControlChange14BitNRPN(nrpnChannel, nrpnAddress)
.setValueRange(0, 0x3fff);
page.makeCommandBinding(btnNextTrack.mSurfaceValue, "Project", "Select Track: Next");
updateNrpnAddress();
var btnNextBank = surface.makeButton(0.25, 1.0, 0.25, 0.25)
btnNextBank.mSurfaceValue.mMidiBinding
.setInputPort(midiInput)
.bindToControlChange14BitNRPN(nrpnChannel, nrpnAddress)
.setValueRange(0, 0x3fff);
page.makeActionBinding(btnNextBank.mSurfaceValue, mixerBankZone.mAction.mNextBank);
updateNrpnAddress();
I am definitely sending the correct MIDI messages for both options. Next bank is the one that refuses to work with 14bit NRPN. The updateX functions change to the next available CC channel + controller number or NRPN channel + address, and work for other CCs/NRPNs added in the same way in the same script, before, between and after these.
Cubase Pro 12.0.52.
Thanks in advance.
Sam