First time here? Check out the FAQ!

Is it possible to play multiple simultaneous Sequencer pitches from a Script?

0 votes
I'm sending midi numbers to a StepSequencer from a Script, to play samples from Multisample. In the script I'm trying this code -

pitches add: (nbr1, nbr2).


seq start: 0 s length: f size pitches: pitches durations: durs.

But it's only playing the first variable. Is there a way to play two notes simultaneously?
asked Jul 8, 2016 in Capytalk & Smalltalk by stephen-taylor (Adept) (1,560 points)

1 Answer

+1 vote
Best answer

I would create two Arrays of pitches and instantiate two sequencers.  Something like...

pitches1 add: nbr1.

pitches2 add: nbr2

seq start: 0 s length: f size pitches: pitches1 durations: durs.

seq start: 0 s length: f size pitches: pitches2 durations: durs.

That way you can have fun with playing them in parallel, or slightly offset from one another in time (or with the pitches in reverse order, etc etc)

answered Jul 8, 2016 by ssc (Savant) (125,820 points)
selected Jul 9, 2016 by stephen-taylor
Wow, it is working - thanks!