Skip to content

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

MachineCategoryDescription
sliceSamplerSlice sampler. Cuts a buffer into equal slices addressed by degree (0 4 8) or hit notation (x). separate: [5, 2] returns a Machine[].
samplerSamplerAudio file player. Supports WAV/MP3/OGG with optional pitch shifting and looping.
multisamplerSamplerMulti-sampled instrument. Loads a note-mapped sample pack over HTTP and pitch-shifts the nearest sample. preset / art / gain / attack / release / baseUrl.
pianoSamplerSampled grand piano (VCSL, Steinway B). 3 velocity layers.
violinSamplerSampled solo violin (VSCO 2 CE). art: arco / pizz.
contrabassSamplerSampled solo contrabass (VSCO 2 CE). art: arco / pizz.
violinSectionSamplerSampled violin section (VSCO 2 CE). art: arco / pizz.
violaSectionSamplerSampled viola section (VSCO 2 CE). art: arco / pizz.
celloSectionSamplerSampled cello section (VSCO 2 CE). art: arco / pizz.
vasynthSynthVirtual analog synth (VCO → VCF → ADSR). wave / cutoff / attack / release / gain.
fmsynthSynth4-operator FM synth. algorithm 0–7 / op1–op4: { ratio, index, decay } / gain.
kickDrumsFM kick drum. freq / pitchMult / decay / punch / gain.
snareDrumsFM + noise snare. gain / decay / tone (0 = noise, 1 = FM).
hatDrumsTR-808 style hi-hat. gain / decay (~0.04 = closed, ~0.3 = open). Tune the metallic tone via baseFreq / ratios.
modalPhysical ModelPhysical modelling base. exciter (strike/bow/pluck/blow) × resonator (beam/string/tube/membrane/plate) × material (metal/glass/wood/nylon/felt/skin).
malletPhysical ModelPhysical-modelled mallet percussion (modal wrapper). body: marimba/xylophone/vibraphone/tubular-bells.
modalStringsPhysical ModelBowed/plucked string instrument (modal wrapper). body: violin/viola/cello/double-bass/guitar/harp.
bellsPhysical ModelBell instrument synth (modal wrapper). body: tubular-bells/vibraphone/steel-drum. character: metal/glass.
drumPhysical ModelDrum synth (modal wrapper). body: kick/tom/hand-drum/cymbal/gong. hit: soft/medium/hard.
padPhysical ModelString pad synth (modal wrapper). bow exciter over string bodies. body: violin/viola/cello/double-bass.
windPhysical ModelWind instrument synth (modal wrapper). blow exciter. pipe: flute/reed/brass.
glassPhysical ModelGlass-toned percussion synth (modal wrapper). material fixed to glass. body: marimba/xylophone/vibraphone/tubular-bells.
keysElectricElectric keyboard. voice: ep (Rhodes) / wurli / clav / organ / bell / synth.
midiOutMIDIWeb MIDI API output. Sends sequence events as MIDI notes to external hardware or software. channel / port / transpose / velocityMax.
stereoInInputgetUserMedia stereo audio input (BlackHole etc.). Streams live audio into the incanto output chain. device / gain.
modalPianoAcousticGrand piano physical model. growl / hammerTone / bodyResonance / detune / decay / gain.
granularSamplerGranular synthesis engine. Slices a sample buffer into tiny grains and re-synthesises them with controllable position, density, scatter, and pitch.