Skip to content

Signal generators

Graham Wakefield edited this page Apr 27, 2019 · 4 revisions
sine(period_in_beats, center_bias, amplitude) // sine wave (-1..1) with named properties: "period", "bias", "amp", "phase"
cycle(freq_in_hz)	// sine wave (-1..1)
lfo(freq_in_hz, center_bias, amplitude) // sine wave (-1..1) with named properties: "period", "bias", "amp", "phase"

beats(period_in_beats) // ramp wave (0..1), not bandlimited
phasor(freq_in_hz) 	// ramp wave (0..1), not bandlimited

btof(period_in_beats) // convert period_in_beats to a frequency in Hz

add(a, b), sub(a, b), mul(a, b), div(a, b) // add, sub, multiply, divide etc. two signals
Clone this wiki locally