SPB Git

Repository Public

instruments.md 42.0 KB

# Instrument engines

The 16 engines of Sonata 0.1 with every parameter the compiler accepts. An engine is selected with model NAME in an instrument definition; the named instruments of the standard library are listed in Standard instruments.

Engine Family Presets Method
piano keyboard 5 Modal synthesis: up to 36 inharmonic partials per note, each as two detuned decaying sinusoids (prompt sound and aftersound), amplitudes from a struck-string spectrum; filtered-noise hammer knock; resonator bank for the soundboard
plucked_string plucked 6 Digital waveguide (extended Karplus-Strong): tuned delay loop with loss and dispersion filters, analytic pluck excitation, modal body
bowed_string bowed 6 Digital waveguide: two delay lines (bow to bridge, bow to nut), stick-slip friction as a memoryless function of the bow-string velocity difference, one-pole bridge loss, modal body
flute woodwind 5 Forced-jet waveguide: an air jet oscillating at the note frequency is switched by a tanh edge nonlinearity and, with its turbulence noise, drives a one-period waveguide tube with a low-pass end reflection
clarinet woodwind 4 Digital waveguide: half-period cylindrical bore closed at the reed, linear reed reflection table with saturation, one-pole bell reflection
brass brass 5 Forced lip-valve waveguide: lips opening periodically at the note frequency gate mouth pressure into a one-period waveguide tube; the bell reflects low frequencies and radiates the rest
organ organ 6 Additive synthesis: nine sinusoids at the drawbar footages (0.5, 1.5, 1, 2, 3, 4, 5, 6, 8 times the note), plus click, percussion and chiff transients
bass bass 6 Electric: Karplus-Strong waveguide string, pickup comb filter, one-pole tone control, tanh amplifier. Synth: polyBLEP saw/square plus sub sine through two cascaded state-variable low-pass filters with an envelope
synth synth 7 Subtractive synthesis: polyBLEP oscillators, zero-delay-feedback state-variable filter, ADSR envelopes, LFO, fixed modulation routes
fm synth 6 Phase-modulation synthesis: four sine operators with individual envelopes, six routings, feedback on operator 4
kick percussion 4 Sine oscillator with an exponential downward pitch sweep and exponential amplitude decay, filtered-noise click, tanh drive
snare percussion 4 Two decaying sinusoids for the shell modes (ratio 1 : 1.78) with a short pitch drop, plus band-passed white noise for the snare wires
hihat percussion 5 Six band-limited square oscillators at inharmonic ratios, summed through two band-pass filters and a high-pass, with an exponential envelope
modal_percussion percussion 8 Modal synthesis: a sum of exponentially damped sinusoids whose frequency ratios are those of the vibrating body; amplitudes shaped by the mallet's contact spectrum
voice voice 6 Source-filter synthesis: band-limited glottal pulse train with spectral tilt and aspiration noise, five parallel two-pole formant filters
patch synth 0 Per-voice interpreter of a typed signal graph (graph { } block): oscillators, envelopes, filters, delays and arithmetic evaluated sample by sample in declaration order

# piano

Piano — family keyboard. A synthesised acoustic piano. It models the stretched partials of stiff strings, the dependence of brightness on velocity, the double decay of unison strings and the sustain pedal. It is a physically informed approximation, not a sampled instrument.

Method. Modal synthesis: up to 36 inharmonic partials per note, each as two detuned decaying sinusoids (prompt sound and aftersound), amplitudes from a struck-string spectrum; filtered-noise hammer knock; resonator bank for the soundboard

Range. MIDI 21 to 108. Articulations. normal, staccato, legato, accent, marcato.

Parameter Unit Range Default Automatable Description
brightness 0–1 or % 0 to 1 0.5 Overall spectral tilt of the strings.
hammer.hardness 0–1 or % 0 to 1 0.5 Felt hardness: a harder hammer excites more partials, more so at high velocity.
hammer.noise 0–1 or % 0 to 1 0.3 Level of the hammer's knock.
strike_position 0–1 or % 0.05 to 0.3 0.125 Hammer strike point as a fraction of the string length; partials with a node there are weak (1/8 removes every 8th).
inharmonicity number 0 to 4 1 Multiplier of the string stiffness coefficient B (1 = a typical grand).
unison_detune st or cents 0 to 0.3 0.012 Mistuning between the strings of one note, which creates the slow beating and the two-stage decay.
decay number 0.2 to 3 1 Multiplier of every partial's decay time.
resonance 0–1 or % 0 to 1 0.25 yes Soundboard and sympathetic string resonance; rings much longer while the sustain pedal is down.
width 0–1 or % 0 to 1 0.6 Stereo spread from bass (left) to treble (right).
envelope choice natural adsr natural Amplitude envelope: adsr shapes the level; natural leaves the model's own decay and only damps after note-off.
envelope.attack time (s, ms or a duration) 0 to 10 0 Attack time (linear rise to full level).
envelope.decay time (s, ms or a duration) 0 to 20 1 Decay time: 60 dB of the distance to the sustain level.
envelope.sustain 0–1 or % 0 to 1 1 Sustain level.
envelope.release time (s, ms or a duration) 0.001 to 30 0.18 Release time after note-off (60 dB).
Preset Description
grand Concert grand: balanced, long sustain.
upright Upright: shorter strings, more inharmonic, shorter decay, narrower.
bright Hard hammers for pop and rock.
felt Soft felt strip: dark, intimate, audible action.
honky_tonk Deliberately mistuned unisons.

