(set-context! sp c)
Sets the time context of synthesis process sp to c.
(get-id sp)
Returns the identification number of the synthesis process sp.
(reset sp)
Resets the synthesis process sp. The synthesis process is as
good as new and can be reused in the synthesis.
(connect in n out)
Connects synthesis process out to the n-th input of unit
generator in. Note that out can be any synthesis process,
not necessarily an unit generator.
(sinewave freq amp)
Creates a new sine-wave synthesis process with frequency control
function freq and amplitude control function amp.
(adsyn freq amp)
Creates a new additive synthesis process with frequency control
function freq and amplitude control function amp.
Both freq and amp should be multi-dimensional.
(sampler freq amp t)
Creates a new sampler synthesis process with frequency control
function freq and amplitude control function amp. The
sampler will play thru the sample table t once and then output
zero values.
(oscil freq amp table)
Creates a new oscillator synthesis process with frequency control
function freq and amplitude control function amp. The
oscillator will loop the sample table t.
(pulse id freq amp)
Creates a new pulse synthesis process with frequency control
function freq and amplitude control function amp.
(bandpass-filter fc q g)
Creates a new bandpass-filter. The filter response is specified by
three control functions: fc determines the central frequency,
q the quality factor, and g the gain.
(sound-table file f0)
Creates a new sample table and loads the sample of file file
into it. The currently supported file format is AIFF. f0
indicates the base frequency of the sample stored in the table. It is
used to determine the transposition factor in the synthesis.
(sound-table-load t file)
Loads the AIFF file file into the table t.
(sin-table-init size)
Creates a new table of size size and fills it with one period of
a sine-wave.
(sin-table)
Short for (sin-table-init 8000)).
(rect-table-init size ratio pos)
Creates a new table of size size and fills it with one period of
a rectangular wave. The value ratio (between 0 and 1) indicates
the length of the first half of the wave compared to the length of the
second half. If pos is #t the wave starts with the positive
values; if pos is #f the wave starts with the negative values.
(rect-table)
Short for (rect-table-init 8000 0.5 #t))
(saw-table-init size pos)
Creates a new table of size size and fills it with one period of
a rectangular wave. If pos id #t the values start at 1 and
decrease to -1. If pos id #f the values grow from -1 to 1..
(saw-table)
Short for (saw-table-init 8000 #t))
(harmonic-table-init dim n)
Creates a new table of size size and fills it with the n
sinusoidal, harmonic partials.
(harmonic-table n)
Short for (harmonic-table-init 8000 num)