Claudio Pietronik

The patch library

264 whole programs, one idea each, in 11 categories — the same ones the editor's dock drops into your code, every one compiled by the test suite.

Synths 24

FM RhodesTwo-op electric-piano tine, integer ratio, soft attack; self-clocked at 3 Hz.
import osc; import env; import trig;
float g = clockgate(3, 0.5);
out1 = fm2(C3, 1, 3) * adsr(g, 5ms, 200ms, 0.4, 300ms) * 0.6;
Ladder Saw LeadClassic subtractive saw through a resonant ladder filter; gated at 2 Hz.
import osc; import filter; import env; import trig;
float g = clockgate(2, 0.4);
out1 = ladder(saw(A2), 1800, 0.5) * adsr(g, 8ms, 150ms, 0.5, 200ms) * 0.4;
Supersaw PadWide detuned supersaw under a gentle SVF low-pass with a long swell.
import osc; import filter; import env; import trig;
float g = clockgate(1, 0.6);
out1 = svf_lp(supersaw(A2, 0.04), 1600, 1.5) * adsr(g, 400ms, 300ms, 0.7, 600ms) * 0.3;
Sine Drawbar OrganAdditive organ: root plus octave and fifth sines, fast on/off envelope.
import osc; import env; import trig;
float g = clockgate(2, 0.5);
out1 = (sine(C3) + sine(C4) * 0.5 + sine(G3) * 0.3) * adsr(g, 10ms, 50ms, 0.8, 100ms) * 0.4;
Phase Distortion BassCasio-style PD oscillator low and punchy; percussive 4 Hz gate.
import osc; import env; import trig;
float g = clockgate(4, 0.4);
out1 = pd(A1, 0.6) * adsr(g, 5ms, 120ms, 0.3, 150ms) * 0.5;
Hardsync SweepSync lead whose sync frequency is swept by a slow sine LFO.
import osc; import env; import trig; import mod;
float g = clockgate(2, 0.5);
out1 = hardsync(A2, 900 + 600 * lfo(0.3, 0)) * adsr(g, 10ms, 200ms, 0.5, 250ms) * 0.35;
Pulse Width MotionSquare with LFO-modulated pulse width for a hollow, shifting timbre.
import osc; import env; import trig; import mod;
float g = clockgate(3, 0.5);
out1 = square(C3, 0.3 + 0.2 * lfo(0.4, 0)) * adsr(g, 8ms, 100ms, 0.6, 150ms) * 0.4;
FM BellInharmonic non-integer ratio with high index and zero sustain for a bell.
import osc; import env; import trig;
float g = clockgate(1, 0.3);
out1 = fm2(C4, 3.5, 8) * adsr(g, 2ms, 400ms, 0.0, 500ms) * 0.4;
Reese BassDetuned supersaw pushed through a dark, resonant ladder for a growling sub.
import osc; import filter; import env; import trig;
float g = clockgate(2, 0.6);
out1 = ladder(supersaw(A1, 0.05), 700, 0.6) * adsr(g, 20ms, 150ms, 0.7, 200ms) * 0.4;
Pure SubA single low sine with a rounded envelope - clean sub-bass foundation.
import osc; import env; import trig;
float g = clockgate(2, 0.5);
out1 = sine(A1) * adsr(g, 10ms, 100ms, 0.8, 150ms) * 0.6;
Unison Saw StackThree hand-detuned saws summed and filtered for a thick analog unison.
import osc; import filter; import env; import trig;
float g = clockgate(2, 0.5);
out1 = svf_lp(saw(A2) + saw(A2 * 1.008) + saw(A2 * 0.993), 2000, 1.0) * adsr(g, 10ms, 120ms, 0.6, 200ms) * 0.25;
FM BrassInteger-ratio FM with slow attack and moderate index for a brassy horn.
import osc; import env; import trig;
float g = clockgate(2, 0.6);
out1 = fm2(A2, 1, 4) * adsr(g, 60ms, 100ms, 0.7, 200ms) * 0.5;
Square PluckFast metro-triggered square blips - a bright plucky chiptune stab.
import osc; import env; import trig;
float t = metro(8);
out1 = square(A3, 0.5) * ar(t, 2ms, 80ms) * 0.4;
Mellow TriangleSoft triangle tone with a warm, sustained envelope - flute-like.
import osc; import env; import trig;
float g = clockgate(2, 0.5);
out1 = tri(C3) * adsr(g, 15ms, 100ms, 0.7, 200ms) * 0.5;
Chirp BlipA rising sweep oscillator retriggered at 3 Hz for laser-like blips.
import osc; import env; import trig;
float t = metro(3);
out1 = chirp(200, 1200, 0.1) * ar(t, 1ms, 120ms) * 0.4;
PD Wobble LeadPhase-distortion lead whose amount is animated by a 1 Hz LFO.
import osc; import env; import trig; import mod;
float g = clockgate(2, 0.5);
out1 = pd(A2, 0.5 + 0.4 * lfo(1, 0)) * adsr(g, 10ms, 150ms, 0.5, 200ms) * 0.4;
Glassy FMBright 2:1 FM with a quick decay and low sustain - a glassy keys tone.
import osc; import env; import trig;
float g = clockgate(2, 0.4);
out1 = fm2(C4, 2, 2) * adsr(g, 3ms, 250ms, 0.2, 300ms) * 0.5;
FM BassLow integer-ratio FM, tight envelope - snappy synth bass at 3 Hz.
import osc; import env; import trig;
float g = clockgate(3, 0.5);
out1 = fm2(A1, 2, 3) * adsr(g, 5ms, 100ms, 0.4, 120ms) * 0.5;
Filter WobbleSaw bass with a 4 Hz LFO sweeping the ladder cutoff - dubstep wobble.
import osc; import filter; import env; import trig; import mod;
float g = clockgate(1, 0.8);
out1 = ladder(saw(A1), 1000 + 900 * lfo(4, 0), 0.7) * adsr(g, 10ms, 200ms, 0.8, 200ms) * 0.4;
Full DrawbarsFour stacked sine partials for a rich additive organ with fast keying.
import osc; import env; import trig;
float g = clockgate(2, 0.6);
out1 = (sine(C3) + sine(C4) * 0.7 + sine(G4) * 0.5 + sine(C5) * 0.3) * adsr(g, 5ms, 30ms, 0.9, 80ms) * 0.3;
Clarinet AdditiveOdd-harmonic sine stack (1,3,5) for a hollow woodwind timbre.
import osc; import env; import trig;
float g = clockgate(2, 0.5);
out1 = (sine(C3) + sine(C3 * 3) * 0.3 + sine(C3 * 5) * 0.15) * adsr(g, 20ms, 80ms, 0.7, 150ms) * 0.4;
Hollow Pulse PadNarrow pulse under a resonant SVF with a long attack - reedy pad.
import osc; import filter; import env; import trig;
float g = clockgate(1, 0.7);
out1 = svf_lp(pulse(A2, 0.15), 1400, 2.0) * adsr(g, 300ms, 200ms, 0.6, 500ms) * 0.35;
FM XylophoneHigh-ratio percussive FM with zero sustain - a mallet xylophone hit.
import osc; import env; import trig;
float g = clockgate(4, 0.2);
out1 = fm2(C4, 7, 6) * adsr(g, 1ms, 150ms, 0.0, 150ms) * 0.4;
Vibrato SawFiltered saw lead with a 5 Hz pitch vibrato from an LFO on frequency.
import osc; import filter; import env; import trig; import mod;
float g = clockgate(2, 0.5);
out1 = svf_lp(saw(A3 * (1 + 0.01 * lfo(5, 0))), 2200, 1.5) * adsr(g, 20ms, 120ms, 0.6, 200ms) * 0.35;

Bass 24

