Repository Public
1<!--2ORIX Sonata3File: Documentation/manual/reference/instruments.md4Generated file — do not edit. Regenerate with Scripts/gen-reference.sh5Author: Simon-Pierre Boucher6Contact: contact@spboucher.ai7-->8# Instrument engines910The 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](std-instruments.md).1112| Engine | Family | Presets | Method |13|---|---|---|---|14| [`piano`](#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 |15| [`plucked_string`](#plucked-string) | plucked | 6 | Digital waveguide (extended Karplus-Strong): tuned delay loop with loss and dispersion filters, analytic pluck excitation, modal body |16| [`bowed_string`](#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 |17| [`flute`](#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 |18| [`clarinet`](#clarinet) | woodwind | 4 | Digital waveguide: half-period cylindrical bore closed at the reed, linear reed reflection table with saturation, one-pole bell reflection |19| [`brass`](#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 |20| [`organ`](#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 |21| [`bass`](#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 |22| [`synth`](#synth) | synth | 7 | Subtractive synthesis: polyBLEP oscillators, zero-delay-feedback state-variable filter, ADSR envelopes, LFO, fixed modulation routes |23| [`fm`](#fm) | synth | 6 | Phase-modulation synthesis: four sine operators with individual envelopes, six routings, feedback on operator 4 |24| [`kick`](#kick) | percussion | 4 | Sine oscillator with an exponential downward pitch sweep and exponential amplitude decay, filtered-noise click, tanh drive |25| [`snare`](#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 |26| [`hihat`](#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 |27| [`modal_percussion`](#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 |28| [`voice`](#voice) | voice | 6 | Source-filter synthesis: band-limited glottal pulse train with spectral tilt and aspiration noise, five parallel two-pole formant filters |29| [`patch`](#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 |3031## piano3233**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.3435*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 soundboard3637*Range.* MIDI 21 to 108. *Articulations.* normal, staccato, legato, accent, marcato.3839| Parameter | Unit | Range | Default | Automatable | Description |40|---|---|---|---|---|---|41| `brightness` | 0–1 or % | 0 to 1 | 0.5 | | Overall spectral tilt of the strings. |42| `hammer.hardness` | 0–1 or % | 0 to 1 | 0.5 | | Felt hardness: a harder hammer excites more partials, more so at high velocity. |43| `hammer.noise` | 0–1 or % | 0 to 1 | 0.3 | | Level of the hammer's knock. |44| `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). |45| `inharmonicity` | number | 0 to 4 | 1 | | Multiplier of the string stiffness coefficient B (1 = a typical grand). |46| `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. |47| `decay` | number | 0.2 to 3 | 1 | | Multiplier of every partial's decay time. |48| `resonance` | 0–1 or % | 0 to 1 | 0.25 | yes | Soundboard and sympathetic string resonance; rings much longer while the sustain pedal is down. |49| `width` | 0–1 or % | 0 to 1 | 0.6 | | Stereo spread from bass (left) to treble (right). |50| `envelope` | choice | `natural` `adsr` | `natural` | | Amplitude envelope: `adsr` shapes the level; `natural` leaves the model's own decay and only damps after note-off. |51| `envelope.attack` | time (s, ms or a duration) | 0 to 10 | 0 | | Attack time (linear rise to full level). |52| `envelope.decay` | time (s, ms or a duration) | 0 to 20 | 1 | | Decay time: 60 dB of the distance to the sustain level. |53| `envelope.sustain` | 0–1 or % | 0 to 1 | 1 | | Sustain level. |54| `envelope.release` | time (s, ms or a duration) | 0.001 to 30 | 0.18 | | Release time after note-off (60 dB). |5556| Preset | Description |57|---|---|58| `grand` | Concert grand: balanced, long sustain. |59| `upright` | Upright: shorter strings, more inharmonic, shorter decay, narrower. |60| `bright` | Hard hammers for pop and rock. |61| `felt` | Soft felt strip: dark, intimate, audible action. |62| `honky_tonk` | Deliberately mistuned unisons. |6364## plucked_string6566**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.6768*Method.* Digital waveguide (extended Karplus-Strong): tuned delay loop with loss and dispersion filters, analytic pluck excitation, modal body6970*Range.* MIDI 28 to 96. *Articulations.* normal, staccato, legato, accent, pizzicato.7172| Parameter | Unit | Range | Default | Automatable | Description |73|---|---|---|---|---|---|74| `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)). |75| `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). |76| `stiffness` | 0–1 or % | 0 to 1 | 0.1 | | Bending stiffness: stretches the upper partials sharp through an allpass in the loop. |77| `excitation` | choice | `pluck` `strike` | `pluck` | | How the string is set in motion: `pluck` releases a triangular displacement, `strike` injects a hammer-like velocity pulse. |78| `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. |79| `excitation.hardness` | 0–1 or % | 0 to 1 | 0.5 | | Hardness of the plectrum or hammer: harder means more high harmonics. |80| `resonance` | choice | `none` `body` `modal` | `body` | | Resonator after the string: `body` is a small set of guitar-like modes, `modal` uses `resonance.frequencies`. |81| `resonance.frequencies` | list of Hz | each 20 to 20000 | — | | Mode frequencies of the `modal` resonator (at most 16 are used). |82| `resonance.mix` | 0–1 or % | 0 to 1 | 0.25 | yes | Level of the resonator relative to the direct string. |83| `resonance.decay` | time (s, ms or a duration) | 0.01 to 5 | 0.15 | | Decay time (60 dB) of the resonator modes. |84| `width` | 0–1 or % | 0 to 1 | 0.3 | | Stereo spread of the strings by pitch. |85| `envelope` | choice | `natural` `adsr` | `natural` | | Amplitude envelope: `adsr` shapes the level; `natural` leaves the model's own decay and only damps after note-off. |86| `envelope.attack` | time (s, ms or a duration) | 0 to 10 | 0.002 | | Attack time (linear rise to full level). |87| `envelope.decay` | time (s, ms or a duration) | 0 to 20 | 0.3 | | Decay time: 60 dB of the distance to the sustain level. |88| `envelope.sustain` | 0–1 or % | 0 to 1 | 0.6 | | Sustain level. |89| `envelope.release` | time (s, ms or a duration) | 0.001 to 30 | 0.25 | | Release time after note-off (60 dB). |9091| Preset | Description |92|---|---|93| `nylon_guitar` | Classical guitar: mellow, medium sustain. |94| `steel_guitar` | Steel-string guitar: bright, long sustain. |95| `harp` | Concert harp: soft finger pluck near the middle, no body colouring. |96| `harpsichord` | Quill pluck close to the bridge: nasal and bright. |97| `banjo` | Short, bright, strongly coloured by the head. |98| `dulcimer` | Struck string with a long ring. |99100## bowed_string101102**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.103104*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 body105106*Range.* MIDI 28 to 100. *Articulations.* normal, legato, staccato, marcato, accent, tremolo, tenuto.107108| Parameter | Unit | Range | Default | Automatable | Description |109|---|---|---|---|---|---|110| `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. |111| `bow.speed` | 0–1 or % | 0.05 to 1 | 0.7 | yes | Bow velocity, the main loudness control (scaled by note velocity). |112| `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). |113| `brightness` | 0–1 or % | 0 to 1 | 0.5 | yes | Cutoff of the string's loss filter at the bridge. |114| `body.mix` | 0–1 or % | 0 to 1 | 0.6 | yes | Level of the body resonances. |115| `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). |116| `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. |117| `players.detune` | st or cents | 0 to 0.5 | 0.08 | | Spread of the tuning between section players. |118| `width` | 0–1 or % | 0 to 1 | 0.5 | | Stereo spread of the section players. |119| `vibrato.rate` | Hz | 0 to 12 | 5.6 | yes | Vibrato rate. |120| `vibrato.depth` | st or cents | 0 to 1 | 0.18 | yes | Vibrato depth (peak deviation). |121| `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. |122| `envelope` | choice | `adsr` | `adsr` | | Amplitude envelope: `adsr` shapes the level; `natural` leaves the model's own decay and only damps after note-off. |123| `envelope.attack` | time (s, ms or a duration) | 0 to 10 | 0.07 | | Attack time (linear rise to full level). |124| `envelope.decay` | time (s, ms or a duration) | 0 to 20 | 0.15 | | Decay time: 60 dB of the distance to the sustain level. |125| `envelope.sustain` | 0–1 or % | 0 to 1 | 0.9 | | Sustain level. |126| `envelope.release` | time (s, ms or a duration) | 0.001 to 30 | 0.14 | | Release time after note-off (60 dB). |127128| Preset | Description |129|---|---|130| `violin` | Solo violin. |131| `viola` | Solo viola: larger body, darker. |132| `cello` | Solo cello. |133| `double_bass` | Double bass, slow bow. |134| `section` | Three players per note: a small string section. |135| `sul_ponticello` | Bowed next to the bridge: glassy and thin. |136137## flute138139**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.140141*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 reflection142143*Range.* MIDI 55 to 100. *Articulations.* normal, legato, staccato, marcato, accent, tenuto.144145| Parameter | Unit | Range | Default | Automatable | Description |146|---|---|---|---|---|---|147| `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. |148| `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. |149| `noise` | 0–1 or % | 0 to 1 | 0.3 | yes | Turbulence of the jet, heard as breath resonating in the tube. |150| `brightness` | 0–1 or % | 0 to 1 | 0.5 | yes | Cutoff of the tube's end reflection: how many harmonics the tube sustains. |151| `vibrato.rate` | Hz | 0 to 12 | 5.2 | yes | Vibrato rate. |152| `vibrato.depth` | st or cents | 0 to 1 | 0.1 | yes | Vibrato depth (peak deviation). |153| `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. |154| `envelope` | choice | `adsr` | `adsr` | | Amplitude envelope: `adsr` shapes the level; `natural` leaves the model's own decay and only damps after note-off. |155| `envelope.attack` | time (s, ms or a duration) | 0 to 10 | 0.06 | | Attack time (linear rise to full level). |156| `envelope.decay` | time (s, ms or a duration) | 0 to 20 | 0.1 | | Decay time: 60 dB of the distance to the sustain level. |157| `envelope.sustain` | 0–1 or % | 0 to 1 | 0.9 | | Sustain level. |158| `envelope.release` | time (s, ms or a duration) | 0.001 to 30 | 0.1 | | Release time after note-off (60 dB). |159160| Preset | Description |161|---|---|162| `concert` | Concert flute. |163| `breathy` | Much air in the tone. |164| `pure` | Almost no breath noise, light vibrato. |165| `pan_flute` | Stopped pipe: hollow, slow airy attack. |166| `piccolo_bright` | Hard blown and edgy. |167168## clarinet169170**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.171172*Method.* Digital waveguide: half-period cylindrical bore closed at the reed, linear reed reflection table with saturation, one-pole bell reflection173174*Range.* MIDI 38 to 96. *Articulations.* normal, legato, staccato, marcato, accent, tenuto.175176| Parameter | Unit | Range | Default | Automatable | Description |177|---|---|---|---|---|---|178| `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. |179| `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. |180| `noise` | 0–1 or % | 0 to 1 | 0.12 | yes | Breath turbulence added to the mouth pressure. |181| `brightness` | 0–1 or % | 0 to 1 | 0.5 | yes | Cutoff of the bell reflection filter. |182| `vibrato.rate` | Hz | 0 to 12 | 5 | yes | Vibrato rate. |183| `vibrato.depth` | st or cents | 0 to 1 | 0.06 | yes | Vibrato depth (peak deviation). |184| `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. |185| `envelope` | choice | `adsr` | `adsr` | | Amplitude envelope: `adsr` shapes the level; `natural` leaves the model's own decay and only damps after note-off. |186| `envelope.attack` | time (s, ms or a duration) | 0 to 10 | 0.035 | | Attack time (linear rise to full level). |187| `envelope.decay` | time (s, ms or a duration) | 0 to 20 | 0.08 | | Decay time: 60 dB of the distance to the sustain level. |188| `envelope.sustain` | 0–1 or % | 0 to 1 | 0.92 | | Sustain level. |189| `envelope.release` | time (s, ms or a duration) | 0.001 to 30 | 0.07 | | Release time after note-off (60 dB). |190191| Preset | Description |192|---|---|193| `clarinet` | B-flat clarinet, middle register. |194| `bass_clarinet` | Dark, breathy low clarinet. |195| `soft` | Subtone: gentle breath, little edge. |196| `bright` | Hard blown, edgy. |197198## brass199200**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.201202*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 rest203204*Range.* MIDI 34 to 86. *Articulations.* normal, legato, staccato, marcato, accent, tenuto.205206| Parameter | Unit | Range | Default | Automatable | Description |207|---|---|---|---|---|---|208| `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. |209| `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). |210| `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. |211| `growl` | 0–1 or % | 0 to 1 | 0 | yes | Turbulence in the lip opening. |212| `vibrato.rate` | Hz | 0 to 12 | 5 | yes | Vibrato rate. |213| `vibrato.depth` | st or cents | 0 to 1 | 0.05 | yes | Vibrato depth (peak deviation). |214| `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. |215| `envelope` | choice | `adsr` | `adsr` | | Amplitude envelope: `adsr` shapes the level; `natural` leaves the model's own decay and only damps after note-off. |216| `envelope.attack` | time (s, ms or a duration) | 0 to 10 | 0.045 | | Attack time (linear rise to full level). |217| `envelope.decay` | time (s, ms or a duration) | 0 to 20 | 0.12 | | Decay time: 60 dB of the distance to the sustain level. |218| `envelope.sustain` | 0–1 or % | 0 to 1 | 0.88 | | Sustain level. |219| `envelope.release` | time (s, ms or a duration) | 0.001 to 30 | 0.09 | | Release time after note-off (60 dB). |220221| Preset | Description |222|---|---|223| `trumpet` | Bright and direct. |224| `trombone` | Broad and warm. |225| `horn` | Mellow, distant. |226| `tuba` | Low and round. |227| `growl` | Rough, noisy blowing. |228229## organ230231**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.232233*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 transients234235*Range.* MIDI 24 to 108. *Articulations.* normal, legato, staccato, tenuto.236237| Parameter | Unit | Range | Default | Automatable | Description |238|---|---|---|---|---|---|239| `drawbar.f16` | 0–1 or % | 0 to 1 | 1 | yes | Level of the 16' sub-octave. |240| `drawbar.f5_1_3` | 0–1 or % | 0 to 1 | 1 | yes | Level of the 5 1/3' fifth above the sub-octave. |241| `drawbar.f8` | 0–1 or % | 0 to 1 | 1 | yes | Level of the 8' unison (the written pitch). |242| `drawbar.f4` | 0–1 or % | 0 to 1 | 0 | yes | Level of the 4' octave. |243| `drawbar.f2_2_3` | 0–1 or % | 0 to 1 | 0 | yes | Level of the 2 2/3' twelfth. |244| `drawbar.f2` | 0–1 or % | 0 to 1 | 0 | yes | Level of the 2' fifteenth. |245| `drawbar.f1_3_5` | 0–1 or % | 0 to 1 | 0 | yes | Level of the 1 3/5' seventeenth. |246| `drawbar.f1_1_3` | 0–1 or % | 0 to 1 | 0 | yes | Level of the 1 1/3' nineteenth. |247| `drawbar.f1` | 0–1 or % | 0 to 1 | 0 | yes | Level of the 1' twenty-second. |248| `click` | 0–1 or % | 0 to 1 | 0.3 | | Key click at the start of each note. |249| `percussion` | 0–1 or % | 0 to 1 | 0 | | Level of the decaying percussion harmonic. |250| `percussion.harmonic` | choice | `second` `third` | `second` | | Harmonic used by the percussion. |251| `percussion.decay` | time (s, ms or a duration) | 0.05 to 2 | 0.25 | | Decay time of the percussion. |252| `chiff` | 0–1 or % | 0 to 1 | 0 | | Pipe speech noise at the attack (pipe organ presets). |253| `tremolo.rate` | Hz | 0.1 to 12 | 6.6 | yes | Rotation rate of the rotary-style tremolo. |254| `tremolo.depth` | 0–1 or % | 0 to 1 | 0 | yes | Depth of the rotary-style tremolo (amplitude, opposite in the two channels). |255| `vibrato.rate` | Hz | 0 to 12 | 6.8 | yes | Vibrato rate. |256| `vibrato.depth` | st or cents | 0 to 1 | 0 | yes | Vibrato depth (peak deviation). |257| `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. |258| `envelope` | choice | `adsr` | `adsr` | | Amplitude envelope: `adsr` shapes the level; `natural` leaves the model's own decay and only damps after note-off. |259| `envelope.attack` | time (s, ms or a duration) | 0 to 10 | 0.004 | | Attack time (linear rise to full level). |260| `envelope.decay` | time (s, ms or a duration) | 0 to 20 | 0 | | Decay time: 60 dB of the distance to the sustain level. |261| `envelope.sustain` | 0–1 or % | 0 to 1 | 1 | | Sustain level. |262| `envelope.release` | time (s, ms or a duration) | 0.001 to 30 | 0.03 | | Release time after note-off (60 dB). |263264| Preset | Description |265|---|---|266| `jazz` | 888000000 with percussion and a little click. |267| `full` | All drawbars out. |268| `gospel` | 888800008: strong fundamental with a top sparkle. |269| `flute_pipe` | Stopped flute pipe: fundamental and a soft third harmonic, with chiff. |270| `principal` | Principal chorus of a pipe organ. |271| `cathedral` | Full pipe organ with 16' foundation. |272273## bass274275**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.276277*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 envelope278279*Range.* MIDI 16 to 72. *Articulations.* normal, staccato, legato, accent.280281| Parameter | Unit | Range | Default | Automatable | Description |282|---|---|---|---|---|---|283| `type` | choice | `electric` `synth` | `electric` | | `electric`: plucked string, pickup and amplifier. `synth`: oscillators and resonant filter. |284| `tone` | 0–1 or % | 0 to 1 | 0.5 | yes | Electric: tone control of the pickup. Synth: filter cutoff. |285| `drive` | 0–1 or % | 0 to 1 | 0.15 | yes | Amplifier saturation. |286| `damping` | number | 0.002 to 1 | 0.02 | | Electric: string loss (as in plucked_string). Palm muting is a high value. |287| `excitation.position` | 0–1 or % | 0.03 to 0.5 | 0.2 | | Electric: plucking point from the bridge. |288| `excitation.hardness` | 0–1 or % | 0 to 1 | 0.4 | | Electric: finger (soft) to pick (hard). |289| `pickup.position` | 0–1 or % | 0.05 to 0.5 | 0.18 | | Electric: pickup location from the bridge; it combs the spectrum. |290| `shape` | 0–1 or % | 0 to 1 | 0.3 | yes | Synth: blend from sawtooth (0) to square (1). |291| `sub` | 0–1 or % | 0 to 1 | 0.3 | yes | Synth: level of the sine one octave below. |292| `filter.resonance` | 0–1 or % | 0 to 1 | 0.3 | yes | Synth: filter resonance. |293| `filter.envelope` | number | 0 to 6 | 2.5 | yes | Synth: filter envelope depth in octaves. |294| `filter.decay` | time (s, ms or a duration) | 0.01 to 5 | 0.18 | | Synth: filter envelope decay. |295| `envelope` | choice | `natural` `adsr` | `natural` | | Amplitude envelope: `adsr` shapes the level; `natural` leaves the model's own decay and only damps after note-off. |296| `envelope.attack` | time (s, ms or a duration) | 0 to 10 | 0.002 | | Attack time (linear rise to full level). |297| `envelope.decay` | time (s, ms or a duration) | 0 to 20 | 0.4 | | Decay time: 60 dB of the distance to the sustain level. |298| `envelope.sustain` | 0–1 or % | 0 to 1 | 0.7 | | Sustain level. |299| `envelope.release` | time (s, ms or a duration) | 0.001 to 30 | 0.08 | | Release time after note-off (60 dB). |300301| Preset | Description |302|---|---|303| `finger` | Fingered electric bass: round and warm. |304| `pick` | Picked electric bass: bright attack. |305| `muted` | Palm-muted, short. |306| `sub` | Deep synth sub bass. |307| `acid` | Resonant squelch. |308| `reese` | Dark square bass with drive. |309310## synth311312**Subtractive Synth** — family synth. A classic two-oscillator analogue-style synthesiser with unison. The modulation matrix is the set of `mod.*` routes.313314*Method.* Subtractive synthesis: polyBLEP oscillators, zero-delay-feedback state-variable filter, ADSR envelopes, LFO, fixed modulation routes315316*Range.* MIDI 12 to 120. *Articulations.* normal, legato, staccato, accent.317318| Parameter | Unit | Range | Default | Automatable | Description |319|---|---|---|---|---|---|320| `osc1.wave` | choice | `saw` `square` `pulse` `triangle` `sine` | `saw` | | Waveform of oscillator 1. |321| `osc1.level` | 0–1 or % | 0 to 1 | 0.8 | yes | Level of oscillator 1. |322| `osc2.wave` | choice | `saw` `square` `pulse` `triangle` `sine` | `saw` | | Waveform of oscillator 2. |323| `osc2.level` | 0–1 or % | 0 to 1 | 0.5 | yes | Level of oscillator 2. |324| `osc2.detune` | st or cents | -24 to 24 | 0.08 | yes | Tuning of oscillator 2 relative to oscillator 1. |325| `pulse_width` | 0–1 or % | 0.05 to 0.95 | 0.5 | yes | Duty cycle of the pulse waveform. |326| `sub.level` | 0–1 or % | 0 to 1 | 0 | yes | Level of the sine sub-oscillator one octave below. |327| `noise.level` | 0–1 or % | 0 to 1 | 0 | yes | Level of white noise. |328| `unison` | integer | 1 to 7 | 1 | | Number of detuned copies of the oscillators per note. |329| `unison.detune` | st or cents | 0 to 1 | 0.15 | | Total tuning spread of the unison copies. |330| `unison.spread` | 0–1 or % | 0 to 1 | 0.7 | | Stereo spread of the unison copies. |331| `filter.type` | choice | `lowpass` `bandpass` `highpass` | `lowpass` | | Filter response (12 dB/octave state-variable). |332| `filter.cutoff` | Hz | 20 to 20000 | 2400 | yes | Filter cutoff before modulation. |333| `filter.resonance` | 0–1 or % | 0 to 1 | 0.2 | yes | Filter resonance (Q from 0.5 to 20). |334| `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). |335| `filter.env_amount` | number | -8 to 8 | 2.5 | yes | Filter envelope depth in octaves. |336| `filter.attack` | time (s, ms or a duration) | 0 to 10 | 0.005 | | Filter envelope attack. |337| `filter.decay` | time (s, ms or a duration) | 0 to 20 | 0.3 | | Filter envelope decay. |338| `filter.sustain` | 0–1 or % | 0 to 1 | 0.3 | | Filter envelope sustain. |339| `filter.release` | time (s, ms or a duration) | 0.001 to 30 | 0.3 | | Filter envelope release. |340| `lfo.rate` | Hz | 0.01 to 40 | 5 | yes | LFO rate. |341| `lfo.shape` | choice | `sine` `triangle` `saw` `square` `sample_hold` | `sine` | | LFO waveform. |342| `mod.lfo_pitch` | st or cents | 0 to 12 | 0 | yes | LFO to pitch (vibrato). |343| `mod.lfo_cutoff` | number | 0 to 4 | 0 | yes | LFO to filter cutoff, in octaves. |344| `mod.lfo_amp` | 0–1 or % | 0 to 1 | 0 | yes | LFO to amplitude (tremolo). |345| `mod.lfo_pulse_width` | 0–1 or % | 0 to 0.45 | 0 | yes | LFO to pulse width. |346| `mod.velocity_cutoff` | number | 0 to 4 | 1 | | Velocity to filter cutoff, in octaves at full velocity. |347| `mod.env_pitch` | st or cents | -24 to 24 | 0 | | Filter envelope to pitch. |348| `glide` | time (s, ms or a duration) | 0 to 2 | 0 | | Portamento time from the previous note. |349| `drive` | 0–1 or % | 0 to 1 | 0 | yes | Saturation after the filter. |350| `envelope` | choice | `adsr` | `adsr` | | Amplitude envelope: `adsr` shapes the level; `natural` leaves the model's own decay and only damps after note-off. |351| `envelope.attack` | time (s, ms or a duration) | 0 to 10 | 0.005 | | Attack time (linear rise to full level). |352| `envelope.decay` | time (s, ms or a duration) | 0 to 20 | 0.2 | | Decay time: 60 dB of the distance to the sustain level. |353| `envelope.sustain` | 0–1 or % | 0 to 1 | 0.7 | | Sustain level. |354| `envelope.release` | time (s, ms or a duration) | 0.001 to 30 | 0.25 | | Release time after note-off (60 dB). |355356| Preset | Description |357|---|---|358| `lead` | Bright unison saw lead with glide. |359| `pad` | Slow, wide, detuned pad. |360| `pluck` | Short filter pluck. |361| `keys` | Hollow square keys. |362| `strings` | String-machine ensemble with pulse-width modulation. |363| `sync_brass` | Brassy filter swell. |364| `wobble` | Square bass with tempo-free LFO filter wobble. |365366## fm367368**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.369370*Method.* Phase-modulation synthesis: four sine operators with individual envelopes, six routings, feedback on operator 4371372*Range.* MIDI 12 to 120. *Articulations.* normal, staccato, legato, accent.373374| Parameter | Unit | Range | Default | Automatable | Description |375|---|---|---|---|---|---|376| `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). |377| `feedback` | 0–1 or % | 0 to 1 | 0 | yes | Self-modulation of operator 4 (towards a sawtooth, then noise). |378| `velocity_to_index` | 0–1 or % | 0 to 1 | 0.6 | | How much the modulator levels follow velocity (brighter when played harder). |379| `op1.ratio` | number | 0.25 to 32 | 1 | | Frequency of operator 1 as a multiple of the note frequency. |380| `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. |381| `op1.attack` | time (s, ms or a duration) | 0 to 5 | 0.001 | | Attack of operator 1's envelope. |382| `op1.decay` | time (s, ms or a duration) | 0.005 to 20 | 1.2 | | Decay of operator 1's envelope. |383| `op1.sustain` | 0–1 or % | 0 to 1 | 0 | | Sustain level of operator 1's envelope. |384| `op2.ratio` | number | 0.25 to 32 | 1 | | Frequency of operator 2 as a multiple of the note frequency. |385| `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. |386| `op2.attack` | time (s, ms or a duration) | 0 to 5 | 0.001 | | Attack of operator 2's envelope. |387| `op2.decay` | time (s, ms or a duration) | 0.005 to 20 | 0.5 | | Decay of operator 2's envelope. |388| `op2.sustain` | 0–1 or % | 0 to 1 | 0 | | Sustain level of operator 2's envelope. |389| `op3.ratio` | number | 0.25 to 32 | 1 | | Frequency of operator 3 as a multiple of the note frequency. |390| `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. |391| `op3.attack` | time (s, ms or a duration) | 0 to 5 | 0.001 | | Attack of operator 3's envelope. |392| `op3.decay` | time (s, ms or a duration) | 0.005 to 20 | 1.5 | | Decay of operator 3's envelope. |393| `op3.sustain` | 0–1 or % | 0 to 1 | 0 | | Sustain level of operator 3's envelope. |394| `op4.ratio` | number | 0.25 to 32 | 14 | | Frequency of operator 4 as a multiple of the note frequency. |395| `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. |396| `op4.attack` | time (s, ms or a duration) | 0 to 5 | 0.001 | | Attack of operator 4's envelope. |397| `op4.decay` | time (s, ms or a duration) | 0.005 to 20 | 0.12 | | Decay of operator 4's envelope. |398| `op4.sustain` | 0–1 or % | 0 to 1 | 0 | | Sustain level of operator 4's envelope. |399| `envelope` | choice | `adsr` | `adsr` | | Amplitude envelope: `adsr` shapes the level; `natural` leaves the model's own decay and only damps after note-off. |400| `envelope.attack` | time (s, ms or a duration) | 0 to 10 | 0.001 | | Attack time (linear rise to full level). |401| `envelope.decay` | time (s, ms or a duration) | 0 to 20 | 0 | | Decay time: 60 dB of the distance to the sustain level. |402| `envelope.sustain` | 0–1 or % | 0 to 1 | 1 | | Sustain level. |403| `envelope.release` | time (s, ms or a duration) | 0.001 to 30 | 0.25 | | Release time after note-off (60 dB). |404405| Preset | Description |406|---|---|407| `epiano` | Tine electric piano: two carrier/modulator pairs. |408| `bell` | Inharmonic bell. |409| `brass` | Swelling FM brass. |410| `bass` | Punchy FM bass. |411| `organ` | Additive drawbar-like tone. |412| `mallet` | Wooden mallet strike. |413414## kick415416**Kick Drum** — family percussion. A synthesised bass drum. Unpitched: the note number is ignored, `tune` sets the resting frequency.417418*Method.* Sine oscillator with an exponential downward pitch sweep and exponential amplitude decay, filtered-noise click, tanh drive419420*Range.* MIDI 0 to 127 (unpitched: the note pitch is ignored). *Articulations.* normal, accent.421422| Parameter | Unit | Range | Default | Automatable | Description |423|---|---|---|---|---|---|424| `tune` | Hz | 25 to 120 | 50 | yes | Frequency the drum settles on. |425| `sweep` | st or cents | 0 to 60 | 26 | yes | How far above `tune` the pitch starts. |426| `sweep.time` | time (s, ms or a duration) | 0.003 to 0.4 | 0.045 | | Time constant of the pitch drop. |427| `decay` | time (s, ms or a duration) | 0.03 to 3 | 0.4 | yes | Amplitude decay time (60 dB). |428| `click` | 0–1 or % | 0 to 1 | 0.3 | yes | Level of the beater click. |429| `drive` | 0–1 or % | 0 to 1 | 0.2 | yes | Saturation: adds harmonics so the kick reads on small speakers. |430431| Preset | Description |432|---|---|433| `punchy` | Tight, clicky kick. |434| `boom` | Long, low 808-style boom. |435| `acoustic` | Short, with a strong beater. |436| `sub` | Pure sub drop. |437438## snare439440**Snare Drum** — family percussion. A synthesised snare drum. Unpitched: the note number is ignored.441442*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 wires443444*Range.* MIDI 0 to 127 (unpitched: the note pitch is ignored). *Articulations.* normal, accent.445446| Parameter | Unit | Range | Default | Automatable | Description |447|---|---|---|---|---|---|448| `tune` | Hz | 100 to 400 | 185 | yes | Frequency of the lower shell mode. |449| `tone` | 0–1 or % | 0 to 1 | 0.5 | yes | Balance of the shell tone against the wires. |450| `snappy` | 0–1 or % | 0 to 1 | 0.6 | yes | Level of the snare wires. |451| `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. |452| `noise.color` | Hz | 800 to 12000 | 4500 | yes | Centre frequency of the wire noise. |453454| Preset | Description |455|---|---|456| `tight` | Short and crisp. |457| `fat` | Low, long and heavy. |458| `electro` | 808-style: tonal, bright noise. |459| `brush` | Mostly wires, soft. |460461## hihat462463**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.464465*Method.* Six band-limited square oscillators at inharmonic ratios, summed through two band-pass filters and a high-pass, with an exponential envelope466467*Range.* MIDI 0 to 127 (unpitched: the note pitch is ignored). *Articulations.* normal, accent.468469| Parameter | Unit | Range | Default | Automatable | Description |470|---|---|---|---|---|---|471| `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. |472| `tune` | number | 0.5 to 2 | 1 | yes | Multiplier of the six oscillator frequencies. |473| `tone` | 0–1 or % | 0 to 1 | 0.6 | yes | High-pass cutoff: higher is thinner and brighter. |474| `metal` | 0–1 or % | 0 to 1 | 0.6 | yes | Emphasis of the metallic band-pass resonances. |475476| Preset | Description |477|---|---|478| `closed` | Closed hi-hat. |479| `open` | Open hi-hat. |480| `pedal` | Pedal chick: very short, darker. |481| `ride` | Ride cymbal: long, lower, pingy. |482| `crash` | Crash: long and bright. |483484## modal_percussion485486**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.487488*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 spectrum489490*Range.* MIDI 36 to 108. *Articulations.* normal, accent, staccato.491492| Parameter | Unit | Range | Default | Automatable | Description |493|---|---|---|---|---|---|494| `body` | choice | `marimba` `vibraphone` `glockenspiel` `bell` `tubular` `glass` `kalimba` `woodblock` | `marimba` | | Resonator: its set of mode ratios, amplitudes and decays. |495| `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)). |496| `decay` | number | 0.05 to 5 | 1 | | Multiplier of every mode's decay time. |497| `hardness` | 0–1 or % | 0 to 1 | 0.5 | | Mallet hardness: a hard mallet excites the high modes, more so at high velocity. |498| `strike.noise` | 0–1 or % | 0 to 1 | 0.25 | | Level of the contact noise of the mallet. |499| `tremolo.rate` | Hz | 0.1 to 12 | 5 | yes | Rate of the amplitude tremolo (vibraphone motor). |500| `tremolo.depth` | 0–1 or % | 0 to 1 | 0 | yes | Depth of the tremolo. |501| `width` | 0–1 or % | 0 to 1 | 0.5 | | Stereo spread by pitch. |502| `envelope` | choice | `natural` `adsr` | `natural` | | Amplitude envelope: `adsr` shapes the level; `natural` leaves the model's own decay and only damps after note-off. |503| `envelope.attack` | time (s, ms or a duration) | 0 to 10 | 0 | | Attack time (linear rise to full level). |504| `envelope.decay` | time (s, ms or a duration) | 0 to 20 | 1 | | Decay time: 60 dB of the distance to the sustain level. |505| `envelope.sustain` | 0–1 or % | 0 to 1 | 1 | | Sustain level. |506| `envelope.release` | time (s, ms or a duration) | 0.001 to 30 | 0.25 | | Release time after note-off (60 dB). |507508| Preset | Description |509|---|---|510| `marimba` | Rosewood bars, medium mallets. |511| `vibraphone` | Metal bars with motor tremolo; rings until damped. |512| `glockenspiel` | Small steel bars, hard mallets. |513| `bell` | Church bell with hum, tierce and nominal. |514| `tubular` | Orchestral chime. |515| `glass` | Struck glass. |516| `kalimba` | Thumb piano. |517| `woodblock` | Dry wooden knock. |518519## voice520521**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.522523*Method.* Source-filter synthesis: band-limited glottal pulse train with spectral tilt and aspiration noise, five parallel two-pole formant filters524525*Range.* MIDI 36 to 84. *Articulations.* normal, legato, staccato, accent.526527| Parameter | Unit | Range | Default | Automatable | Description |528|---|---|---|---|---|---|529| `vowel` | number | 0 to 4 | 0 | yes | Vowel position, continuous: 0 = a, 1 = e, 2 = i, 3 = o, 4 = u. |530| `voice` | choice | `soprano` `alto` `tenor` `bass` | `tenor` | | Voice type: scales the formants for the size of the vocal tract. |531| `breath` | 0–1 or % | 0 to 1 | 0.1 | yes | Aspiration noise mixed into the glottal source. |532| `tension` | 0–1 or % | 0 to 1 | 0.5 | yes | Vocal effort: a pressed voice has a brighter source spectrum. |533| `vibrato.rate` | Hz | 0 to 12 | 5.5 | yes | Vibrato rate. |534| `vibrato.depth` | st or cents | 0 to 1 | 0.25 | yes | Vibrato depth (peak deviation). |535| `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. |536| `envelope` | choice | `adsr` | `adsr` | | Amplitude envelope: `adsr` shapes the level; `natural` leaves the model's own decay and only damps after note-off. |537| `envelope.attack` | time (s, ms or a duration) | 0 to 10 | 0.08 | | Attack time (linear rise to full level). |538| `envelope.decay` | time (s, ms or a duration) | 0 to 20 | 0.1 | | Decay time: 60 dB of the distance to the sustain level. |539| `envelope.sustain` | 0–1 or % | 0 to 1 | 0.9 | | Sustain level. |540| `envelope.release` | time (s, ms or a duration) | 0.001 to 30 | 0.16 | | Release time after note-off (60 dB). |541542| Preset | Description |543|---|---|544| `aah` | Open 'a'. |545| `ooh` | Rounded 'u', soft. |546| `eeh` | Bright 'i'. |547| `soprano` | Soprano 'a' with wide vibrato. |548| `bass_ooh` | Low 'o'. |549| `whisper` | Mostly breath. |550551## patch552553**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.554555*Method.* Per-voice interpreter of a typed signal graph (`graph { }` block): oscillators, envelopes, filters, delays and arithmetic evaluated sample by sample in declaration order556557*Range.* MIDI 0 to 127. *Articulations.* normal.558559| Parameter | Unit | Range | Default | Automatable | Description |560|---|---|---|---|---|---|561| `gain` | dB | -60 to 12 | -12 | yes | Output level applied to the graph's output. |562| `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. |563564