# plucked_string

Plucked String — family plucked. A single vibrating string per voice, plucked or struck at a chosen point, with a resonant body. Suits guitars, harps, harpsichords, kotos and invented string instruments.

Method. Digital waveguide (extended Karplus-Strong): tuned delay loop with loss and dispersion filters, analytic pluck excitation, modal body

Range. MIDI 28 to 96. Articulations. normal, staccato, legato, accent, pizzicato.

Parameter Unit Range Default Automatable Description
damping number 0.0005 to 1 0.012 yes String loss. The fundamental of A3 (220 Hz) decays by 60 dB in 0.06 / damping seconds; higher notes decay faster (proportional to 1/sqrt(f)).
brightness 0–1 or % 0 to 1 0.6 yes High-frequency content kept at each round trip of the string (0 = dull nylon, 1 = bright steel).
stiffness 0–1 or % 0 to 1 0.1 Bending stiffness: stretches the upper partials sharp through an allpass in the loop.
excitation choice pluck strike pluck How the string is set in motion: pluck releases a triangular displacement, strike injects a hammer-like velocity pulse.
excitation.position 0–1 or % 0.02 to 0.5 0.2 Excitation point as a fraction of the string length from the bridge; harmonics with a node there are missing.
excitation.hardness 0–1 or % 0 to 1 0.5 Hardness of the plectrum or hammer: harder means more high harmonics.
resonance choice none body modal body Resonator after the string: body is a small set of guitar-like modes, modal uses resonance.frequencies.
resonance.frequencies list of Hz each 20 to 20000 — Mode frequencies of the modal resonator (at most 16 are used).
resonance.mix 0–1 or % 0 to 1 0.25 yes Level of the resonator relative to the direct string.
resonance.decay time (s, ms or a duration) 0.01 to 5 0.15 Decay time (60 dB) of the resonator modes.
width 0–1 or % 0 to 1 0.3 Stereo spread of the strings by pitch.
envelope choice natural adsr natural Amplitude envelope: adsr shapes the level; natural leaves the model's own decay and only damps after note-off.
envelope.attack time (s, ms or a duration) 0 to 10 0.002 Attack time (linear rise to full level).
envelope.decay time (s, ms or a duration) 0 to 20 0.3 Decay time: 60 dB of the distance to the sustain level.
envelope.sustain 0–1 or % 0 to 1 0.6 Sustain level.
envelope.release time (s, ms or a duration) 0.001 to 30 0.25 Release time after note-off (60 dB).
Preset Description
nylon_guitar Classical guitar: mellow, medium sustain.
steel_guitar Steel-string guitar: bright, long sustain.
harp Concert harp: soft finger pluck near the middle, no body colouring.
harpsichord Quill pluck close to the bridge: nasal and bright.
banjo Short, bright, strongly coloured by the head.
dulcimer Struck string with a long ring.

# bowed_string

Bowed String — family bowed. A string driven continuously by a bow. Pressure, speed and position interact as on the instrument: too little pressure whistles, too much chokes. Tuning is calibrated at moderate pressure; extreme pressure flattens the pitch slightly, as on a real string.

Method. Digital waveguide: two delay lines (bow to bridge, bow to nut), stick-slip friction as a memoryless function of the bow-string velocity difference, one-pole bridge loss, modal body

Range. MIDI 28 to 100. Articulations. normal, legato, staccato, marcato, accent, tremolo, tenuto.

