peaks
peaks · modulation · schema v1Dual-channel multi-mode utility (Mutable Instruments Peaks archetype, Émilie Gillet, 2013, MIT-licensed). Each channel selects one of five modes — KICK (sine carrier + pitch envelope + amp envelope), SNARE (body sine + filtered noise + decay), HIHAT (six-square metallic cluster + bandpass + decay), ENV (attack-decay envelope, CV-output 0..1, re-attacks on gate), LFO (sine/triangle/square, CV-output ±1, phase resets on gate). Two mode-dependent knobs per channel: knob1 = pitch/mix/brightness/attack/rate; knob2 = decay or waveshape. Gate input retriggers the active engine on rising edges. v1 ships five modes; multistage envelope / tap-LFO / BPF mode deferred to follow-up.
the faceplate
8 inputs · 2 outputs · 6 params
inputs
| id | cable | what it does |
|---|---|---|
gate0 | gate | Channel A's trigger: a rising edge fires the active mode once — a drum hit (KICK/SNARE/HIHAT), one attack/decay envelope (ENV), or a phase-reset of the LFO. Length comes from the mode's controls, not how long the gate stays high. gate / trigger |
gate1 | gate | Channel B's trigger: same as channel A's gate for the B channel. gate / trigger |
mode0_cv | cv | CV that displaces channel A's Mode selector (discrete), so a stepped CV can switch A between KICK/SNARE/HIHAT/ENV/LFO between hits. control voltage (CV); modulates mode0 (integer buckets — CV selects a discrete step) |
mode1_cv | cv | CV that displaces channel B's Mode selector (discrete). control voltage (CV); modulates mode1 (integer buckets — CV selects a discrete step) |
k1_0_cv | cv | CV that adds to channel A's knob 1 (whose meaning follows A's mode — Pitch/Mix/Bright/Attack/Rate). control voltage (CV); modulates k1_0 (additive offset — ±1 CV sweeps the full range, centered on the knob) |
k2_0_cv | cv | CV that adds to channel A's knob 2 (Decay in the drum/ENV modes, Wave in LFO mode). control voltage (CV); modulates k2_0 (additive offset — ±1 CV sweeps the full range, centered on the knob) |
k1_1_cv | cv | CV that adds to channel B's knob 1 (B's mode-dependent first parameter). control voltage (CV); modulates k1_1 (additive offset — ±1 CV sweeps the full range, centered on the knob) |
k2_1_cv | cv | CV that adds to channel B's knob 2 (B's mode-dependent second parameter). control voltage (CV); modulates k2_1 (additive offset — ±1 CV sweeps the full range, centered on the knob) |
outputs
| id | cable | what it does |
|---|---|---|
out0 | audio | Channel A's output: audio in the KICK/SNARE/HIHAT modes, or a unipolar control voltage in ENV (an attack/decay shape) and a bipolar one in LFO. Patch to the mixer for drums, or to a CV destination for ENV/LFO. audio signal |
out1 | audio | Channel B's output, same audio/CV duality as channel A based on B's mode. audio signal |
params
| id | label | range | default | curve |
|---|---|---|---|---|
mode0 | Mode A | 0..? | 4 | discrete |
mode1 | Mode B | 0..? | 4 | discrete |
k1_0 | A1 | 0.001..200 | 1 | linear |
k2_0 | A2 | 0.001..5 | 0.3 | linear |
k1_1 | B1 | 0.001..200 | 1 | linear |
k2_1 | B2 | 0.001..5 | 0.3 | linear |
controls
| control | what it does |
|---|---|
| A1 | Channel A's first knob — its meaning follows the mode: Pitch (KICK), Mix of body vs noise (SNARE), Brightness (HIHAT), Attack time (ENV), or Rate (LFO). |
| B1 | Channel B's first knob (mode-dependent, same mapping as channel A's knob 1). |
| A2 | Channel A's second knob: Decay time in the KICK/SNARE/HIHAT/ENV modes, or Wave shape (sine→triangle→square) in LFO mode. |
| B2 | Channel B's second knob (mode-dependent, same mapping as channel A's knob 2). |
| Mode A | Channel A's mode: KICK, SNARE, HIHAT, ENV (one-shot attack/decay), or LFO (retriggered each gate). Changing it relabels A's two faders to that mode's parameters. |
| Mode B | Channel B's mode (same five options as channel A). |
source
peaks.ts on GitHub.