AudioMasher
[continue autosave] Learn Sporth
log in learn new browse

tseq

A sequencer that steps through values in a table.

tseq takes the following arguments:

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 *



Compile & play Stop audio