Parameter Unit Range Default Automatable Description
bow.pressure 0–1 or % 0 to 1 0.6 yes Bow force: narrows the sticking region of the friction curve. Low = airy and unstable, high = pressed.
bow.speed 0–1 or % 0.05 to 1 0.7 yes Bow velocity, the main loudness control (scaled by note velocity).
bow.position 0–1 or % 0.03 to 0.3 0.127 Bowing point as a fraction of the string from the bridge (sul ponticello when small, sul tasto when large).
brightness 0–1 or % 0 to 1 0.5 yes Cutoff of the string's loss filter at the bridge.
body.mix 0–1 or % 0 to 1 0.6 yes Level of the body resonances.
body.size number 0.4 to 5 1 Scale of the body: its mode frequencies are divided by this (violin 1, viola 1.2, cello 2.6, double bass 4.2).
players integer 1 to 4 1 Number of independent strings per note (a section). Each has its own tuning offset, vibrato phase and pan; the cost grows in proportion.
players.detune st or cents 0 to 0.5 0.08 Spread of the tuning between section players.
width 0–1 or % 0 to 1 0.5 Stereo spread of the section players.
vibrato.rate Hz 0 to 12 5.6 yes Vibrato rate.
vibrato.depth st or cents 0 to 1 0.18 yes Vibrato depth (peak deviation).
vibrato.delay time (s, ms or a duration) 0 to 2 0.3 Time after the note start for the vibrato to reach its full depth.
envelope choice adsr adsr Amplitude envelope: adsr shapes the level; natural leaves the model's own decay and only damps after note-off.
envelope.attack time (s, ms or a duration) 0 to 10 0.07 Attack time (linear rise to full level).
envelope.decay time (s, ms or a duration) 0 to 20 0.15 Decay time: 60 dB of the distance to the sustain level.
envelope.sustain 0–1 or % 0 to 1 0.9 Sustain level.
envelope.release time (s, ms or a duration) 0.001 to 30 0.14 Release time after note-off (60 dB).
Preset Description
violin Solo violin.
viola Solo viola: larger body, darker.
cello Solo cello.
double_bass Double bass, slow bow.
section Three players per note: a small string section.
sul_ponticello Bowed next to the bridge: glassy and thin.

# flute

Flute — family woodwind. An open tube excited by an air jet. The jet's oscillation is prescribed at the note frequency instead of emerging from the jet-tube feedback loop: a self-oscillating jet model hops between tube modes, and this engine trades that behaviour for reliable tuning. The tube, the edge nonlinearity and the breath noise are modelled.

Method. Forced-jet waveguide: an air jet oscillating at the note frequency is switched by a tanh edge nonlinearity and, with its turbulence noise, drives a one-period waveguide tube with a low-pass end reflection

Range. MIDI 55 to 100. Articulations. normal, legato, staccato, marcato, accent, tenuto.

Parameter Unit Range Default Automatable Description
breath 0–1 or % 0 to 1 0.6 yes Blowing pressure (scaled by note velocity): drives the jet harder, which is louder and richer in harmonics.
jet.offset 0–1 or % 0 to 1 0.3 yes Aim of the air jet relative to the edge. Centred (0) gives odd harmonics only; off-centre adds the even ones.
noise 0–1 or % 0 to 1 0.3 yes Turbulence of the jet, heard as breath resonating in the tube.
brightness 0–1 or % 0 to 1 0.5 yes Cutoff of the tube's end reflection: how many harmonics the tube sustains.
vibrato.rate Hz 0 to 12 5.2 yes Vibrato rate.
vibrato.depth st or cents 0 to 1 0.1 yes Vibrato depth (peak deviation).
vibrato.delay time (s, ms or a duration) 0 to 2 0.35 Time after the note start for the vibrato to reach its full depth.
envelope choice adsr adsr Amplitude envelope: adsr shapes the level; natural leaves the model's own decay and only damps after note-off.
envelope.attack time (s, ms or a duration) 0 to 10 0.06 Attack time (linear rise to full level).
envelope.decay time (s, ms or a duration) 0 to 20 0.1 Decay time: 60 dB of the distance to the sustain level.
envelope.sustain 0–1 or % 0 to 1 0.9 Sustain level.
envelope.release time (s, ms or a duration) 0.001 to 30 0.1 Release time after note-off (60 dB).
Preset Description
concert Concert flute.
breathy Much air in the tone.
pure Almost no breath noise, light vibrato.
pan_flute Stopped pipe: hollow, slow airy attack.
piccolo_bright Hard blown and edgy.

# clarinet

Clarinet — family woodwind. A cylindrical tube closed at the mouthpiece, which favours odd harmonics and gives the hollow clarinet timbre. The reed is a pressure-controlled valve.

Method. Digital waveguide: half-period cylindrical bore closed at the reed, linear reed reflection table with saturation, one-pole bell reflection

Range. MIDI 38 to 96. Articulations. normal, legato, staccato, marcato, accent, tenuto.

Parameter Unit Range Default Automatable Description
breath 0–1 or % 0 to 1 0.7 yes Blowing effort (scaled by note velocity): mostly loudness. The mouth pressure itself only moves inside the narrow window where the reed oscillates.
reed.stiffness 0–1 or % 0 to 1 0.5 yes Reed stiffness: a soft reed closes easily and sounds buzzy, a hard reed is purer.
noise 0–1 or % 0 to 1 0.12 yes Breath turbulence added to the mouth pressure.
brightness 0–1 or % 0 to 1 0.5 yes Cutoff of the bell reflection filter.
vibrato.rate Hz 0 to 12 5 yes Vibrato rate.
vibrato.depth st or cents 0 to 1 0.06 yes Vibrato depth (peak deviation).
vibrato.delay time (s, ms or a duration) 0 to 2 0.4 Time after the note start for the vibrato to reach its full depth.
envelope choice adsr adsr Amplitude envelope: adsr shapes the level; natural leaves the model's own decay and only damps after note-off.
envelope.attack time (s, ms or a duration) 0 to 10 0.035 Attack time (linear rise to full level).
envelope.decay time (s, ms or a duration) 0 to 20 0.08 Decay time: 60 dB of the distance to the sustain level.
envelope.sustain 0–1 or % 0 to 1 0.92 Sustain level.
envelope.release time (s, ms or a duration) 0.001 to 30 0.07 Release time after note-off (60 dB).
Preset Description
clarinet B-flat clarinet, middle register.
bass_clarinet Dark, breathy low clarinet.
soft Subtone: gentle breath, little edge.
bright Hard blown, edgy.

