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

tabread

Table lookup with linear interpolation

tabread has the following arguments:

The following patch below shows how tabread can be used to make a table lookup oscillator.

 # Generate sine wave lookup-table
 _sine 8192 gen_sine
 # create 440hz phasor signal (sawtooth moving between 0 and 1)
 440 0 phasor
 # feed phasor into tabread 
 1 0 0 _sine tabread 
 # scale signal
 0.3 *
 ##--


Compile & play Stop audio