First time here? Check out the FAQ!
x

collect nextChaotic numbers

0 votes
536 views
hello everybody,

I am wondering if there is a way to collect the results of an expression like:

(( !Run bpm: !BPM) nextChaotic: !K seed: !Seed reset: !Reset

into an Array.

Is tha possible?

grazie,

d
asked Dec 21, 2016 in Capytalk & Smalltalk by domenico-cipriani (Master) (3,110 points)
Hi Domenico, what would you like to do with the Array after you've captured it?  There are several different approaches you could take, depending on how you want to use the captured values.  Thanks!
I would like to use an expression like:
((!Run bpm: ! BPM)countTriggersMod: 64) of: array
to use it in the field of velocity of a midiOutputEvent .

1 Answer

0 votes

Perhaps you could use the expression directly in the MIDIOUtputEvent.  For example, in the Velocity field, use the expression:

(!Run bpm: !BPM) nextChaotic: !k seed: 0.62 reset: ((!Run bpm: !BPM) triggerEvery: 64)

With that expression, every 64 beats, it would reset and repeat the same sequence of values (assuming !K remains the same).

The Gate field of the MIDIOutputEvent would be

!Run bpm: !BPM

answered Dec 21, 2016 by ssc (Savant) (128,200 points)
that works good for me, thanks!
...