# brass

Brass — family brass. A lip-reed instrument. The lips' motion is prescribed at the note frequency instead of emerging from the lip-tube feedback: a self-oscillating lip model does not hold its pitch over a usable range, and this engine trades that behaviour for reliable tuning. The valve nonlinearity (brighter when louder), the tube resonances and the bell are modelled.

Method. Forced lip-valve waveguide: lips opening periodically at the note frequency gate mouth pressure into a one-period waveguide tube; the bell reflects low frequencies and radiates the rest

Range. MIDI 34 to 86. Articulations. normal, legato, staccato, marcato, accent, tenuto.

Parameter Unit Range Default Automatable Description
breath 0–1 or % 0 to 1 0.7 yes Blowing pressure (scaled by note velocity). Louder is also much brighter: the lips stay open for a shorter part of each cycle.
lip.tension st or cents -2 to 2 0 yes Mistuning of the tube against the lips. At 0 the tube resonates exactly on the note; an offset weakens and thins the tone (lipping).
brightness 0–1 or % 0 to 1 0.5 yes Cutoff of the bell: above it the sound radiates instead of being reflected back into the tube.
growl 0–1 or % 0 to 1 0 yes Turbulence in the lip opening.
vibrato.rate Hz 0 to 12 5 yes Vibrato rate.
vibrato.depth st or cents 0 to 1 0.05 yes Vibrato depth (peak deviation).
vibrato.delay time (s, ms or a duration) 0 to 2 0.5 Time after the note start for the vibrato to reach its full depth.
envelope choice adsr adsr Amplitude envelope: adsr shapes the level; natural leaves the model's own decay and only damps after note-off.
envelope.attack time (s, ms or a duration) 0 to 10 0.045 Attack time (linear rise to full level).
envelope.decay time (s, ms or a duration) 0 to 20 0.12 Decay time: 60 dB of the distance to the sustain level.
envelope.sustain 0–1 or % 0 to 1 0.88 Sustain level.
envelope.release time (s, ms or a duration) 0.001 to 30 0.09 Release time after note-off (60 dB).
Preset Description
trumpet Bright and direct.
trombone Broad and warm.
horn Mellow, distant.
tuba Low and round.
growl Rough, noisy blowing.

# organ

Organ — family organ. A drawbar organ. Each drawbar sets the level of one sine-wave footage; partials above the Nyquist frequency are muted. Presets cover tonewheel and pipe registrations.

Method. Additive synthesis: nine sinusoids at the drawbar footages (0.5, 1.5, 1, 2, 3, 4, 5, 6, 8 times the note), plus click, percussion and chiff transients

Range. MIDI 24 to 108. Articulations. normal, legato, staccato, tenuto.

Parameter Unit Range Default Automatable Description
drawbar.f16 0–1 or % 0 to 1 1 yes Level of the 16' sub-octave.
drawbar.f5_1_3 0–1 or % 0 to 1 1 yes Level of the 5 1/3' fifth above the sub-octave.
drawbar.f8 0–1 or % 0 to 1 1 yes Level of the 8' unison (the written pitch).
drawbar.f4 0–1 or % 0 to 1 0 yes Level of the 4' octave.
drawbar.f2_2_3 0–1 or % 0 to 1 0 yes Level of the 2 2/3' twelfth.
drawbar.f2 0–1 or % 0 to 1 0 yes Level of the 2' fifteenth.
drawbar.f1_3_5 0–1 or % 0 to 1 0 yes Level of the 1 3/5' seventeenth.
drawbar.f1_1_3 0–1 or % 0 to 1 0 yes Level of the 1 1/3' nineteenth.
drawbar.f1 0–1 or % 0 to 1 0 yes Level of the 1' twenty-second.
click 0–1 or % 0 to 1 0.3 Key click at the start of each note.
percussion 0–1 or % 0 to 1 0 Level of the decaying percussion harmonic.
percussion.harmonic choice second third second Harmonic used by the percussion.
percussion.decay time (s, ms or a duration) 0.05 to 2 0.25 Decay time of the percussion.
chiff 0–1 or % 0 to 1 0 Pipe speech noise at the attack (pipe organ presets).
tremolo.rate Hz 0.1 to 12 6.6 yes Rotation rate of the rotary-style tremolo.
tremolo.depth 0–1 or % 0 to 1 0 yes Depth of the rotary-style tremolo (amplitude, opposite in the two channels).
vibrato.rate Hz 0 to 12 6.8 yes Vibrato rate.
vibrato.depth st or cents 0 to 1 0 yes Vibrato depth (peak deviation).
vibrato.delay time (s, ms or a duration) 0 to 2 0 Time after the note start for the vibrato to reach its full depth.
envelope choice adsr adsr Amplitude envelope: adsr shapes the level; natural leaves the model's own decay and only damps after note-off.
envelope.attack time (s, ms or a duration) 0 to 10 0.004 Attack time (linear rise to full level).
envelope.decay time (s, ms or a duration) 0 to 20 0 Decay time: 60 dB of the distance to the sustain level.
envelope.sustain 0–1 or % 0 to 1 1 Sustain level.
envelope.release time (s, ms or a duration) 0.001 to 30 0.03 Release time after note-off (60 dB).
Preset Description
jazz 888000000 with percussion and a little click.
full All drawbars out.
gospel 888800008: strong fundamental with a top sparkle.
flute_pipe Stopped flute pipe: fundamental and a soft third harmonic, with chiff.
principal Principal chorus of a pipe organ.
cathedral Full pipe organ with 16' foundation.

