Machines
All machines are functions that return a Machine object. Pass the machine
to cast() along with a scale and sequence to produce audio.
Machine list
| Machine | Category | Description |
|---|---|---|
| slice | Sampler | Slice sampler. Cuts a buffer into equal slices addressed by degree (0 4 8) or hit notation (x). separate: [5, 2] returns a Machine[]. |
| sampler | Sampler | Audio file player. Supports WAV/MP3/OGG with optional pitch shifting and looping. |
| multisampler | Sampler | Multi-sampled instrument. Loads a note-mapped sample pack over HTTP and pitch-shifts the nearest sample. preset / art / gain / attack / release / baseUrl. |
| piano | Sampler | Sampled grand piano (VCSL, Steinway B). 3 velocity layers. |
| violin | Sampler | Sampled solo violin (VSCO 2 CE). art: arco / pizz. |
| contrabass | Sampler | Sampled solo contrabass (VSCO 2 CE). art: arco / pizz. |
| violinSection | Sampler | Sampled violin section (VSCO 2 CE). art: arco / pizz. |
| violaSection | Sampler | Sampled viola section (VSCO 2 CE). art: arco / pizz. |
| celloSection | Sampler | Sampled cello section (VSCO 2 CE). art: arco / pizz. |
| vasynth | Synth | Virtual analog synth (VCO → VCF → ADSR). wave / cutoff / attack / release / gain. |
| fmsynth | Synth | 4-operator FM synth. algorithm 0–7 / op1–op4: { ratio, index, decay } / gain. |
| kick | Drums | FM kick drum. freq / pitchMult / decay / punch / gain. |
| snare | Drums | FM + noise snare. gain / decay / tone (0 = noise, 1 = FM). |
| hat | Drums | TR-808 style hi-hat. gain / decay (~0.04 = closed, ~0.3 = open). Tune the metallic tone via baseFreq / ratios. |
| modal | Physical Model | Physical modelling base. exciter (strike/bow/pluck/blow) × resonator (beam/string/tube/membrane/plate) × material (metal/glass/wood/nylon/felt/skin). |
| mallet | Physical Model | Physical-modelled mallet percussion (modal wrapper). body: marimba/xylophone/vibraphone/tubular-bells. |
| modalStrings | Physical Model | Bowed/plucked string instrument (modal wrapper). body: violin/viola/cello/double-bass/guitar/harp. |
| bells | Physical Model | Bell instrument synth (modal wrapper). body: tubular-bells/vibraphone/steel-drum. character: metal/glass. |
| drum | Physical Model | Drum synth (modal wrapper). body: kick/tom/hand-drum/cymbal/gong. hit: soft/medium/hard. |
| pad | Physical Model | String pad synth (modal wrapper). bow exciter over string bodies. body: violin/viola/cello/double-bass. |
| wind | Physical Model | Wind instrument synth (modal wrapper). blow exciter. pipe: flute/reed/brass. |
| glass | Physical Model | Glass-toned percussion synth (modal wrapper). material fixed to glass. body: marimba/xylophone/vibraphone/tubular-bells. |
| keys | Electric | Electric keyboard. voice: ep (Rhodes) / wurli / clav / organ / bell / synth. |
| midiOut | MIDI | Web MIDI API output. Sends sequence events as MIDI notes to external hardware or software. channel / port / transpose / velocityMax. |
| stereoIn | Input | getUserMedia stereo audio input (BlackHole etc.). Streams live audio into the incanto output chain. device / gain. |
| modalPiano | Acoustic | Grand piano physical model. growl / hammerTone / bodyResonance / detune / decay / gain. |
| granular | Sampler | Granular synthesis engine. Slices a sample buffer into tiny grains and re-synthesises them with controllable position, density, scatter, and pitch. |