Acid LineClassic 303 acid: saw through a ladder with an envelope sweeping the cutoff, gated by an internal clock.
import osc; import filter; import env; import trig;
float g = clockgate(4, 0.5);
float e = adsr(g, 2ms, 90ms, 0.2, 80ms);
out1 = ladder(saw(A1), 200 + 2500 * e, 2.8) * e * 0.5;
Deep SubPure sine sub at A0 with a soft attack, self-driven by a slow sustained gate.
import osc; import env; import trig;
float g = clockgate(2, 0.6);
out1 = sine(A0) * adsr(g, 8ms, 200ms, 0.7, 150ms) * 0.6;
FM Growler1:1 FM bass whose index is opened by the amp envelope for a talkative attack.
import osc; import env; import trig;
float g = clockgate(3, 0.5);
float e = adsr(g, 3ms, 120ms, 0.4, 100ms);
out1 = fm2(A1, 1, 4 * e) * e * 0.5;
Wobble OneDubstep wobble: a sine LFO rocks the ladder cutoff under a continuous saw.
import osc; import filter; import mod;
float w = lfo(2, 0) * 0.5 + 0.5;
out1 = ladder(saw(A1), 200 + 1800 * w, 1.8) * 0.4;
Reese DetuneDetuned supersaw run through a ladder for the classic Reese beating bass.
import osc; import filter;
out1 = ladder(supersaw(A1, 0.04), 900, 0.35) * 0.3;
Square PunchFast-gated square bass with a snappy envelope for a plucky low end.
import osc; import env; import trig;
float g = clockgate(4, 0.5);
out1 = square(A1, 0.5) * adsr(g, 2ms, 80ms, 0.5, 60ms) * 0.4;
808 Boom808-style kick-bass: a metro triggers a fast pitch drop on a sine plus a long amp tail.
import osc; import env; import trig;
float t = metro(1);
out1 = sine(A0 * (1 + 3 * ar(t, 1ms, 30ms))) * ar(t, 2ms, 600ms) * 0.8;
Euclid PluckKarplus pluck bass fired by a euclidean rhythm off an internal clock.
import phys; import trig; import seq;
float trg = euclid(metro(4), 8, 3);
out1 = pluck(A1, trg) * 0.5;
Neuro SnarlNeuro bass: FM tone through a square-ish LFO-swept ladder, then wavefolded.
import osc; import filter; import drive; import mod;
float w = lfo(6, 1) * 0.5 + 0.5;
out1 = wavefold(ladder(fm2(A1, 1, 6), 400 + 1500 * w, 0.4), 0.3) * 0.3;
Dub RollerWarm dub sub: a triangle at A0 lowpassed by a onepole with a slow rolling envelope.
import osc; import filter; import env; import trig;
float g = clockgate(1.5, 0.7);
out1 = onepole(tri(A0), 300) * adsr(g, 20ms, 250ms, 0.6, 300ms) * 0.6;
Rubber BandRubbery bass: narrow pulse through an SVF lowpass with a plucky zero-sustain envelope on the cutoff.
import osc; import filter; import env; import trig;
float g = clockgate(4, 0.4);
float e = adsr(g, 1ms, 60ms, 0.0, 50ms);
out1 = svf_lp(square(A1, 0.35), 300 + 2000 * e, 3) * e * 0.4;
Dirt DriveOverdriven bass: ladder-filtered saw pushed into softclip and shaped by an envelope.
import osc; import drive; import filter; import env; import trig;
float g = clockgate(3, 0.5);
out1 = softclip(ladder(saw(A1), 800, 0.5), 4) * adsr(g, 2ms, 100ms, 0.5, 80ms) * 0.3;
PWM PulsePulse-width-modulated square bass, a slow LFO widening the duty cycle.
import osc; import mod; import env; import trig;
float pw = lfo(0.5, 0) * 0.3 + 0.5;
float g = clockgate(2, 0.6);
out1 = square(A1, pw) * adsr(g, 5ms, 150ms, 0.6, 120ms) * 0.4;
Crush BassLo-fi bass: a saw run through a 6-bit crusher with a tight envelope.
import osc; import drive; import env; import trig;
float g = clockgate(4, 0.5);
out1 = bitcrush(saw(A1), 6) * adsr(g, 1ms, 70ms, 0.4, 60ms) * 0.4;
Acid SquelchHigh-resonance acid squelch on a 16-step euclidean pattern, envelope on cutoff.
import osc; import filter; import env; import seq; import trig;
float trg = euclid(metro(8), 16, 7);
float e = ar(trg, 2ms, 110ms);
out1 = ladder(saw(A1), 250 + 3000 * e, 3.2) * e * 0.5;
Octave SubSub layered with its octave for body, one shared envelope on a moderate gate.
import osc; import env; import trig;
float g = clockgate(2, 0.5);
float e = adsr(g, 6ms, 180ms, 0.7, 140ms);
out1 = (sine(A0) * 0.7 + sine(A1) * 0.3) * e * 0.6;
Moog StackTwo stacked saws an octave apart through a resonant ladder with envelope-opened cutoff.
import osc; import filter; import env; import trig;
float g = clockgate(3, 0.5);
float e = adsr(g, 4ms, 130ms, 0.3, 100ms);
out1 = ladder(saw(A1) * 0.6 + saw(A2) * 0.3, 500 + 1800 * e, 2.2) * 0.35;
Chop WobbleSquare-LFO wobble that hard-gates the ladder cutoff for a chopped rhythmic bass.
import osc; import filter; import mod;
float w = lfo(3, 3) * 0.5 + 0.5;
out1 = ladder(saw(A1), 250 + 2200 * w, 1.5) * 0.4;
FM Sub GrowlDeep 2:1 FM bass at A0 with the index swelling from the envelope.
import osc; import env; import trig;
float g = clockgate(2, 0.5);
float e = adsr(g, 3ms, 140ms, 0.5, 120ms);
out1 = fm2(A0, 2, 3 + 8 * e) * e * 0.4;
Phase BitePhase-distortion bass with the PD amount opened by the envelope for a biting attack.
import osc; import env; import trig;
float g = clockgate(4, 0.5);
float e = adsr(g, 2ms, 90ms, 0.3, 70ms);
out1 = pd(A1, 0.3 + 0.5 * e) * e * 0.45;
Sync SweepHard-sync bass whose sync frequency is swept upward by the envelope.
import osc; import env; import trig;
float g = clockgate(3, 0.5);
float e = adsr(g, 2ms, 100ms, 0.4, 90ms);
out1 = hardsync(A1, A1 * (1 + 2 * e)) * e * 0.4;
Wide ReeseWidely detuned supersaw at A0 with a slow LFO drifting the ladder cutoff.
import osc; import filter; import mod;
float m = lfo(0.3, 0) * 0.5 + 0.5;
out1 = ladder(supersaw(A0, 0.06), 400 + 900 * m, 0.4) * 0.3;
Gated PulseEuclidean-gated pulse bass through an SVF lowpass with the cutoff tracking the envelope.
import osc; import filter; import env; import seq; import trig;
float trg = euclid(metro(8), 8, 5);
float e = ar(trg, 1ms, 90ms);
out1 = svf_lp(pulse(A1, 0.3), 400 + 1500 * e, 2.5) * e * 0.4;
Tape DropSlow 808 drop with softclip warmth and a long tail, driven by a lazy metro.
import osc; import drive; import env; import trig;
float t = metro(0.8);
float p = ar(t, 1ms, 50ms);
out1 = softclip(sine(A0 * (1 + 4 * p)), 2) * ar(t, 2ms, 700ms) * 0.7;

Leads 24