# bass

Bass — family bass. Two bass instruments under one model. The type choice selects which engine a preset uses; parameters marked Electric or Synth only affect that type.

Method. Electric: Karplus-Strong waveguide string, pickup comb filter, one-pole tone control, tanh amplifier. Synth: polyBLEP saw/square plus sub sine through two cascaded state-variable low-pass filters with an envelope

Range. MIDI 16 to 72. Articulations. normal, staccato, legato, accent.

Parameter Unit Range Default Automatable Description
type choice electric synth electric electric: plucked string, pickup and amplifier. synth: oscillators and resonant filter.
tone 0–1 or % 0 to 1 0.5 yes Electric: tone control of the pickup. Synth: filter cutoff.
drive 0–1 or % 0 to 1 0.15 yes Amplifier saturation.
damping number 0.002 to 1 0.02 Electric: string loss (as in plucked_string). Palm muting is a high value.
excitation.position 0–1 or % 0.03 to 0.5 0.2 Electric: plucking point from the bridge.
excitation.hardness 0–1 or % 0 to 1 0.4 Electric: finger (soft) to pick (hard).
pickup.position 0–1 or % 0.05 to 0.5 0.18 Electric: pickup location from the bridge; it combs the spectrum.
shape 0–1 or % 0 to 1 0.3 yes Synth: blend from sawtooth (0) to square (1).
sub 0–1 or % 0 to 1 0.3 yes Synth: level of the sine one octave below.
filter.resonance 0–1 or % 0 to 1 0.3 yes Synth: filter resonance.
filter.envelope number 0 to 6 2.5 yes Synth: filter envelope depth in octaves.
filter.decay time (s, ms or a duration) 0.01 to 5 0.18 Synth: filter envelope decay.
envelope choice natural adsr natural Amplitude envelope: adsr shapes the level; natural leaves the model's own decay and only damps after note-off.
envelope.attack time (s, ms or a duration) 0 to 10 0.002 Attack time (linear rise to full level).
envelope.decay time (s, ms or a duration) 0 to 20 0.4 Decay time: 60 dB of the distance to the sustain level.
envelope.sustain 0–1 or % 0 to 1 0.7 Sustain level.
envelope.release time (s, ms or a duration) 0.001 to 30 0.08 Release time after note-off (60 dB).
Preset Description
finger Fingered electric bass: round and warm.
pick Picked electric bass: bright attack.
muted Palm-muted, short.
sub Deep synth sub bass.
acid Resonant squelch.
reese Dark square bass with drive.

# synth

Subtractive Synth — family synth. A classic two-oscillator analogue-style synthesiser with unison. The modulation matrix is the set of mod.* routes.

Method. Subtractive synthesis: polyBLEP oscillators, zero-delay-feedback state-variable filter, ADSR envelopes, LFO, fixed modulation routes

Range. MIDI 12 to 120. Articulations. normal, legato, staccato, accent.

