An opcode is a setting written as name=value under a header. These pages list every name in the opcode table of the sfz-format repository (data/sfz/syntax.yml, CC0, the data behind the opcode pages of sfzformat.com): 848 entries, 433 opcodes, 117 aliases and 298 modulation names. The tables on the category pages are made from that file, the same data the viewer uses, and a script compares the viewer’s copy of the table with the file. The explanations on this page are in our words, from docs/versions.md, docs/misc/categories.md, docs/modulations/ and docs/extensions/midi_ccs.md.
Categories
The table sorts opcodes into ten categories (categories.md), which the pages follow:
| Category | Sub-groups | What it holds | Names |
|---|---|---|---|
| Sound Source | Sample Playback | The nature of the voice: samples or oscillators. | 47 |
| Instrument Settings | Voice Lifecycle | Opcodes used under the <control> header, and the voice lifecycle ones: groups, polyphony, off modes. | 34 |
| Region Logic | Key Mapping, MIDI Conditions, Internal Conditions, Triggers | The conditions under which a voice plays or stops. | 61 |
| Performance Parameters | Amplifier, EQ, Filter, Pitch | “All sound modifiers”: pitch, volume, pan, crossfades, two filters and up to three equaliser bands. Most are targets of the modulation opcodes. | 174 |
| Modulation: envelope generators Modulation: LFOs | Envelope Generators, LFO | “All the LFO and EG controls”. | 359 |
| Effects | The opcodes of the <effect> header and the effect sends. | 154 | |
| Curves, Loading, Wavetable Oscillator, Real-Time Instrument Script | The curve points, sample loading, the oscillator and the script opcode. | 2 + 5 + 11 + 1 |
What each column says
- Name. The opcode as written. A capital letter run in a name stands for a number:
N,XandYinlfoN_eqXfreq_onccYare an LFO number, an equaliser band and a controller number. A few names useNNorNNN(varNN_*) for a number with more digits. Real files also write a number with leading zeros (lfo01_freq), and the viewer reads both. A*stands for any text (hint_*,varNN_*), and*_modstands for the targets the table lists, such ascutoff_mod. - Kind. An opcode is the parameter itself. An alias is another spelling of the same opcode, often from another version (
loopmodeforloop_mode). A modulation is a name built from a parameter to let a source change it: with a MIDI controller (_onccN,_ccN), a curve (_curveccN), smoothing (_smoothccN) or steps (_stepccN), or with the note velocity. - Version. The label the table gives: SFZ v1, SFZ v2, ARIA, sfizz, LinuxSampler or Calfbox (Versions). A modulation or alias without a label of its own shows its parent’s.
- Value. The type (integer, float or string), the range as the table gives it, the unit and the default. “Unlike min and max, the default value is also used as a documentation string, thus not reliable to evaluate in parsers” (a note in the table). Where the table gives no range for a modulation name, the cell says so: the range of the parent is not necessarily that of the modulation. The units the table uses are seconds, milliseconds, sample units, cents, semitones, octaves, beats, bpm, hertz, decibels, degrees and percent.
- What it does. The table’s description, with the allowed words where the value is a choice, and whether envelope generators and LFOs can modulate the parameter.
A value that is a number is read by the player up to the first character that cannot be part of it: sfizz reads 64abc as 64 (readLeadingInt). Booleans are written on or off (any case) or as numbers, where zero is false (readBoolean).
Names with a controller
Most parameters can be tied to a MIDI controller by adding ccN: SFZ 1 writes _ccN or ccN (cutoff_ccN, ampeg_releaseccN), SFZ 2 adds _onccN (delay_samples_onccN), “although the ccN and _ccN versions may be aliases, depending on implementation” (modulations/midi_ccs.md). N is the controller number: 0 to 127, and the extended controllers on Extended MIDI controllers. “Any MIDI cc can be used when specifying a control, except for the control 0” (Cakewalk suite, test 07 - syntax special controls (random).sfz). See Modulation for the rest.
In the viewer
Each opcode node in the tree carries its table entry: description, type, range, unit, default, version and a link to its row on these pages. The viewer checks every value it can read against the table: a number must be a number (or, for the key opcodes, a note name), within the range, and a choice must be one of the listed words. A value outside the range is reported as outside the range the specification gives, because engines may accept more (Versions). A name the table does not have is reported as unknown; sfizz ignores such an opcode.