Vibrato SawClassic saw lead with a gentle sine vibrato, driven by an internal gate.
import osc; import env; import trig; import mod;
float g = clockgate(3, 0.6);
float vib = 1 + 0.01 * lfo(5, 0);
out1 = saw(C4 * vib) * adsr(g, 8ms, 100ms, 0.7, 150ms) * 0.4;
Pulse-Width SquareHollow square lead whose pulse width sways under a slow LFO.
import osc; import env; import trig; import mod;
float g = clockgate(2, 0.5);
out1 = square(E4, 0.3 + 0.2 * lfo(4, 0)) * adsr(g, 5ms, 80ms, 0.6, 200ms) * 0.4;
Sync ScreamerHardsync lead with the sync frequency wobbled by a saw LFO.
import osc; import env; import trig; import mod;
float g = clockgate(2, 0.5);
float sf = E4 * (1.5 + lfo(0.5, 2));
out1 = hardsync(E4, sf) * adsr(g, 4ms, 120ms, 0.5, 180ms) * 0.4;
FM Two-Op LeadTwo-operator FM lead with an index envelope for a plucky attack bite.
import osc; import env; import trig;
float g = clockgate(3, 0.5);
out1 = fm2(G3, 2, 6 * adsr(g, 2ms, 150ms, 0.3, 200ms)) * adsr(g, 5ms, 150ms, 0.5, 200ms) * 0.5;
Supersaw AnthemFat detuned supersaw run through a ladder filter for a trance-style lead.
import osc; import filter; import env; import trig;
float g = clockgate(2, 0.5);
out1 = ladder(supersaw(A3, 0.04), 2200, 0.3) * adsr(g, 10ms, 120ms, 0.7, 250ms) * 0.3;
Portamento RunnerSquare lead sliding between random held pitches via glide.
import osc; import env; import trig; import mod; import rnd;
float t = metro(2.5);
float note = 220 + 330 * randh(2.5);
out1 = square(glide(note, 80ms), 0.5) * ar(t, 5ms, 300ms) * 0.35;
Phase-Distortion LeadCasio-style PD lead with the distortion amount modulated by a triangle LFO.
import osc; import env; import trig; import mod;
float g = clockgate(2, 0.5);
out1 = pd(C4, 0.5 + 0.35 * lfo(3, 1)) * adsr(g, 6ms, 100ms, 0.6, 200ms) * 0.45;
Acid Resonant LeadHigh-resonance ladder lead with an envelope sweeping the cutoff.
import osc; import filter; import env; import trig;
float g = clockgate(4, 0.4);
out1 = ladder(saw(A3), 800 + 3000 * adsr(g, 2ms, 100ms, 0.2, 150ms), 3.2) * adsr(g, 2ms, 120ms, 0.5, 150ms) * 0.3;
Detuned UnisonThree slightly detuned saws stacked for a thick unison lead.
import osc; import env; import trig;
float g = clockgate(2, 0.5);
out1 = (saw(D4) + saw(D4 * 1.006) + saw(D4 * 0.994)) * adsr(g, 8ms, 100ms, 0.7, 200ms) * 0.18;
Airy Sine FluteSoft sine lead with a fast subtle vibrato, flute-like.
import osc; import env; import trig; import mod;
float g = clockgate(2, 0.5);
float vib = 1 + 0.008 * lfo(6, 0);
out1 = sine(G4 * vib) * adsr(g, 30ms, 100ms, 0.8, 250ms) * 0.5;
Chiptune ArpFast square arpeggio stepping through pitches with a counter.
import osc; import env; import trig; import seq;
float t = metro(8);
float note = 330 * pow(2, counter(t, 0, 0, 3) / 24);
out1 = square(note, 0.25) * ar(t, 1ms, 70ms) * 0.35;
Triangle Soft LeadMellow triangle lead with light vibrato and a rounded envelope.
import osc; import env; import trig; import mod;
float g = clockgate(2, 0.5);
float vib = 1 + 0.006 * lfo(5.5, 0);
out1 = tri(A4 * vib) * adsr(g, 15ms, 90ms, 0.75, 220ms) * 0.5;
Buzzy Narrow PulseThin narrow-pulse lead tamed by a resonant lowpass.
import osc; import filter; import env; import trig;
float g = clockgate(3, 0.5);
out1 = svf_lp(pulse(E4, 0.12), 3000, 2) * adsr(g, 4ms, 80ms, 0.6, 150ms) * 0.4;
Metallic FM Bell LeadInharmonic FM lead with a long ringing decay for a bell-like tone.
import osc; import env; import trig;
float g = clockgate(2.5, 0.4);
out1 = fm2(C4, 3.5, 8) * adsr(g, 2ms, 200ms, 0.2, 300ms) * 0.4;
Wavefolded Tri LeadTriangle lead pushed through a wavefolder that opens with the envelope.
import osc; import drive; import env; import trig;
float g = clockgate(2, 0.5);
out1 = wavefold(tri(G3), 0.5 + 0.5 * adsr(g, 5ms, 150ms, 0.4, 200ms)) * adsr(g, 5ms, 150ms, 0.5, 200ms) * 0.4;
Bitcrushed Square LeadLo-fi square lead crushed to a handful of bits.
import osc; import drive; import env; import trig;
float t = metro(4);
out1 = bitcrush(square(A3, 0.5), 5) * ar(t, 2ms, 160ms) * 0.35;
Tremolo Saw LeadSaw lead pulsed with a rhythmic tremolo.
import osc; import fx; import env; import trig;
float g = clockgate(2, 0.6);
out1 = tremolo(saw(D4), 7, 0.6) * adsr(g, 10ms, 100ms, 0.7, 200ms) * 0.35;
Chorus SupersawWide supersaw lead sweetened with a slow chorus.
import osc; import fx; import env; import trig;
float g = clockgate(1.5, 0.6);
out1 = chorus(supersaw(A3, 0.03), 0.6, 0.4) * adsr(g, 12ms, 150ms, 0.75, 300ms) * 0.3;
Phaser Saw LeadSaw lead swept by a phaser for a liquid movement.
import osc; import fx; import env; import trig;
float g = clockgate(2, 0.5);
out1 = phaser(saw(E4), 0.4, 0.7) * adsr(g, 8ms, 120ms, 0.6, 220ms) * 0.35;
Echo Square LeadShort square lead trailing into a feedback delay echo.
import osc; import fx; import env; import trig;
float g = clockgate(3, 0.4);
float v = square(C4, 0.4) * adsr(g, 4ms, 80ms, 0.4, 120ms) * 0.4;
out1 = v + delayfx(v, 12000, 0.4);
LFO Filter SweepSaw lead with a resonant SVF cutoff cycling under a slow LFO.
import osc; import filter; import env; import trig; import mod;
float g = clockgate(2, 0.5);
float cut = 600 + 2500 * (0.5 + 0.5 * lfo(0.5, 0));
out1 = svf_lp(saw(A3), cut, 6) * adsr(g, 6ms, 120ms, 0.6, 200ms) * 0.3;
Octave Stack SawSaw lead reinforced with an octave-up saw for extra brightness.
import osc; import env; import trig;
float g = clockgate(2, 0.5);
out1 = (saw(A3) * 0.6 + saw(A4) * 0.4) * adsr(g, 8ms, 110ms, 0.7, 200ms) * 0.3;
Expressive SlideSaw lead gliding between random pitches with an overlaid vibrato.
import osc; import env; import trig; import mod; import rnd;
float t = metro(2);
float note = 196 + 262 * randh(2);
float vib = 1 + 0.01 * lfo(6, 0);
out1 = saw(glide(note, 90ms) * vib) * ar(t, 5ms, 350ms) * 0.35;
Hardsync RipAggressive hardsync lead with an envelope ripping the sync pitch upward.
import osc; import env; import trig;
float g = clockgate(2, 0.5);
float sweep = adsr(g, 2ms, 250ms, 0.3, 200ms);
out1 = hardsync(A3, A3 * (1 + 3 * sweep)) * adsr(g, 3ms, 200ms, 0.5, 200ms) * 0.35;

Pads 24