Parameter Unit Range Default Automatable Description
osc1.wave choice saw square pulse triangle sine saw Waveform of oscillator 1.
osc1.level 0–1 or % 0 to 1 0.8 yes Level of oscillator 1.
osc2.wave choice saw square pulse triangle sine saw Waveform of oscillator 2.
osc2.level 0–1 or % 0 to 1 0.5 yes Level of oscillator 2.
osc2.detune st or cents -24 to 24 0.08 yes Tuning of oscillator 2 relative to oscillator 1.
pulse_width 0–1 or % 0.05 to 0.95 0.5 yes Duty cycle of the pulse waveform.
sub.level 0–1 or % 0 to 1 0 yes Level of the sine sub-oscillator one octave below.
noise.level 0–1 or % 0 to 1 0 yes Level of white noise.
unison integer 1 to 7 1 Number of detuned copies of the oscillators per note.
unison.detune st or cents 0 to 1 0.15 Total tuning spread of the unison copies.
unison.spread 0–1 or % 0 to 1 0.7 Stereo spread of the unison copies.
filter.type choice lowpass bandpass highpass lowpass Filter response (12 dB/octave state-variable).
filter.cutoff Hz 20 to 20000 2400 yes Filter cutoff before modulation.
filter.resonance 0–1 or % 0 to 1 0.2 yes Filter resonance (Q from 0.5 to 20).
filter.keytrack 0–1 or % 0 to 1 0.5 How much the cutoff follows the note (1 = one octave per octave, around middle C).
filter.env_amount number -8 to 8 2.5 yes Filter envelope depth in octaves.
filter.attack time (s, ms or a duration) 0 to 10 0.005 Filter envelope attack.
filter.decay time (s, ms or a duration) 0 to 20 0.3 Filter envelope decay.
filter.sustain 0–1 or % 0 to 1 0.3 Filter envelope sustain.
filter.release time (s, ms or a duration) 0.001 to 30 0.3 Filter envelope release.
lfo.rate Hz 0.01 to 40 5 yes LFO rate.
lfo.shape choice sine triangle saw square sample_hold sine LFO waveform.
mod.lfo_pitch st or cents 0 to 12 0 yes LFO to pitch (vibrato).
mod.lfo_cutoff number 0 to 4 0 yes LFO to filter cutoff, in octaves.
mod.lfo_amp 0–1 or % 0 to 1 0 yes LFO to amplitude (tremolo).
mod.lfo_pulse_width 0–1 or % 0 to 0.45 0 yes LFO to pulse width.
mod.velocity_cutoff number 0 to 4 1 Velocity to filter cutoff, in octaves at full velocity.
mod.env_pitch st or cents -24 to 24 0 Filter envelope to pitch.
glide time (s, ms or a duration) 0 to 2 0 Portamento time from the previous note.
drive 0–1 or % 0 to 1 0 yes Saturation after the filter.
envelope choice adsr adsr Amplitude envelope: adsr shapes the level; natural leaves the model's own decay and only damps after note-off.
envelope.attack time (s, ms or a duration) 0 to 10 0.005 Attack time (linear rise to full level).
envelope.decay time (s, ms or a duration) 0 to 20 0.2 Decay time: 60 dB of the distance to the sustain level.
envelope.sustain 0–1 or % 0 to 1 0.7 Sustain level.
envelope.release time (s, ms or a duration) 0.001 to 30 0.25 Release time after note-off (60 dB).
Preset Description
lead Bright unison saw lead with glide.
pad Slow, wide, detuned pad.
pluck Short filter pluck.
keys Hollow square keys.
strings String-machine ensemble with pulse-width modulation.
sync_brass Brassy filter swell.
wobble Square bass with tempo-free LFO filter wobble.

# fm

FM Synth — family synth. Classic four-operator FM. Each operator is a sine with its own envelope; modulators change the timbre over time. The envelope slot is a master amplitude envelope applied after the operators.

Method. Phase-modulation synthesis: four sine operators with individual envelopes, six routings, feedback on operator 4

Range. MIDI 12 to 120. Articulations. normal, staccato, legato, accent.

Parameter Unit Range Default Automatable Description
algorithm integer 1 to 6 4 Routing of the four operators. 1: 4>3>2>1. 2: (4+3)>2>1. 3: (4>3)+2 >1. 4: (4>3) + (2>1), two carriers. 5: 4 > 1, 2 and 3, three carriers. 6: four carriers (additive).
feedback 0–1 or % 0 to 1 0 yes Self-modulation of operator 4 (towards a sawtooth, then noise).
velocity_to_index 0–1 or % 0 to 1 0.6 How much the modulator levels follow velocity (brighter when played harder).
op1.ratio number 0.25 to 32 1 Frequency of operator 1 as a multiple of the note frequency.
op1.level 0–1 or % 0 to 1 1 yes Output level of operator 1: loudness for a carrier, modulation index (up to 4 pi radians) for a modulator.
op1.attack time (s, ms or a duration) 0 to 5 0.001 Attack of operator 1's envelope.
op1.decay time (s, ms or a duration) 0.005 to 20 1.2 Decay of operator 1's envelope.
op1.sustain 0–1 or % 0 to 1 0 Sustain level of operator 1's envelope.
op2.ratio number 0.25 to 32 1 Frequency of operator 2 as a multiple of the note frequency.
op2.level 0–1 or % 0 to 1 0.35 yes Output level of operator 2: loudness for a carrier, modulation index (up to 4 pi radians) for a modulator.
op2.attack time (s, ms or a duration) 0 to 5 0.001 Attack of operator 2's envelope.
op2.decay time (s, ms or a duration) 0.005 to 20 0.5 Decay of operator 2's envelope.
op2.sustain 0–1 or % 0 to 1 0 Sustain level of operator 2's envelope.
op3.ratio number 0.25 to 32 1 Frequency of operator 3 as a multiple of the note frequency.
op3.level 0–1 or % 0 to 1 0.8 yes Output level of operator 3: loudness for a carrier, modulation index (up to 4 pi radians) for a modulator.
op3.attack time (s, ms or a duration) 0 to 5 0.001 Attack of operator 3's envelope.
op3.decay time (s, ms or a duration) 0.005 to 20 1.5 Decay of operator 3's envelope.
op3.sustain 0–1 or % 0 to 1 0 Sustain level of operator 3's envelope.
op4.ratio number 0.25 to 32 14 Frequency of operator 4 as a multiple of the note frequency.
op4.level 0–1 or % 0 to 1 0.25 yes Output level of operator 4: loudness for a carrier, modulation index (up to 4 pi radians) for a modulator.
op4.attack time (s, ms or a duration) 0 to 5 0.001 Attack of operator 4's envelope.
op4.decay time (s, ms or a duration) 0.005 to 20 0.12 Decay of operator 4's envelope.
op4.sustain 0–1 or % 0 to 1 0 Sustain level of operator 4's envelope.
envelope choice adsr adsr Amplitude envelope: adsr shapes the level; natural leaves the model's own decay and only damps after note-off.
envelope.attack time (s, ms or a duration) 0 to 10 0.001 Attack time (linear rise to full level).
envelope.decay time (s, ms or a duration) 0 to 20 0 Decay time: 60 dB of the distance to the sustain level.
envelope.sustain 0–1 or % 0 to 1 1 Sustain level.
envelope.release time (s, ms or a duration) 0.001 to 30 0.25 Release time after note-off (60 dB).
Preset Description
epiano Tine electric piano: two carrier/modulator pairs.
bell Inharmonic bell.
brass Swelling FM brass.
bass Punchy FM bass.
organ Additive drawbar-like tone.
mallet Wooden mallet strike.

