SynthMaker Manual Help Open SynthMaker (opens in a new tab)
Code

Your sound as code

Every sound can be read as text, one module per line and one line per wire. Change the text and the sound changes with it; change a knob and the text follows.

In your sound's code, changing settings, adding or removing wires and built-in modules, and removing anything are free. Adding a circuit, a Code module, a visual or a module of your own, or changing what's inside one, needs SynthMaker Pro.

New words

SMPL, SynthMaker Patch Language, is a sound as text: one module per line, one line per wire. The Code view shows it beside the Patch.

1Patch, Both or Code

Above the Patch, choose Both to see the code beside it, or Code for the code alone. On a phone, the Patch's Code button opens it.

In SynthMaker, choose a module in the Patch and its line lights; put the cursor on a line and its module is chosen.

  1. Step 1: Open a sound. Smooth Pluck, open in SynthMaker. (larger)
  2. Step 2: Choose Both. Patch, Both and Code above the Patch, with Both chosen. (larger)
  3. Step 3: Its code beside the Patch. Smooth Pluck's code beside its Patch: one line per module, one per wire. (larger)
  4. Step 4: On a phone: Code. On a phone, Code in the bar above the Patch shows the code in the Patch’s place. (larger)

2Reading it

  • A module: name = Module(setting: value). Settings left out are at their defaults.
  • A wire: a -> b, in chains (voice -> osc1 -> filter1), and with commas for several (a -> b, c is one output into two, a, b -> c two into one). A port is named after a dot: voice.gate -> env1; a plain name is the module's first output, or its first input.
  • Values as the knobs show them: 300 Hz, 180 ms, -6 ct, Saw.
  • Sections: notes and effects say where the note modules and the effects begin. The effects play once, after all the voices are mixed. Wires stay inside their section, except notes into the Voice and a note module's value into a Macro's knob (drift -> bright.value).
  • Always there: out (one voice's output), voices (every voice, mixed) and master are in every sound, without a line of their own.
  • The first comment, # SynthMaker · Smooth Pluck, is the sound's name.
  1. Step 1: The sound's name. The first line, # SynthMaker · Smooth Pluck: a comment with the sound’s name. (larger)
  2. Step 2: One line per module. osc1 = Oscillator(fine: -6 ct): a module’s name, its kind, and its settings as the knobs show them. (larger)
  3. Step 3: Wires with ->. voice -> osc1 -> filter1 -> smooth -> vca1 -> out: a chain of wires in one line. (larger)
  4. Step 4: effects: after the voices. The effects line: what follows it runs once, on all the voices together. (larger)
Smooth Pluck · SMPL
# SynthMaker · Smooth Pluckvoice   = Voice()osc1    = Oscillator(fine: -6 ct)osc2    = Oscillator(fine: +6 ct)filter1 = Filter(cutoff: 300 Hz, resonance: 0.3, envAmount: +5 oct)env1    = Envelope(attack: 1 ms, decay: 180 ms, sustain: 0, release: 180 ms)env2    = Envelope(attack: 1 ms, decay: 500 ms, sustain: 0, release: 500 ms)vca1    = VCA(level: 0.223)smooth  = Smooth(cutoff: 1.2 kHz)  …voice -> osc1 -> filter1 -> smooth -> vca1 -> outvoice -> osc2 -> filter1voice.gate -> env1 -> filter1.envvoice.gate -> env2 -> vca1.gainvoice.velocity -> vca1.gain2  …effectsdelay1  = Delay(mix: 0.22)reverb1 = Reverb(decay: 2.4 s, mix: 0.24)master  = Master(volume: 1)  …voices -> delay1 -> reverb1 -> master
The Patch of the same sound: the Filter into Smooth into the VCA.
The line voice -> osc1 -> filter1 -> smooth -> vca1 -> out is this chain of wires.

3Type to change the sound

The sound changes as soon as the text reads. A line with a mistake turns red, with what's wrong (cutoff goes from 20 Hz to 20 kHz), and the sound keeps its last good version. Each pause in typing is one undo step.

  1. Step 1: Type: the sound changes. cutoff: 300 Hz changed to 900 Hz in the Filter’s line. (larger)
  2. Step 2: Turn a knob: text follows. The Filter’s card beside the code: turning Cutoff changes the number in its line. (larger)
  3. Step 3: A mistake turns red. cutoff: 90000 Hz in red, and under the code: cutoff goes from 20 Hz to 20 kHz. (larger)

Try it

  1. Open Smooth Pluck and choose Both.
  2. Change Filter(cutoff: 300 Hz to 900 Hz and play: brighter.
  3. Type 90000 Hz: the line turns red and the sound stays as it was.
Open the example sound: Smooth Pluck ↗ (opens in a new tab)

On the Mac, the Code view sits beside the Patch the same way, with the same text.

Remember