Warm Saw PadDetuned supersaw drone rolled off through a ladder filter - the classic warm bed.
import osc; import filter;
out1 = ladder(supersaw(A2, 0.04), 900, 0.3) * 0.3;
String EnsembleTwo supersaws an octave apart, chorused into a lush string section.
import osc; import fx;
float s = supersaw(A2, 0.05) * 0.5 + supersaw(A3, 0.05) * 0.25;
out1 = chorus(s, 0.3, 0.6) * 0.4;
Glass PadHigh FM tone with a gentle index, drowned in long reverb for a glassy sheen.
import osc; import fx;
out1 = reverb(fm2(C4, 3, 2) * 0.3, 0.85);
Choir AhFiltered pulse fifth with a formant peak - a breathy vocal-ish drone.
import osc; import filter; import eq;
float v = pulse(C3, 0.45) * 0.3 + pulse(G3, 0.35) * 0.2;
out1 = peakeq(svf_lp(v, 1500, 1.5), 800, 3, 6) * 0.5;
Evolving CutoffSupersaw whose ladder cutoff drifts slowly under a sine LFO.
import osc; import filter; import mod;
float cf = 300 + (lfo(0.1, 0) * 0.5 + 0.5) * 1500;
out1 = ladder(supersaw(A2, 0.03), cf, 0.35) * 0.3;
Shimmer PadA saw bed fed through octave-up shimmer for a rising angelic tail.
import osc; import gran;
out1 = shimmer(saw(A2) * 0.3, 12, 0.6) * 0.5;
Deep DroneSub sine plus an octave triangle, filtered low for a heavy foundation.
import osc; import filter;
float d = sine(A1) * 0.4 + tri(A2) * 0.2;
out1 = svf_lp(d, 600, 1) * 0.6;
Breathing BellsFM glass tone whose index breathes under a slow LFO, in reverb.
import osc; import mod; import fx;
float idx = 2 + lfo(0.05, 0) * 1.5;
out1 = reverb(fm2(E3, 2, idx) * 0.25, 0.8);
Nylon AirTwo phase-distortion voices a fifth apart, softly low-passed.
import osc; import filter;
out1 = svf_lp(pd(C3, 0.5) * 0.4 + pd(G3, 0.4) * 0.25, 1400, 1.5) * 0.5;
Frozen PlateA quiet square drone smeared into an endless plate reverb.
import osc; import verb;
out1 = plate(square(A2, 0.5) * 0.2, 0.9, 0.5);
Detuned FifthsRoot and fifth supersaws stacked for a wide, hollow analog pad.
import osc; import filter;
float s = supersaw(D2, 0.04) * 0.4 + supersaw(A2, 0.04) * 0.3;
out1 = ladder(s, 1100, 0.25) * 0.3;
Slow SwellSupersaw pad with a slow tremolo that makes it breathe in and out.
import osc; import fx;
out1 = tremolo(supersaw(A2, 0.05) * 0.3, 0.15, 0.5);
Phaser DriftA saw bed sweeping through a slow phaser for constant motion.
import osc; import fx;
out1 = phaser(supersaw(F2, 0.04) * 0.3, 0.1, 0.7);
UnderwaterChorused saw pushed deep under a resonant low-pass - muffled and wet.
import osc; import filter; import fx;
float p = chorus(saw(A2) * 0.3, 0.4, 0.8);
out1 = svf_lp(p, 700, 2) * 0.5;
Additive GlassA Cmaj triad of pure sines in the upper register, dissolved in reverb.
import osc; import fx;
float g = sine(C4) * 0.3 + sine(E4) * 0.2 + sine(G4) * 0.15;
out1 = reverb(g, 0.8);
Folded WarmthGentle wavefolding adds harmonics to a saw before a soft low-pass.
import osc; import drive; import filter;
out1 = svf_lp(wavefold(saw(A2) * 0.5, 0.3), 1000, 1) * 0.4;
Noise WashBand-passed noise held in long reverb for an airy, pitchless pad.
import filter; import fx;
out1 = reverb(svf_bp(noise() * 0.3, 500, 4), 0.85);
Random MotionSupersaw with a smoothed random LFO wandering the cutoff.
import osc; import filter; import mod;
float cf = 400 + (randlfo(0.2, 0.9) * 0.5 + 0.5) * 1200;
out1 = ladder(supersaw(A2, 0.04), cf, 0.3) * 0.3;
CathedralFiltered pulse thirds bloomed into a large room reverb.
import osc; import filter; import verb;
float v = pulse(C3, 0.4) * 0.25 + pulse(E3, 0.35) * 0.2;
out1 = room(svf_lp(v, 1300, 1), 0.9, 0.4);
Sub SwellA pure low drone whose amplitude rises and falls under a slow LFO.
import osc; import mod;
float a = 0.5 + lfo(0.07, 0) * 0.2;
out1 = (sine(A1) * 0.5 + saw(A1) * 0.15) * a;
Comb ResonanceNoise through a resonant comb rings into a tuned, ghostly drone.
import fx; import filter;
out1 = svf_lp(comb(noise() * 0.2, 400, 0.9), 1500, 1) * 0.6;
Flanged StringsDetuned saws through a slow, feedback-rich flanger - jet-stream strings.
import osc; import fx;
out1 = flanger(supersaw(G2, 0.05) * 0.3, 0.12, 0.6, 0.5);
Hollow FifthSquare fifths softened by an allpass and low-pass - a woody, open pad.
import osc; import fx; import filter;
float s = square(A2, 0.5) * 0.25 + square(E3, 0.5) * 0.2;
out1 = svf_lp(allpass(s, 220, 0.5), 1200, 1) * 0.5;
Slow Glide DroneTwo FM voices, one glided, layered into a shifting reverb haze.
import osc; import mod; import fx;
float f = glide(A2, 2);
out1 = reverb((fm2(f, 1, 3) * 0.2 + fm2(A3, 2, 1) * 0.15), 0.8);

Keys 24

Rhodes WarmthClassic tine e-piano: low-index fm2 with a soft attack, gently tremolo'd; driven by an internal 3 Hz gate.
import osc; import env; import trig; import fx;
float g = clockgate(3, 0.5);
out1 = tremolo(fm2(C3, 1, 3) * adsr(g, 3ms, 200ms, 0.4, 300ms), 5, 0.2) * 0.5;
Wurli BarkWurlitzer-style reed piano: fm2 with more index for grit, softclipped for that barky midrange.
import osc; import env; import trig; import drive;
float g = clockgate(2.5, 0.5);
out1 = softclip(fm2(E3, 1, 4) * adsr(g, 2ms, 150ms, 0.3, 250ms), 1.5) * 0.4;
Drawbar OrganThree stacked sine drawbars (root/octave/fifth) with a sustaining gate and slow tremolo.
import osc; import env; import trig; import fx;
float g = clockgate(1.5, 0.7);
float o = sine(C3) + sine(C4)*0.6 + sine(G3)*0.4;
out1 = tremolo(o * adsr(g, 8ms, 50ms, 0.9, 120ms), 6, 0.25) * 0.3;
Gospel WhirlFour-drawbar organ pushed through chorus for a Leslie-style whirl; held gate keeps it singing.
import osc; import env; import trig; import fx;
float g = clockgate(2, 0.6);
float o = sine(C3) + sine(G3)*0.5 + sine(C4)*0.4 + sine(E4)*0.3;
out1 = chorus(o * adsr(g, 5ms, 40ms, 0.85, 150ms), 5, 0.3) * 0.28;
Nylon PluckKarplus pluck keys firing on a 5-of-8 euclidean pattern from a 6 Hz clock.
import phys; import trig; import seq;
float trg = euclid(metro(6), 8, 5);
out1 = pluck(A3, trg) * 0.5;
Struck BellsSimple metallic bell keys struck twice a second by an internal metro tick.
import phys; import trig;
float t = metro(2);
out1 = bell(t, C4, 0.9) * 0.4;
Clav StabClavinet-ish stab: a saw through a resonant low-pass with a very short, no-sustain envelope.
import osc; import env; import trig; import filter;
float g = clockgate(4, 0.3);
out1 = svf_lp(saw(C3), 2200, 4) * adsr(g, 1ms, 60ms, 0.0, 80ms) * 0.4;
Glass KeysBright inharmonic bell tone from high-ratio fm2 with a long ringing decay.
import osc; import env; import trig;
float g = clockgate(1.5, 0.4);
out1 = fm2(C4, 3.5, 6) * adsr(g, 1ms, 400ms, 0.0, 600ms) * 0.35;
Tine ReverbMellow fm2 tine keys sitting in a plate-ish reverb wash, gated at 2 Hz.
import osc; import env; import trig; import fx;
float g = clockgate(2, 0.5);
out1 = reverb(fm2(E4, 2, 4) * adsr(g, 1ms, 250ms, 0.2, 400ms), 0.5) * 0.35;
Toy PianoPlinky toy piano: a triangle wavefolded for buzz, hit fast with no sustain.
import osc; import env; import trig; import drive;
float g = clockgate(3, 0.4);
out1 = wavefold(tri(C4) * adsr(g, 1ms, 120ms, 0.0, 150ms), 0.3) * 0.4;
Marimba MalletWoody mallet keys: fundamental plus a soft fifth partial with a percussive decay.
import osc; import env; import trig;
float g = clockgate(5, 0.2);
out1 = (sine(C4) + sine(G4)*0.25) * adsr(g, 1ms, 180ms, 0.0, 200ms) * 0.5;
Music BoxTiny bell tine chiming on a clock-divided metro for a slow music-box lilt.
import phys; import trig; import seq;
float trg = clockdiv(metro(8), 2);
out1 = bell(trg, C4, 0.8) * 0.35;
Reggae BubbleShort organ stab plus an offset echo tap for that bubbling reggae-organ feel.
import osc; import env; import trig; import fx;
float g = clockgate(4, 0.25);
float o = (sine(C3) + sine(C4)*0.5) * adsr(g, 3ms, 60ms, 0.0, 80ms);
out1 = o * 0.3 + delayfx(o, 9000, 0.4) * 0.25;
DX E-PianoTextbook DX-style electric piano: 1:1 fm2 at low index with a sustaining body.
import osc; import env; import trig;
float g = clockgate(2, 0.5);
out1 = fm2(C3, 1, 2) * adsr(g, 2ms, 300ms, 0.5, 350ms) * 0.5;
HarpsichordPlucky harpsichord: a narrow pulse high-passed to thin it out, struck fast with no sustain.
import osc; import env; import trig; import filter;
float g = clockgate(4, 0.3);
out1 = svf_hp(pulse(C4, 0.3), 400, 1) * adsr(g, 1ms, 100ms, 0.0, 120ms) * 0.35;
Celesta ShimmerHigh sine bell keys fed into an octave shimmer for a sparkling celesta glow.
import osc; import env; import trig; import gran;
float g = clockgate(3, 0.3);
out1 = shimmer(sine(C4) * adsr(g, 1ms, 200ms, 0.0, 250ms), 12, 0.5) * 0.35;
Vibraphone MotorLong sine tone with deep tremolo emulating the spinning vibraphone motor.
import osc; import env; import trig; import fx;
float g = clockgate(1.5, 0.3);
out1 = tremolo(sine(A3) * adsr(g, 2ms, 500ms, 0.2, 700ms), 5, 0.5) * 0.4;
Funk Clav WahLadder-filtered saw clav with an auto-wah LFO sweeping the cutoff for funk stabs.
import osc; import env; import trig; import filter; import mod;
float g = clockgate(6, 0.25);
float cut = 1200 + 800 * lfo(3, 0);
out1 = ladder(saw(C3), cut, 0.5) * adsr(g, 1ms, 50ms, 0.0, 60ms) * 0.4;
Cathedral PipesWide sine pipe-organ stack (with a sub octave) drenched in plate reverb, slow gate.
import osc; import env; import trig; import verb;
float g = clockgate(1, 0.8);
float o = sine(C3) + sine(G3)*0.6 + sine(C4)*0.5 + sine(C3*0.5)*0.4;
out1 = plate(o * adsr(g, 20ms, 100ms, 0.9, 400ms), 0.7, 0.4) * 0.22;
Electric GrandChorused 2:1 fm2 keys in the low register for a warm electric-grand thump.
import osc; import env; import trig; import fx;
float g = clockgate(2.5, 0.5);
out1 = chorus(fm2(A2, 2, 2.5) * adsr(g, 3ms, 250ms, 0.4, 300ms), 3, 0.2) * 0.45;
Kalimba TineThumb-piano pluck run through a short comb for a metallic tine resonance, euclidean pattern.
import phys; import trig; import seq; import fx;
float trg = euclid(metro(7), 12, 5);
out1 = comb(pluck(E4, trg), 300, 0.5) * 0.4;
CZ Phase PianoCasio-CZ style phase-distortion keys: pd oscillator shaped by a medium-length envelope.
import osc; import env; import trig;
float g = clockgate(2, 0.5);
out1 = pd(C3, 0.6) * adsr(g, 2ms, 200ms, 0.3, 280ms) * 0.45;
Hammond PercussionOrgan body plus a fast-decaying octave click that mimics Hammond key-click percussion.
import osc; import env; import trig;
float g = clockgate(2, 0.6);
float perc = sine(C4) * adsr(g, 1ms, 80ms, 0.0, 90ms);
float body = (sine(C3) + sine(G3)*0.5) * adsr(g, 5ms, 40ms, 0.85, 150ms);
out1 = (perc * 0.5 + body) * 0.3;
Bell Piano Hybridfm2 piano tone blended with a struck bell, both washed in reverb for a hybrid keys pad.
import osc; import env; import trig; import phys; import fx;
float g = clockgate(1.5, 0.5);
float t = metro(1.5);
out1 = reverb(fm2(C4, 2, 3) * adsr(g, 1ms, 300ms, 0.2, 400ms) * 0.4 + bell(t, G4, 0.85) * 0.2, 0.4) * 0.6;

