On Tuesday 20 December 2005 13:56, Oeyvind Brandtsegg wrote: > I'm trying to make a custom setup for midi program change. > > What I'd like to do is: > > midi channel 1 plays on instr 3 > midi channel 2 plays on instr 4 > > if I receive a program change message (regardless of what channel it is received on): > midi channel 1 plays on instr 13 > midi channel 2 plays on instr 14 > > I'm using pgmassign 0, -1 to disable standard program change behaviour, > and I have an "always on" instr 1 receiving the program change messages correctly. > I figured, the easiest way was to use massign inside a conditional branch in instr 1, > but it does not work (probably only works when it's in the global section). > > any ideas on how to do this very welcome I do not entirely understand what you want, but the pgmassign opcode can assign instruments to programs (or disable program changes) separately on each channel (there is an optional third argument that sets the channel number, defaulting to zero which means all).