First time here? Check out the FAQ!

Does ?VoiceNumber not work for the Channel in the MidiOutputEvent sound?

0 votes

I'm using a replicator to create several copies of a midi sequencer. I'm using the StepSequencer sound and the MidiOutputEvent.

To set each sequencer to a different midi channel I'm putting ?VoiceNumber in the Channel parameter of the MidiOutputEvent... but all the replicated copies of the sequencer are playing on the same channel. I can't see what I'm doing wrong.

Here's the sound:

asked Apr 26, 2017 in Capytalk & Smalltalk by alan-jackson (Virtuoso) (15,740 points)

1 Answer

+1 vote
Best answer

?VoiceNumber in the MIDIOutputEvent will be set by the StepSequencer rather than by the Replicator.

You could use a different variable in the MIDIOutputEvent, say ?myVoiceNumber and place a Script between the Replicator and the StepSequencer. In the Script you can set the value of ?myVoiceNumber to be the value of ?VoiceNumber from the Replicator. For example, in the Script field of the Script, you could use

orchestra first start: 0 s myVoiceNumber: ?VoiceNumber

answered Apr 28, 2017 by ssc (Savant) (119,300 points)
selected May 5, 2017 by alan-jackson
Thank you, that worked for me.