Drums 24

Deep House KickSine kick with a fast pitch drop, self-clocked at 2 Hz.
import osc;
import env;
import trig;
float t = metro(2);
float p = ar(t, 1ms, 45ms);
out1 = sine(45 + 160 * p) * ar(t, 1ms, 320ms) * 0.95;
Punchy Techno KickTighter, harder kick with a snappy body and a touch of softclip.
import osc;
import env;
import trig;
import drive;
float t = metro(2.2);
float p = ar(t, 1ms, 30ms);
out1 = softclip(sine(50 + 200 * p) * ar(t, 1ms, 200ms), 1.5) * 0.8;
Sub BoomVery low 808-style sub kick with long tail.
import osc;
import env;
import trig;
float t = metro(1.5);
float p = ar(t, 1ms, 60ms);
out1 = sine(35 + 90 * p) * ar(t, 2ms, 600ms) * 0.9;
Noise SnareTone plus noise burst, classic backbeat feel at 2 Hz.
import osc;
import env;
import trig;
float t = metro(2);
float body = sine(190) * ar(t, 1ms, 90ms);
float n = noise() * ar(t, 1ms, 150ms);
out1 = (body * 0.5 + n * 0.5) * 0.7;
Clap SnapBandpass noise clap driven by an internal clock.
import filter;
import env;
import trig;
float t = metro(2);
float n = noise() * ar(t, 1ms, 120ms);
out1 = svf_bp(n, 1600, 6) * 0.8;
Closed Hat TickHighpassed noise, very short, fast 8th-note pulse.
import filter;
import env;
import trig;
float t = metro(8);
float n = noise() * ar(t, 0.5ms, 35ms);
out1 = svf_hp(n, 8000, 3) * 0.5;
Open Hat WashHighpassed noise with a longer decay for an open hi-hat.
import filter;
import env;
import trig;
float t = metro(4);
float n = noise() * ar(t, 0.5ms, 200ms);
out1 = svf_hp(n, 7000, 2) * 0.45;
Rimshot ClickShort bandpass noise click, high and snappy.
import filter;
import env;
import trig;
float t = metro(4);
float n = noise() * ar(t, 0.2ms, 25ms);
out1 = svf_bp(n, 2400, 8) * 0.6;
Floor TomLow pitched sine tom with a gentle pitch drop.
import osc;
import env;
import trig;
float t = metro(1.5);
float p = ar(t, 1ms, 80ms);
out1 = sine(90 + 60 * p) * ar(t, 1ms, 350ms) * 0.8;
Mid Tom RollHigher tom, quicker pulse for a rolling fill.
import osc;
import env;
import trig;
float t = metro(6);
float p = ar(t, 1ms, 50ms);
out1 = sine(160 + 90 * p) * ar(t, 1ms, 180ms) * 0.7;
Cowbell Two-ToneTwo detuned squares gated together, classic cowbell.
import osc;
import env;
import trig;
float t = metro(4);
float two = square(560, 0.5) + square(840, 0.5);
out1 = two * ar(t, 1ms, 120ms) * 0.3;
Crash CymbalLong highpassed noise wash for a crash.
import filter;
import env;
import trig;
float t = metro(0.5);
float n = noise() * ar(t, 1ms, 900ms);
out1 = svf_hp(n, 6000, 1.5) * 0.4;
Ride PingBandpass noise with a short metallic ping at 4 Hz.
import filter;
import env;
import trig;
float t = metro(4);
float n = noise() * ar(t, 0.5ms, 120ms);
out1 = svf_bp(n, 5200, 5) * 0.4;
Bitcrushed KickSine kick smashed through a bitcrusher for lo-fi grit.
import osc;
import env;
import trig;
import drive;
float t = metro(2);
float k = sine(48 + 150 * ar(t, 1ms, 40ms)) * ar(t, 1ms, 260ms);
out1 = bitcrush(k, 6) * 0.8;
Euclidean KickKick triggered by a Euclidean pattern over an 8-step clock.
import osc;
import env;
import trig;
import seq;
float trg = euclid(metro(8), 8, 5);
out1 = sine(50 + 140 * ar(trg, 1ms, 40ms)) * ar(trg, 1ms, 240ms) * 0.9;
Euclid HatHighpassed noise hat sprayed by a Euclidean rhythm.
import filter;
import env;
import trig;
import seq;
float trg = euclid(metro(16), 16, 11);
float n = noise() * ar(trg, 0.3ms, 40ms);
out1 = svf_hp(n, 9000, 3) * 0.4;
Bell PercPhysical bell voice struck by an internal clock.
import phys;
import trig;
float t = metro(2);
out1 = bell(t, 640, 0.7) * 0.4;
Metallic Reson HitNoise impulse rung through a resonator for a metal perc.
import phys;
import env;
import trig;
float t = metro(3);
float exc = noise() * ar(t, 0.2ms, 10ms);
out1 = reson(exc, 780, 0.96) * 0.5;
Zap TomFast pitch-sweeping sine for a sci-fi zap tom.
import osc;
import env;
import trig;
float t = metro(2);
float p = ar(t, 1ms, 60ms);
out1 = sine(400 * p + 70) * ar(t, 1ms, 200ms) * 0.7;
Snare Reverb HitNoisy snare fed into reverb for a big room tail.
import env;
import trig;
import fx;
float t = metro(2);
float s = noise() * ar(t, 1ms, 130ms);
out1 = s * 0.5 + reverb(s, 0.6) * 0.4;
Dust ShakerRandom dust impulses filtered high for a shaker texture.
import filter;
import rnd;
import env;
float d = dust(30);
float n = noise() * ar(d, 0.3ms, 30ms);
out1 = svf_hp(n, 9500, 2) * 0.35;
Clap LayeredBandpass noise clap thickened with a short burst of retriggers.
import filter;
import env;
import trig;
float t = metro(2);
float b = burst(t, 3, 90);
float n = noise() * ar(b, 0.5ms, 60ms);
out1 = svf_bp(n, 1500, 5) * 0.7;
Gabber KickOverdriven distorted kick with hard softclip and drive.
import osc;
import env;
import trig;
import drive;
float t = metro(4);
float k = sine(55 + 180 * ar(t, 1ms, 35ms)) * ar(t, 1ms, 180ms);
out1 = softclip(k * 3, 4) * 0.6;
Pluck PercKarplus pluck used as a tuned percussion voice.
import phys;
import trig;
import seq;
float trg = euclid(metro(6), 6, 4);
out1 = pluck(E3, trg) * 0.5;

