F-Table Lists

F-Table Lists

An F-Table list, or ftlist, is an array of ftables. ftlists are useful for things like building up chord progressions and making sequences of sequences for arpegiators.

Here is an example of how to use an ftlist. Save this to a file called ftlist.rnt and run with monolith runt ftlist.rnt. This will generate a 10-second long file called test.wav.

patchwerk nodes

8 metro bhold 0 cabset

ftlist_new 1 regset

1 ftnew "0 2 5 7" gen_vals
1 regget ftlist_append
1 ftnew "2 5 9 10" gen_vals
1 regget ftlist_append
1 ftnew "4 7 12 14 16 12 14 7" gen_vals
1 regget ftlist_append

# append a sine table to test ftlist_get
8192 ftnew gen_sine
1 regget ftlist_append

0 1 regget ftlist_choose

# make a progression of first 3 sequences
0 cabget 16 0 tdiv bdup
0 1 ftnew "0 1 2 1" gen_vals tseq 1 regget tchoose

# use tlseq to arpegiate notes
0 cabget 1 regget tlseq
58 add mtof 0.001 port
0.2 0
# index 3 is a sine wave table
3 1 regget ftlist_get
osc

"test.wav" wavout bdrop

10 sr * _compute rep

0 cabget bunhold

More info on ftlists can be found at ftlist.c.