%
v1, v2
Performs modulus operation.
&
v1, v2
Performs logical "and" operation.
*
v1, v2
Performs multiplication.
+
v1, v2
Performs addition.
-
v1, v2
Performs subtraction.
/
v1, v2
Performs division.
<<
v1, v2
Binary left shift operation.
>>
v1, v2
Binary right shift operation.
^
v1, v2
Performs logical "xor" operation.
abs
v1
Performs absolute value.
add
v1, v2
Performs addition.
adsr
gate, attack, decay, sustain, release
Analogue modelled ADSR generator
allpass
revtime, looptime
allpass filter
ampdb
db
converts decibels to amplitude
atone
cutoff
simple one-pole high pass filter
autowah
level, wah, mix
autowah
bal
reference, in
match the input's amplitude the reference's amplitude
biscale
v1, min, max
Scales from bipolar [-1, 1] to [min, max].
bitcrush
bitdepth (8), samplerate (10000)
bitcrusher. bitdepth: 1 - 16
blsaw
freq, amp
Band-limited sawtooth oscillator
blsquare
freq, width (0.5), amp
Band-limited square oscillator with pulse-width
bltriangle
freq, amp
Band-limited triangle oscillator
bpm2dur
bpm
convert bpm to duration (seconds)
bpm2rate
bpm
convert bpm to rate (Hertz)
branch
gate, sig1, sig2
returns signal based on state of gate (0 = sig1, 1 = sig2)
brown
Brownian noise generator
butbp
in, freq, bw
butterworth bandpass filter
butbr
in, freq, bw
butterworth band reject filter
buthp
in, cutoff
Butterworth highpass filter
butlp
in, cutoff
Butterworth lowpass filter
c
init value
Constant generator, used for feedback loops.
cf
sig1, sig2, pos
crossfade two signals
changed
sig
Returns a trigger if the input changes
clip
in, limit (1)
clip limiter / distortion
clock
trig, bpm, subdiv
Clock with subdivisions and triggerable reset
comb
in, rev time, loop time
comb filter
conv
in, delay, ftbl impulse response
partitioned convolution
count
trig, max, mode
clock counter. mode: 0 = loop, 1 = one-shot
crossfade
sig1, sig2, pos
crossfade two signals
dcblk
f
dc block filter.
delay
in, feedback, deltime
feedback delay
diode
in, cutoff, res
Diode ladder filter
dist
pregain (1), gain (1), shape1 (0), shape2 (0)
Distortion
div
v1, v2
Performs division.
dmetro
time
Metronome using time instead of frequency
drip
trig, num_tubes, amp, shake_max, main freq, res freq 1, res freq 2, decay
dripwater physical model
drop
f
Removes the last item on the stack.
dtrig
trig, loop, delay, scale, tbl
delta trig. loop = 1 will loop the sequence
dup
f
Duplicates last item on the stack.
dup2
f, f
Duplicates the two last item on the stack.
dur
returns duration of sporth patch (in seconds)
dust
amp, density, bipolar
dust. bipolar = 1 unipolar = 0
eq
v1, v2
conditional equals
eqfil
in(f) freq, bw, gain
eq filter
expon
trig, ia, idur, ib
exponential line segment
f
num
Call a user defined function
floor
v1
Performs flooring, returning the integer part.
fm
frequency, amplitude, carrier (1), modulator (1), index (8)
A simple FM oscillator.
fof
amp, fund, form, oct, band, ris, dec, dur, iphs, iolaps, window table, sine table
fof
fofilt
in, freq (1000), atk (0.007), rel (0.04)
Formant filter
fog
amp, dense, trans, spd, oct, band, ris, dec, dur, iphs, iolaps, window table, wav table
fog
fosc
freq, amp, carrier, modulator, index, table
FM oscillator
frac
v1
Returns the fractional part of item on the stack.
gbuzz
freq, amp, nharm, lharm, mul
Series of partials from the harmonic series
gen_composite
name, size, args
Generate a composite waveform of sinusoids.
gen_eval
name, size, string
Evaluates sporth string to table
gen_line
name, size, args
Generates a line from ordered list of breakpoints.
gen_padsynth
ftname, size, base freq, bandwidth, amp table
padsynth algorithm by Paul Nasca Octavian
gen_rand
name, size, args
random distribution generator
gen_sine
ftable name, size
Generates a sine wave ftable.
gen_sinesum
name, size, args
Summation of harmonically related sines. based on GEN10.
gen_vals
name, args
Generates an ftable from a space delimited set of values.
get
name
gets variable
gt
v1, v2
conditional greater than
hilbert
in
hilbert transform
in
Read a float from STDIN.
incr
trig, step, min, max, ival
Incrementer
inv
inv
inverse a signal 1/x
jcrev
input
Chowning reverb
jitter
amp, cpsMin, cpsMax
Jitter control signal
line
trig, ia, idur, ib
line segment
log
v1
Performs natural logarithm.
log10
v1
Performs base 10 logarithm.
lpc
in, framesize
apply linear-predictive coding (LPC10) to signal
lpcsynth
framesize, ftbl
LPC synth. Manipulate parameters directly.
lpf18
in, freq, res, dist
low pass filter with tanh distortion
lsys
trig, ord, code
L-Systems microlanguage
lt
v1, v2
conditional lt
max
f, f
Returns the greater of two items on the stack.
maygate
trig, probability (0.5)
Random selection of gate or no gate.
maytrig
trig, probability (0.5)
Random selection of trig or no trig.
metro
frequency
Creates clock signal.
min
f, f
Returns the lesser of two items on the stack.
mincer
time, amp, pitch ratio (1), winsize (2048), ftable
Phase-locked vocoder
mix
f..f
Sums up remaining items on stack.
mode
in, freq (500), Q (50)
modal filter
moogladder
input, cutoff, res
Moog ladder lowpass filter
mtof
Note number
Converts MIDI note number to Hz.
mul
v1, v2
Performs multiplication.
ne
v1, v2
conditional not-equal to
noise
gain
White noise generator.
osc
freq, amp, phase, ft name
Wavetable lookup oscillator
oscmorph2
freq, amp, wtpos, phase, ft1, ft2
2-table morphing oscillator
oscmorph4
freq, amp, wtpos, phase, ft1, ft2, ft3, ft4
4-table morphing oscillator
p
num
p register get
palias
name, index
create a variable alias for p-value
pan
in, pan
Equal power panning. -1 = hardL 1 = hardR
pareq
in, freq, boost, Q, mode(0=peak, 1=low shelf, 2= high shelf)
parametric equalizer
pdhalf
amount -1 to 1
casio phasor distortion
peaklim
input, atk, rel, thresh db
peak limiter
phaser
inl, in2, max notch, min notch, width, notch freq, depth, fdbk, invert, lvl, lfobpm
stereo phaser
phasor
freq, phase
Normalized sawtooth wave.
pinknoise
amp
pink noise generator
pluck
trigger, freq, amp, ifreq (110)
plucked instrument. ifreq sets the lowest frequency (buffer size).
port
htime (0.02)
Applies portamento to a signal.
pos
returns playing time, in seconds
posc3
freq, amp, ftable
high-precision oscillator with cubic interpolation
prop
bpm, prop string
Parses prop code to produce a set of triggers
pset
val, num
p register set
pshift
in, shift (semitones), window size (samps), xfade (samps)
pitch shifter
ptrack
in
pitch tracking (outputs: amp, pitch)
rand
min, max
picks random number at start time
randh
min, max, freq
Random hold
randi
min, max, freq
Randomized line segment with interpolation
ref
name
save pointer reference of next pipe in table
reson
in, freq, bw
resonator filter
reverse
in, delay
reverse delay
revsc
in1, in2, feedback (0.97), cutoff (10000)
Stereo reverb module from reverbsc Csound opcode.
rot
f, f, f
Stack rotate. s: 1 2 3 -> 2 3 1
round
v1
Performs rounding to nearest integer.
rpt
in, trig, bpm, div, rep, bufsize (1)
Stutterer / repeater (bufsize in seconds)
rspline
min, max, cps min, cps max
random spline generator
samphold
in, trig
sample and hold
saturator
in, drive, dcoffset
saturator distortion unit
scale
v1, min, max
Scales from unipolar [0, 1] to [min, max].
sdelay
delay
delay (in samples)
set
value, name
sets variable
setdurs
size
set total duration (in samples)
sget
index, ftname
picks a string from a string list
sine
freq, amp
Simple sine oscillator.
slice
trig, id, vals, buf
in-memory slice based sampler
slick
ftname
picks a string randomly from string list
smoothdelay
in(f) fdbk(f) del(f) maxdel(f) interp
smooth delay line
sqrt
in
square root
sr
Returns the sample rate
srand
seed
seed internal RNG
streson
in, frequency, gain
String resonator filter
sub
v1, v2
Performs subtraction.
swap
f, f
Swaps last two items on the stack.
switch
trig, sig1, sig2
toggle between two signals
tabread
index, scaled (1: yes, 0: no), offset, wrap, ftname
read from table with interpolation
tadsr
trig, attack, decay, sustain, release
Triggerable digital-style ADSR envelope. Use trigger as a toggle.
talias
name, index, ftbl
alias a table value to a variable
talkbox
source, excitation, quality
high-resolution vocoder
tbldur
ftable
Get duration of table (in seconds)
tblrec
in, trig, tbl name
records values to table.
tblsize
ftable
Get size of table (in samples)
tdiv
trigger, num, offset
trigger divider
tenv
trig, attack, sustain, release
Triggerable linear envelope generator. Values in seconds.
tenv2
trig, attack, release
Two-step triggerable linear envelope generator. Values in seconds.
tenvx
trig, atk, hold, rel
Exponential Envelope Generator. Values in seconds, hold > atk
tgate
trigger, time
triggerable gate
tget
index, table
Get value from table
thresh
in, thresh, mode
detect threshold crossings. mode: 0=from below, 1=above, 2=both
tick
trigger at start of file. only use once
timer
trig
timer
tog
trig
toggle switch that can be triggered on/off
tone
in, cutoff
simple one-pole low pass filter
tphasor
trig, freq, phase
Triggerable normalized sawtooth wave.
tport
trig, htime
Applies portamento to a signal with triggerable reset.
tprop
trig, bpm, code
prop with a triggerable reset
trand
trig, min, max
triggerable RNG
tseg
trig, val, dur, curve, init
trigger segment
tseq
trig, mode, ft name
Triggered sequencer. modes: 0 = normal, 1 = shuffle.
tset
index, value, table
Set value of table
var
name
creates variable
varset
name, val
creates and sets a variable
vdelay
in, feedback, deltime, maxdelay
variable delay with feedback
voc
freq, pos, diameter, tenseness, velum
Vocal Tract Physical Model
vocoder
atk, rel, bwq, sig, exc
32-band channel vocoder
waveset
in, rep, buflen
waveset timestretching algorithm
wpkorg35
in, cutoff, res, saturation
wpkorg filter
zeros
name, size
Generate table of zeros
zitarev
in2, in1, delay, lf_x, rtlo, rthi, hfdmp, eq1f, eq1l, eq2f, eq1l, mix, lvl
zitareverb module
zrev
in2, in1, rtlo, rthi, hfdmp
zitareverb module (simplified)
|
v1, v2
Performs logical "or" operation.