Percussion 24

Temple BellLow struck bell on a slow 1 Hz internal clock, long ring.
import phys; import trig;
float t = metro(1);
out1 = bell(t, C4, 3) * 0.5;
Struck MarimbaPure sine with a fast AR pluck for a woody mallet tone.
import osc; import env; import trig;
float t = metro(6);
out1 = sine(C4) * ar(t, 1ms, 90ms) * 0.5;
Kalimba ThumbTriangle tine with a euclidean thumb-piano pattern.
import osc; import env; import trig; import seq;
float t = euclid(metro(5), 16, 7);
out1 = tri(E4) * ar(t, 1ms, 180ms) * 0.5;
WoodblockResonated impulse click, dry and mid-pitched.
import phys; import trig;
float t = metro(3);
out1 = reson(impulse(t), 1200, 0.8) * 0.5;
Glass PingHigh, bright resonated ping with a long shimmer tail.
import phys; import trig;
float t = metro(2);
out1 = reson(impulse(t), 3000, 0.95) * 0.4;
Metal ClangTwo detuned bells struck together for an inharmonic metal hit.
import phys; import trig;
float t = metro(1.5);
out1 = bell(t, 520, 4) * 0.4 + bell(t, 790, 3) * 0.25;
ClaveSharp resonant click on a 3-of-8 euclidean rhythm.
import phys; import trig; import seq;
float t = euclid(metro(8), 8, 3);
out1 = reson(impulse(t), 2500, 0.85) * 0.5;
Tabla BendPitch-bent sine membrane that snaps downward as it decays.
import osc; import env; import trig;
float t = metro(4);
float e = ar(t, 1ms, 120ms);
out1 = sine(180 + 120 * e) * e * 0.6;
Steel DrumFM tone with envelope-swept index for a pan-drum ping.
import osc; import env; import trig;
float t = metro(4);
float e = ar(t, 2ms, 160ms);
out1 = fm2(C4, 3, 4 * e) * e * 0.5;
Music BoxHigh octave triangle tines on a dense euclidean run.
import osc; import env; import trig; import seq;
float t = euclid(metro(8), 16, 11);
out1 = tri(C4 * 2) * ar(t, 1ms, 140ms) * 0.4;
Gamelan GongTwo inharmonic bells on a euclidean pulse, metallic sheen.
import phys; import trig; import seq;
float t = euclid(metro(6), 16, 7);
out1 = bell(t, 610, 3) * 0.4 + bell(t, 930, 2) * 0.25;
VibraphoneSine mallet with slow tremolo for a vibraphone wobble.
import osc; import env; import trig; import fx;
float t = metro(3);
float e = ar(t, 3ms, 400ms);
out1 = tremolo(sine(E4) * e, 5, 0.4) * 0.5;
Log DrumLow tuned sine thump on a 5-of-8 euclidean groove.
import osc; import env; import trig; import seq;
float t = euclid(metro(8), 8, 5);
out1 = sine(A2) * ar(t, 1ms, 130ms) * 0.6;
Crystal BellsSparse, very high bell with a long glassy decay.
import phys; import trig; import seq;
float t = euclid(metro(12), 16, 5);
out1 = bell(t, 1760, 5) * 0.35;
Anvil StrikeSoft-clipped twin bells for a harsh struck-iron clang.
import phys; import trig; import drive;
float t = metro(2);
out1 = softclip(bell(t, 440, 2) + bell(t, 660, 2), 3) * 0.3;
Bell ChoirTwo bells at different pitches, the lower on a divided clock.
import phys; import trig; import seq;
float m = metro(2);
out1 = bell(m, C4, 3) * 0.4 + bell(clockdiv(m, 3), G3, 4) * 0.3;
Marimba ChordThree sines struck as a triad with a fast mallet envelope.
import osc; import env; import trig;
float t = metro(5);
float e = ar(t, 1ms, 80ms);
out1 = (sine(C4) + sine(E4) * 0.6 + sine(G4) * 0.4) * e * 0.35;
Woodblock GrooveLow resonant clicks on a driving 5-of-8 pattern.
import phys; import trig; import seq;
float t = euclid(metro(8), 8, 5);
out1 = reson(impulse(t), 900, 0.75) * 0.5;
Plucked BellsKarplus pluck tuned high for a bell-like tine.
import phys; import trig; import seq;
float t = euclid(metro(6), 16, 7);
out1 = pluck(C4, t) * 0.5;
Bongo PairHigh and low tuned sines alternating via a divided clock.
import osc; import env; import trig; import seq;
float m = metro(6);
out1 = sine(220) * ar(m, 1ms, 70ms) * 0.5 + sine(330) * ar(clockdiv(m, 2), 1ms, 90ms) * 0.4;
Glass ArmonicaVery high resonant tone held long for a rubbed-glass sheen.
import phys; import trig; import seq;
float t = euclid(metro(10), 16, 6);
out1 = reson(impulse(t), 3600, 0.96) * 0.35;
Rototom SweepSine drum with a wide downward pitch sweep as it decays.
import osc; import env; import trig;
float t = metro(3);
float e = ar(t, 1ms, 200ms);
out1 = sine(160 + 300 * e) * e * 0.55;
Kalimba CascadeFast high triangle tines on a busy 13-of-16 run.
import osc; import env; import trig; import seq;
float t = euclid(metro(12), 16, 13);
out1 = tri(G4) * ar(t, 1ms, 110ms) * 0.4;
CowbellTwo detuned squares with a short envelope, classic 808 cowbell.
import osc; import env; import trig;
float t = metro(4);
float e = ar(t, 1ms, 120ms);
out1 = (square(540, 0.5) + square(800, 0.5)) * e * 0.3;

Effects 24

Tape EchoClassic feedback delay mixed under the dry signal; processes in1.
import fx;
out1 = in1 + delayfx(in1, 18000, 0.5) * 0.7;
Ping-Pong DelayTwo offset delay lines panned hard left/right for a bouncing echo.
import fx; import pan;
out1 = in1*0.6 + panL(delayfx(in1, 11000, 0.55), -0.8);
out2 = in1*0.6 + panR(delayfx(in1, 16000, 0.55), 0.8);
Dub DelayLong echo with a low-pass on the wet tail for darkening repeats.
import fx; import filter;
out1 = in1 + svf_lp(delayfx(in1, 20000, 0.6), 1800, 2) * 0.7;
Plate ReverbBright, dense plate tail blended with the dry input.
import verb;
out1 = in1*0.4 + plate(in1, 0.88, 0.35) * 0.6;
Small RoomShort damped room ambience for a sense of space.
import verb;
out1 = in1*0.5 + room(in1, 0.6, 0.5) * 0.5;
Shimmer VerbOctave-up granular shimmer fed back into a reverberant cloud.
import gran;
out1 = in1*0.5 + shimmer(in1, 2, 0.72) * 0.5;
Lush ChorusSlow, deep chorus for a widened, thickened tone.
import fx;
out1 = in1*0.5 + chorus(in1, 0.8, 0.5) * 0.5;
Jet FlangerDeep swept flange with high feedback for a jet-plane whoosh.
import fx;
out1 = flanger(in1, 0.2, 0.8, 0.85);
Sweep PhaserSlow multi-notch phaser sweeping across the spectrum.
import fx;
out1 = phaser(in1, 0.35, 0.8);
Slow TremoloAmplitude modulation for a pulsing, breathing effect.
import fx;
out1 = tremolo(in1, 4.5, 0.7);
Ring ModulatorMultiplies the input by a fixed sine for metallic sidebands.
import osc;
out1 = in1 * sine(180) * 0.9;
Auto-WahLFO-swept band-pass filter for a rhythmic wah motion.
import filter; import mod;
float c = 350 + 2200 * (lfo(1.6, 0) * 0.5 + 0.5);
out1 = svf_bp(in1, c, 6) * 1.6;
Envelope FilterLow-pass cutoff tracks the input's amplitude envelope.
import filter; import mod;
float e = envfollow(in1, 5ms, 90ms);
out1 = svf_lp(in1, 250 + e * 4500, 4);
Comb ResonatorTuned feedback comb adds a pitched metallic resonance.
import fx;
out1 = in1*0.6 + comb(in1, 160, 0.85) * 0.6;
Allpass DiffuserTwo cascaded allpass stages smear transients into diffusion.
import fx;
out1 = allpass(allpass(in1, 113, 0.6), 337, 0.5);
Bitcrush Lo-FiReduced bit depth followed by a one-pole for gritty lo-fi.
import drive; import filter;
out1 = onepole(bitcrush(in1, 5), 2600);
WavefolderFolds peaks back on themselves for harmonically rich distortion.
import drive;
out1 = wavefold(in1, 2.8) * 0.5;
Softclip DriveSmooth saturation that rounds off peaks for warmth.
import drive;
out1 = softclip(in1, 4.5) * 0.6;
Ladder GrowlSoftclip into a resonant ladder low-pass for a growling filter drive.
import filter; import drive;
out1 = ladder(softclip(in1, 3), 1100, 2.6) * 0.7;
Shelf Tilt EQBoosts both lows and highs for a smiling loudness curve.
import eq;
out1 = highshelf(lowshelf(in1, 140, 4), 7000, 4);
Notch SweepSlowly sweeping notch filter carves a moving hole in the spectrum.
import eq; import mod;
float f = 500 + 1600 * (lfo(0.3, 0) * 0.5 + 0.5);
out1 = notch(in1, f, 5);
Glue CompressorModerate-ratio compression to tighten and glue dynamics.
import dyn;
out1 = compressor(in1, -18, 4, 10ms, 120ms);
Brickwall LimiterPushes gain into a hard ceiling for maximum loudness.
import dyn;
out1 = limiter(in1 * 2, 0.95);
Noise GateSilences signal below a linear threshold to cut low-level noise.
import dyn;
out1 = gate(in1, 0.05, 2ms, 100ms);