# kick

Kick Drum — family percussion. A synthesised bass drum. Unpitched: the note number is ignored, tune sets the resting frequency.

Method. Sine oscillator with an exponential downward pitch sweep and exponential amplitude decay, filtered-noise click, tanh drive

Range. MIDI 0 to 127 (unpitched: the note pitch is ignored). Articulations. normal, accent.

Parameter Unit Range Default Automatable Description
tune Hz 25 to 120 50 yes Frequency the drum settles on.
sweep st or cents 0 to 60 26 yes How far above tune the pitch starts.
sweep.time time (s, ms or a duration) 0.003 to 0.4 0.045 Time constant of the pitch drop.
decay time (s, ms or a duration) 0.03 to 3 0.4 yes Amplitude decay time (60 dB).
click 0–1 or % 0 to 1 0.3 yes Level of the beater click.
drive 0–1 or % 0 to 1 0.2 yes Saturation: adds harmonics so the kick reads on small speakers.
Preset Description
punchy Tight, clicky kick.
boom Long, low 808-style boom.
acoustic Short, with a strong beater.
sub Pure sub drop.

# snare

Snare Drum — family percussion. A synthesised snare drum. Unpitched: the note number is ignored.

Method. Two decaying sinusoids for the shell modes (ratio 1 : 1.78) with a short pitch drop, plus band-passed white noise for the snare wires

Range. MIDI 0 to 127 (unpitched: the note pitch is ignored). Articulations. normal, accent.

Parameter Unit Range Default Automatable Description
tune Hz 100 to 400 185 yes Frequency of the lower shell mode.
tone 0–1 or % 0 to 1 0.5 yes Balance of the shell tone against the wires.
snappy 0–1 or % 0 to 1 0.6 yes Level of the snare wires.
decay time (s, ms or a duration) 0.03 to 2 0.2 yes Decay time of the wires (60 dB); the shell decays in 60 % of it.
noise.color Hz 800 to 12000 4500 yes Centre frequency of the wire noise.
Preset Description
tight Short and crisp.
fat Low, long and heavy.
electro 808-style: tonal, bright noise.
brush Mostly wires, soft.

# hihat

Hi-Hat — family percussion. A synthesised hi-hat or cymbal. Unpitched: the note number is ignored. A new note chokes nothing by itself: use a short decay for closed and a long one for open sounds.

Method. Six band-limited square oscillators at inharmonic ratios, summed through two band-pass filters and a high-pass, with an exponential envelope

Range. MIDI 0 to 127 (unpitched: the note pitch is ignored). Articulations. normal, accent.

Parameter Unit Range Default Automatable Description
decay time (s, ms or a duration) 0.01 to 6 0.07 yes Decay time (60 dB): about 0.07 s closed, 0.5 s open, 2 s and more for a ride or crash.
tune number 0.5 to 2 1 yes Multiplier of the six oscillator frequencies.
tone 0–1 or % 0 to 1 0.6 yes High-pass cutoff: higher is thinner and brighter.
metal 0–1 or % 0 to 1 0.6 yes Emphasis of the metallic band-pass resonances.
Preset Description
closed Closed hi-hat.
open Open hi-hat.
pedal Pedal chick: very short, darker.
ride Ride cymbal: long, lower, pingy.
crash Crash: long and bright.

