Binding Expression - what am I doing wrong?

I normally play left hand bass. For each of my songs, I have a state with PC #99 that “turns off the bass” by changing the keyboard split. In the bands/setlsts in which I don’t play LH bass I add a suffix -NB to the setlist name. I am trying to set a binding in the background rack that will automatically switch to song state PC#99 based on the setlist name. I thought the following should accomplish this, but I can’t get it to work. Any ideas what I’m doing wrong?


Thank you - David

Hi David,

I think you’ll need 2 bindings in the BG rack because the expression result field can’t solve for a toggle if I understand how it works correctly.

So the first binding example looks like this and it loads the first state automatically

The second binding below it tests for pre-fix “-ND” and switches to pg 99 if true using the expression function.

I think it should work.

Best,

Dave

3 Likes

Thanks @dave_dore, but I could not get this to work either. I tried a number of different ways, but it doesn’t seem like the On Song Load is firing properly when I use an expression.
Even this will not load program 99:


But if I use Automatic with a value of 99 it works.
Perhaps @Brad can comment?

You’ve hit on a weird edge case with binding expressions related to zero based vs one based programs.

For most binding types there’s meta data associated with the binding or the data type that allows Cantabile to display program numbers one-based. But internally they’re all zero-based.

With expressions, everything is just numbers, so you need to match the internal format of program numbers - zero based.

Try having the expression result in 98 instead of 99. That should fix it.