Sequenced 24

Euclid Pluck BassA 7-in-16 euclidean rhythm plucking a low A string.
import phys; import trig; import seq;
float trg = euclid(metro(8), 16, 7);
out1 = pluck(A1, trg) * 0.5;
Minor StaircaseCounter walks up a C minor scale, one step per metro tick.
import osc; import env; import trig; import seq; import scale;
float t = metro(6);
float n = degree(48, 5, counter(t, 0, 0, 7));
out1 = saw(midi2freq(n)) * ar(t, 2ms, 140ms) * 0.35;
Dust BellsRandomly-timed dust impulses ring a bright bell resonator.
import phys; import rnd;
float trg = dust(6);
out1 = bell(trg, 880, 0.9) * 0.4;
Sample & Hold LeadHeld random values step a phase-distortion lead each eighth.
import osc; import env; import rnd; import trig;
float t = metro(8);
float p = clamp(200 + randh(8) * 900, 90, 1400);
out1 = pd(p, 0.6) * ar(t, 1ms, 80ms) * 0.3;
Four-on-Floor KickEuclidean full-fill drives a pitch-swept sine kick.
import osc; import env; import trig; import seq;
float t = euclid(metro(4), 4, 4);
out1 = sine(40 + 120 * ar(t, 1ms, 40ms)) * ar(t, 1ms, 260ms) * 0.9;
Fifths StepperSample-and-hold leaps in fifths under a square-wave bass.
import osc; import env; import trig;
float t = metro(5);
float n = 36 + snh(floor(rand(0, 4)) * 7, t);
out1 = square(midi2freq(n), 0.5) * ar(t, 2ms, 160ms) * 0.35;
Pentatonic RainDust triggers scatter random major-pentatonic plucks.
import phys; import rnd; import scale;
float trg = dust(8);
float n = degree(60, 21, floor(rand(0, 5)));
out1 = pluck(midi2freq(n), trg) * 0.45;
Clock-Divided BassClockdiv thins a fast clock to a half-time square bass.
import osc; import env; import trig; import seq;
float clk = metro(8);
float b = clockdiv(clk, 4);
out1 = square(A1, 0.4) * ar(b, 2ms, 180ms) * 0.4;
Ratchet PluckEach slow tick bursts into four fast plucked ratchets.
import phys; import trig;
float trg = burst(metro(2), 4, 16);
out1 = pluck(E3, trg) * 0.4;
Chaos ArpA chaotic attractor is mapped to C-major scale degrees.
import osc; import env; import trig; import rnd; import util; import scale;
float t = metro(9);
float idx = clamp(floor(scale(chaos(9), -1, 1, 0, 8)), 0, 7);
float n = degree(48, 0, idx);
out1 = pulse(midi2freq(n), 0.3) * ar(t, 1ms, 90ms) * 0.3;
Drunk WanderA bounded random walk snapped to a minor-pentatonic saw.
import osc; import env; import trig; import scale; import rnd; import util;
float t = metro(6);
float n = inscale(48 + round(wrap(snh(drunk(4), t), 0, 24)), 0, 22);
out1 = saw(midi2freq(n)) * ar(t, 2ms, 150ms) * 0.3;
Descending HarpCounter reversed to cascade down a C major triangle harp.
import osc; import env; import trig; import seq; import scale;
float t = metro(7);
float n = degree(60, 0, 7 - counter(t, 0, 0, 7));
out1 = tri(midi2freq(n)) * ar(t, 3ms, 200ms) * 0.3;
Two-Octave RunA 15-step counter climbs two octaves of major pentatonic.
import osc; import env; import trig; import seq; import scale;
float t = metro(10);
float n = degree(36, 21, counter(t, 0, 0, 14));
out1 = pulse(midi2freq(n), 0.25) * ar(t, 1ms, 70ms) * 0.28;
Acid LineEuclidean gate, glided pitch and a resonant ladder sweep.
import osc; import filter; import env; import trig; import seq; import mod; import scale;
float t = euclid(metro(8), 16, 11);
float p = glide(midi2freq(degree(48, 5, counter(t, 0, 0, 7))), 20ms);
out1 = ladder(saw(p), 800 + 1500 * ar(t, 1ms, 120ms), 0.6) * 0.3;
Toggle BassToggle alternates root and fifth of a square bass each beat.
import osc; import env; import trig;
float t = metro(4);
float f = midi2freq(36 + toggle(t) * 7);
out1 = square(f, 0.45) * ar(t, 3ms, 200ms) * 0.4;
Euclid FM BlipsA dense 13-in-16 euclid fires short metallic FM hats.
import osc; import env; import trig; import seq;
float t = euclid(metro(16), 16, 13);
out1 = fm2(1200, 3.5, 8) * ar(t, 1ms, 40ms) * 0.25;
Pink S&H BluesPink-noise sample-and-hold quantized to a blues-scale saw.
import osc; import env; import trig; import rnd; import scale;
float t = metro(8);
float n = inscale(48 + round(snh(pinknoise(), t) * 12), 0, 34);
out1 = saw(midi2freq(n)) * ar(t, 2ms, 110ms) * 0.3;
Chaos MarimbaA chaos signal quantized to pentatonic mallet plucks.
import phys; import rnd; import scale; import util; import trig;
float trg = metro(10);
float n = inscale(round(clamp(scale(chaos(10), -1, 1, 36, 72), 36, 72)), 0, 21);
out1 = pluck(midi2freq(n), trg) * 0.4;
Ratchet SnareSlow ticks burst into three pink-noise snare ratchets.
import env; import trig; import rnd;
float trg = burst(metro(2), 3, 12);
out1 = pinknoise() * ar(trg, 1ms, 90ms) * 0.4;
Two-Layer GrooveOne clock feeds a divided kick plus a euclidean FM hat.
import osc; import env; import trig; import seq;
float clk = metro(8);
float k = clockdiv(clk, 4);
float h = euclid(clk, 8, 5);
out1 = sine(50 + 100 * ar(k, 1ms, 30ms)) * ar(k, 1ms, 200ms) * 0.7 + fm2(2000, 2, 4) * ar(h, 1ms, 25ms) * 0.15;
Scale Runner ReverbA six-step minor arpeggio drenched in its own reverb tail.
import osc; import env; import trig; import seq; import scale; import fx;
float t = metro(12);
float n = degree(60, 5, counter(t, 0, 0, 5));
float dry = tri(midi2freq(n)) * ar(t, 1ms, 90ms) * 0.3;
out1 = dry + reverb(dry, 0.6) * 0.4;
Snake CharmerA 12-step minor climb through a reedy band-pass filter.
import osc; import filter; import env; import trig; import seq; import scale;
float t = metro(7);
float n = degree(50, 5, counter(t, 0, 0, 11));
out1 = svf_bp(saw(midi2freq(n)), 1200, 6) * ar(t, 4ms, 180ms) * 0.35;
Dust Grain CloudDust-triggered bells smeared into a delayed shimmer cloud.
import phys; import rnd; import fx;
float trg = dust(12);
float b = bell(trg, 1320, 0.85) * 0.3;
out1 = b + delayfx(b, 9000, 0.5);
Sixteenth SupersawA fast five-step pentatonic supersaw arpeggio at 16 Hz.
import osc; import env; import trig; import seq; import scale;
float t = metro(16);
float n = degree(48, 21, counter(t, 0, 0, 4));
out1 = supersaw(midi2freq(n), 0.03) * ar(t, 1ms, 60ms) * 0.28;