Modal Percussion — family percussion. Pitched percussion built from the modes of bars, bells, tubes and glass. Mode ratios come from the physics of each body or from measurements reported in the acoustics literature; amplitudes and decays are plausible, not measured on a specific instrument.

Method. Modal synthesis: a sum of exponentially damped sinusoids whose frequency ratios are those of the vibrating body; amplitudes shaped by the mallet's contact spectrum

Range. MIDI 36 to 108. Articulations. normal, accent, staccato.

Parameter Unit Range Default Automatable Description
body choice marimba vibraphone glockenspiel bell tubular glass kalimba woodblock marimba Resonator: its set of mode ratios, amplitudes and decays.
partials list of numbers each 0.1 to 64 — Custom mode frequency ratios replacing those of body (at most 16; amplitudes fall as 1/k, decays as 1/sqrt(ratio)).
decay number 0.05 to 5 1 Multiplier of every mode's decay time.
hardness 0–1 or % 0 to 1 0.5 Mallet hardness: a hard mallet excites the high modes, more so at high velocity.
strike.noise 0–1 or % 0 to 1 0.25 Level of the contact noise of the mallet.
tremolo.rate Hz 0.1 to 12 5 yes Rate of the amplitude tremolo (vibraphone motor).
tremolo.depth 0–1 or % 0 to 1 0 yes Depth of the tremolo.
width 0–1 or % 0 to 1 0.5 Stereo spread by pitch.
envelope choice natural adsr natural Amplitude envelope: adsr shapes the level; natural leaves the model's own decay and only damps after note-off.
envelope.attack time (s, ms or a duration) 0 to 10 0 Attack time (linear rise to full level).
envelope.decay time (s, ms or a duration) 0 to 20 1 Decay time: 60 dB of the distance to the sustain level.
envelope.sustain 0–1 or % 0 to 1 1 Sustain level.
envelope.release time (s, ms or a duration) 0.001 to 30 0.25 Release time after note-off (60 dB).
Preset Description
marimba Rosewood bars, medium mallets.
vibraphone Metal bars with motor tremolo; rings until damped.
glockenspiel Small steel bars, hard mallets.
bell Church bell with hum, tierce and nominal.
tubular Orchestral chime.
glass Struck glass.
kalimba Thumb piano.
woodblock Dry wooden knock.

# voice

Formant Voice — family voice. Sustained sung vowels. It synthesises vowel colour from published average formant tables; it does not sing words and does not imitate any person.

Method. Source-filter synthesis: band-limited glottal pulse train with spectral tilt and aspiration noise, five parallel two-pole formant filters

Range. MIDI 36 to 84. Articulations. normal, legato, staccato, accent.

Parameter Unit Range Default Automatable Description
vowel number 0 to 4 0 yes Vowel position, continuous: 0 = a, 1 = e, 2 = i, 3 = o, 4 = u.
voice choice soprano alto tenor bass tenor Voice type: scales the formants for the size of the vocal tract.
breath 0–1 or % 0 to 1 0.1 yes Aspiration noise mixed into the glottal source.
tension 0–1 or % 0 to 1 0.5 yes Vocal effort: a pressed voice has a brighter source spectrum.
vibrato.rate Hz 0 to 12 5.5 yes Vibrato rate.
vibrato.depth st or cents 0 to 1 0.25 yes Vibrato depth (peak deviation).
vibrato.delay time (s, ms or a duration) 0 to 2 0.35 Time after the note start for the vibrato to reach its full depth.
envelope choice adsr adsr Amplitude envelope: adsr shapes the level; natural leaves the model's own decay and only damps after note-off.
envelope.attack time (s, ms or a duration) 0 to 10 0.08 Attack time (linear rise to full level).
envelope.decay time (s, ms or a duration) 0 to 20 0.1 Decay time: 60 dB of the distance to the sustain level.
envelope.sustain 0–1 or % 0 to 1 0.9 Sustain level.
envelope.release time (s, ms or a duration) 0.001 to 30 0.16 Release time after note-off (60 dB).
Preset Description
aah Open 'a'.
ooh Rounded 'u', soft.
eeh Bright 'i'.
soprano Soprano 'a' with wide vibrato.
bass_ooh Low 'o'.
whisper Mostly breath.

# patch

Patch — family synth. An instrument defined entirely by its graph. The graph's output is mono; velocity is not applied automatically (read note.velocity in the graph). The output is scaled by gain and soft-clipped at full scale. Control-rate nodes are evaluated at audio rate in this version.

Method. Per-voice interpreter of a typed signal graph (graph { } block): oscillators, envelopes, filters, delays and arithmetic evaluated sample by sample in declaration order

Range. MIDI 0 to 127. Articulations. normal.

Parameter Unit Range Default Automatable Description
gain dB -60 to 12 -12 yes Output level applied to the graph's output.
release time (s, ms or a duration) 0.001 to 10 0.2 Fade-out after note-off, used only when the graph has no amplitude envelope.
Files main
Menu

Theme