tseq
A sequencer that steps through values in a table.
tseq takes the following arguments:
- trigger: the trigger signal. Each trigger will advance the sequencer though the table.
- mode: 0 = normal; 1 = shuffle
- table name: the table to read from
Example
In the example below, tseq is used to step through a sequence of notes.
# store melody in a table
_seq "0 5 0 3 0 3 5 0 3" gen_vals
# create beat and half-beat triggers
_beat var
4 metro _beat set
# play melody with a sine wave
(_beat get 0 _seq tseq 75 +) mtof 0.1 sine
# apply envelope
_beat get 0.001 0.05 0.1 tenvx *