Textures 24

Detuned DroneSelf-sounding supersaw drone smeared through a long plate reverb.
import osc; import verb;
out1 = plate(supersaw(A1, 0.05) * 0.3, 0.8, 0.4);
Noise WashWhite noise band-passed with a slow LFO sweeping the centre frequency.
import filter; import mod;
float c = 400 + 2000 * lfo(0.1, 0);
out1 = svf_bp(noise(), c, 4) * 0.4;
Shimmer CloudProcesses in1 into an octave-up feedback shimmer haze.
import gran;
out1 = shimmer(in1, 12, 0.7) * 0.6;
Pink BedWarm pink-noise bed lifted at the low end by a lowshelf.
import rnd; import eq;
out1 = lowshelf(pinknoise(), 200, 6) * 0.4;
Slow Evolving FMLow FM tone whose modulation index drifts on a very slow LFO.
import osc; import mod;
float ix = 2 + 6 * lfo(0.05, 0);
out1 = fm2(A1, 1.5, ix) * 0.4;
Feedback HazeComb feedback layered over in1 for a resonant metallic wash.
import fx;
out1 = in1 + comb(in1, 3000, 0.9) * 0.5;
Reverb PadTwo slightly detuned triangles drowned in a long reverb.
import osc; import fx;
out1 = reverb(tri(A2) * 0.3 + tri(A2 * 1.01) * 0.3, 0.9);
Glitch BitsCrushes in1 with a randomly stepping bit-depth for digital debris.
import drive; import mod;
float b = 2 + floor(6 * abs(sah(noise(), 8)));
out1 = bitcrush(in1, b) * 0.6;
Chaotic TextureSelf-sounding saw whose pitch wanders on a chaotic generator.
import osc; import rnd;
float f = 100 + 400 * chaos(2);
out1 = saw(f) * 0.3;
Dust CrackleSparse random impulses ringing bell resonators for a crackling field.
import rnd; import phys;
out1 = bell(dust(6), 900, 0.9) * 0.5;
Granular DriftGranularises in1 an octave down with long 80ms grains.
import gran;
out1 = gran(in1, 0.5, 80) * 0.6;
Deep DroneStacked octaves of sine, triangle and saw for a heavy self-sounding bed.
import osc;
out1 = sine(A1) * 0.4 + tri(A2) * 0.2 + saw(A3) * 0.08;
Metallic WashNoise driven into a high-decay resonator for a ringing sheet of metal.
import phys;
out1 = reson(noise() * 0.5, 1200, 0.98) * 0.5;
Slow Filter SweepSupersaw drone under a ladder filter opening on a slow triangle LFO.
import osc; import filter; import mod;
float c = 200 + 1800 * lfo(0.07, 1);
out1 = ladder(supersaw(A2, 0.04), c, 0.3) * 0.3;
Feedback Delay CloudLong high-feedback delay smears in1 into an evolving cloud.
import fx;
out1 = in1 + delayfx(in1, 22000, 0.85);
Phaser FogBand-passed noise swirled through a slow deep phaser.
import fx; import filter;
out1 = phaser(svf_bp(noise(), 800, 2) * 0.5, 0.2, 0.8);
Chime RainRandom dust impulses ring bells at a sample-and-held random pitch.
import rnd; import phys;
float f = 400 + 800 * randh(3);
out1 = bell(dust(5), f, 0.85) * 0.4;
Warm Tape DroneDetuned supersaw softly clipped for a saturated, tape-like drone.
import osc; import drive;
out1 = softclip(supersaw(A1, 0.03) * 0.4, 2) * 0.4;
Shimmer Reverb PadA two-note sine pad fed into an octave-up shimmer for glassy ambience.
import osc; import gran;
float pad = sine(C3) * 0.2 + sine(G3) * 0.15;
out1 = shimmer(pad, 12, 0.75);
Random Bit GlitchSelf-sounding square with a metronome-toggled bit-depth flip.
import osc; import drive; import trig;
float b = 1 + floor(8 * toggle(metro(6)));
out1 = bitcrush(square(A3, 0.5) * 0.4, b);
Diffuse HazeTwo allpass smears diffuse in1 into a soft directionless fog.
import fx;
out1 = allpass(in1, 1500, 0.7) + allpass(in1, 700, 0.6) * 0.5;
Chaotic FM StormFM tone whose ratio is driven chaotically for a turbulent texture.
import osc; import rnd;
float r = 1 + 4 * chaos(1);
out1 = fm2(A2, r, 8) * 0.3;
Room Noise BedPink noise settled into a damped room reverb for a spatial bed.
import rnd; import verb;
out1 = room(pinknoise() * 0.4, 0.8, 0.5);
Phase Drift DroneTwo phase-distortion oscillators whose amount breathes on a slow LFO.
import osc; import mod;
float a = 0.3 + 0.3 * lfo(0.03, 0);
out1 = pd(A1, a) * 0.25 + pd(A2, a) * 0.2;

Tools 24

Mono SumFold a stereo pair (in1/in2) down to a single mono channel.
import pan;
out1 = mono(in1, in2);
DC BlockerStrip DC offset from in1 with a one-pole highpass.
out1 = dcblock(in1);
Trim Minus 6Static gain trim: attenuate in1 by 6 dB.
import util;
out1 = in1 * dbgain(-6);
Soft CeilingTransparent brickwall limiter holding peaks under 0.9.
import dyn;
out1 = limiter(in1, 0.9);
Noise GateSilence in1 below a low linear threshold with fast open, slow close.
import dyn;
out1 = gate(in1, 0.02, 5ms, 120ms);
Auto CrossfadeSlow LFO sweeps the blend between in1 and in2.
import util;
import mod;
float t = lfo(0.1, 0) * 0.5 + 0.5;
out1 = xfade(in1, in2, t);
Stereo WidenMid-side widening of the in1/in2 pair to L and R.
import pan;
out1 = widenL(in1, in2, 0.6);
out2 = widenR(in1, in2, 0.6);
Haas SpreadDry left, 12 ms delayed right for a psychoacoustic width trick.
import pan;
out1 = in1;
out2 = haas(in1, 12ms);
Hard ClipBrutal symmetric clip of in1 at plus/minus 0.7.
out1 = clamp(in1, -0.7, 0.7);
Bus GlueGentle 4:1 bus compression to glue a mix.
import dyn;
out1 = compressor(in1, -18, 4, 10ms, 150ms);
Tilt EQAir up top, weight trimmed low for a bright tilt.
import eq;
out1 = lowshelf(highshelf(in1, 4khz, 3), 200, -3);
Envelope FollowerTrack the amplitude of in1 as a smoothed control signal.
import mod;
out1 = envfollow(in1, 5ms, 80ms);
Tube WarmthSoft saturation drives in1 for analog-style thickness.
import drive;
out1 = softclip(in1, 2);
Bit ReducerCrush in1 to 8-bit resolution for lo-fi grit.
import drive;
out1 = bitcrush(in1, 8);
WavefolderFold in1 back on itself for harmonic bloom, scaled to stay sane.
import drive;
out1 = wavefold(in1, 0.5) * 0.6;
Downward ExpanderPush quiet material below threshold further down for contrast.
import dyn;
out1 = expander(in1, -30, 2, 5ms, 100ms);
Auto-PanA shared LFO pans in1 continuously across the stereo field.
import pan;
import mod;
float p = lfo(0.4, 0);
out1 = panL(in1, p);
out2 = panR(in1, p);
Hum NotchNarrow notch at 60 Hz to kill mains hum from in1.
import eq;
out1 = notch(in1, 60, 4);
Presence LiftPeaking boost around 3 kHz for vocal and lead clarity.
import eq;
out1 = peakeq(in1, 3khz, 1.2, 4);
Slew SmootherRate-limit in1 to smooth jittery control signals.
out1 = slew(in1, 0.002);
Sample and HoldFreeze in1 eight times a second on an internal metro tick.
import trig;
out1 = snh(in1, metro(8));
Pitch QuantizeSnap the in1 control signal to 12 discrete steps.
import util;
out1 = quant(in1, 12);
Bipolar to UnipolarRescale a plus/minus 1 signal into the 0 to 1 range.
import util;
out1 = scale(in1, -1, 1, 0, 1);
Makeup LimiterPush 6 dB of makeup gain into a ceiling limiter for loudness.
import util;
import dyn;
out1 = limiter(in1 * dbgain(6), 0.95);