Add lossless SFZ document, flattening, typed model and opcode registry

Parse keeps a file exactly as written, with #define and #include
unexpanded and each include as its own file in a tree. Flatten resolves
directives and header inheritance, and Flat.Instrument reads regions into
the typed model ported from Zampler's internal/sfz. The opcode registry
is generated from the SFZ format's syntax data and drives Lookup, GetAs
and Validate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 17:38:10 +00:00
co-authored by Claude Sonnet 5.5
commit d124690ecf
29 changed files with 11677 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2026 Aneurin Barker Snook
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+38
View File
@@ -0,0 +1,38 @@
# sfz
A Go library that reads, validates and writes [SFZ](https://sfzformat.com/) instruments. It handles the format as data, covering SFZ v1, v2 and the ARIA extensions. It doesn't play instruments or load samples.
```go
doc, err := sfz.ParseFile(os.DirFS("Piano"), "Piano.sfz")
if err != nil {
return err
}
for _, p := range doc.Validate() {
log.Printf("%s:%d: %s", p.File, p.Line, p.Msg)
}
inst := doc.Flatten().Instrument()
```
## Layers
- **Document.** A file exactly as written: headers, opcodes in order, comments, unknown opcodes, and `#define` and `#include` unexpanded. Each `#include` that was read holds its file, so a document is a tree of files. Writing a document gives the same text back.
- **Flat.** `Document.Flatten` reads each `#include` where it stands, replaces variables with their values as of where they are used, and gives each region the opcodes of the `<global>`, `<master>` and `<group>` above it.
- **Instrument.** `Flat.Instrument` reads the regions into a typed model, with settings taken at the controllers' starting values. Opcodes the model has no field for are counted in `Unread`.
## Opcodes
The library knows every opcode and header in the format, from the data behind [sfzformat.com](https://sfzformat.com/): [docs/opcodes.md](docs/opcodes.md) lists them. `Lookup` returns an opcode's type, range, unit, options and version, finding numbered families such as `loccN` and aliases such as `loopmode`. `Validate` checks values against it. `GetAs` reads any opcode's value as an int, float or string. An opcode the registry doesn't know is kept, read and written as text like any other.
The registry is generated: replace `internal/gen/syntax.yml` and run `go generate ./...`, then `go test -update`.
## Includes
`Parse` reads includes with the resolver from `WithResolver`; `ParseFile` reads them from the folder of the main file. An include that can't be read is a `Problem` from `Validate`, and `WithIncludes(sfz.IncludesFail)` makes it an error. Includes nest at most 16 deep, and an instrument may hold 16 MB of text; `WithLimits` changes both.
## Status
The document, flattening, typed model, opcode registry and validation are in. Not yet in: editing a document, and building one from the typed model.
## Licence
MIT.
+59
View File
@@ -0,0 +1,59 @@
package sfz
import "strings"
// Value is the Go types that an opcode's value can be read as.
type Value interface {
int | int64 | float64 | string
}
// GetAs returns the value of an opcode, read as a T, or false if it isn't
// set or can't be read as one. A name the format gives an alias is also looked
// up by its aliases, so GetAs(o, "loop_mode") finds loopmode. An integer opcode
// that takes notes, such as lokey, reads a note name as its MIDI number, with
// middle C as c4. A string is returned without surrounding whitespace.
func GetAs[T Value](o Opcodes, name string) (T, bool) {
var zero T
raw, ok := o[name]
if !ok {
info, known := Lookup(name)
if !known {
return zero, false
}
for _, alias := range append([]string{info.Name}, info.Aliases...) {
if raw, ok = o[alias]; ok {
break
}
}
if !ok {
return zero, false
}
}
raw = strings.TrimSpace(raw)
switch any(zero).(type) {
case string:
return any(raw).(T), true
case float64:
f, ok := parseNumber(raw)
if !ok {
return zero, false
}
return any(f).(T), true
}
var n int
if info, known := Lookup(name); known && info.Note {
n, ok = parseNote(raw)
} else {
var f float64
if f, ok = parseNumber(raw); ok {
n = int(f)
}
}
if !ok {
return zero, false
}
if _, is64 := any(zero).(int64); is64 {
return any(int64(n)).(T), true
}
return any(n).(T), true
}
+740
View File
@@ -0,0 +1,740 @@
# Opcodes
Every opcode the library knows, from [sfzformat.com](https://sfzformat.com/)'s data. **Typed** opcodes are read into the [`Instrument`](../instrument.go) model; the rest are known, so the library validates them, and reads and writes them as text. This file is generated by `go test -update`.
| Opcode | Version | Value | Typed |
|---|---|---|---|
| `script` | LinuxSampler | string | |
| `count` | SFZ v1 | integer | |
| `delay` | SFZ v1 | float (seconds) | |
| `delay_ccN`, `delay_onccN` | SFZ v1 | float (seconds) | |
| `delay_curveccN` | ARIA | integer | |
| `delay_random` | SFZ v1 | float (seconds) | |
| `delay_samples` | SFZ v2 | integer (sample units) | |
| `delay_samples_onccN` | SFZ v2 | integer (sample units) | |
| `end` | SFZ v1 | integer (sample units) | |
| `loop_count`, `loopcount` | SFZ v2 | integer | |
| `loop_crossfade` | SFZ v2 | float (seconds) | |
| `loop_end`, `loopend` | SFZ v1 | integer (sample units) | yes |
| `loop_lengthccN`, `loop_length_onccN` | SFZ v2 | unspecified | |
| `loop_mode`, `loopmode` | SFZ v1 | string | yes |
| `loop_start`, `loopstart` | SFZ v1 | integer (sample units) | yes |
| `loop_startccN`, `loop_start_onccN` | SFZ v2 | unspecified | |
| `loop_tune`, `looptune` | SFZ v2 | float (cents) | |
| `loop_type`, `looptype` | SFZ v2 | string | |
| `offset` | SFZ v1 | integer (sample units) | yes |
| `offset_ccN`, `offset_onccN` | SFZ v1 | integer (sample units) | yes |
| `offset_random` | SFZ v1 | integer (sample units) | |
| `offset_mode` | ARIA | string | |
| `sample` | SFZ v1 | string | yes |
| `sample_fadeout` | SFZ v2 | float (seconds) | |
| `sample_dyn_paramN` | ARIA | float | |
| `sample_dyn_paramN_onccX` | ARIA | float | |
| `sync_beats` | SFZ v1 | float (beats) | |
| `sync_offset` | SFZ v1 | float (beats) | |
| `delay_beats` | SFZ v2 | float (beats) | |
| `delay_beats_onccN` | ARIA | unspecified | |
| `delay_beats_curveccN` | ARIA | integer | |
| `delay_beats_random` | ARIA | float (beats) | |
| `stop_beats` | SFZ v2 | float (beats) | |
| `direction` | SFZ v2 | string | |
| `md5` | SFZ v2 | string | |
| `reverse_loccN` | SFZ v2 | integer | |
| `reverse_hiccN` | SFZ v2 | integer | |
| `waveguide` | SFZ v2 | string | |
| `default_path` | SFZ v2 | string | yes |
| `note_offset` | SFZ v2 | integer (semitones) | yes |
| `octave_offset` | SFZ v2 | integer (octaves) | yes |
| `label_ccN` | ARIA | string | yes |
| `label_keyN` | sfizz | string | |
| `label_outputN` | Calfbox | string | |
| `set_ccN` | SFZ v2 | integer | yes |
| `hint_*` | ARIA | unspecified | |
| `*_mod` | ARIA | string | |
| `set_hdccN`, `set_realccN` | ARIA | float | yes |
| `sw_note_offset` | ARIA | integer | |
| `sw_octave_offset` | ARIA | integer | |
| `loop_end_offset` | ARIA | integer | |
| `global_label` | ARIA | string | yes |
| `master_label` | ARIA | string | yes |
| `group_label` | ARIA | string | yes |
| `region_label` | ARIA | string | yes |
| `group`, `polyphony_group` | SFZ v1 | integer | yes |
| `off_by`, `offby` | SFZ v1 | integer | yes |
| `off_mode` | SFZ v1 | string | yes |
| `output` | SFZ v1 | integer | |
| `polyphony` | SFZ v2 | integer | yes |
| `note_polyphony` | SFZ v2 | integer | yes |
| `polyphony_stealing` | ARIA | integer | |
| `note_selfmask` | SFZ v2 | string | |
| `rt_dead` | SFZ v2 | string | |
| `off_curve` | ARIA | integer | |
| `off_shape` | ARIA | float | |
| `off_time` | ARIA | float | yes |
| `key` | SFZ v1 | integer | yes |
| `lokey` | SFZ v1 | integer | yes |
| `hikey` | SFZ v1 | integer | yes |
| `lovel` | SFZ v1 | integer | yes |
| `hivel` | SFZ v1 | integer | yes |
| `lochan` | SFZ v1 | integer | yes |
| `hichan` | SFZ v1 | integer | yes |
| `loccN` | SFZ v1 | integer | yes |
| `hiccN` | SFZ v1 | integer | yes |
| `lobend` | SFZ v1 | integer | yes |
| `hibend` | SFZ v1 | integer | yes |
| `sostenuto_cc` | ARIA | integer | |
| `sostenuto_lo` | ARIA | float | |
| `sostenuto_sw` | SFZ v2 | string | |
| `sustain_cc` | ARIA | integer | |
| `sustain_lo` | ARIA | float | |
| `sustain_sw` | SFZ v2 | string | |
| `sw_lokey` | SFZ v1 | integer | yes |
| `sw_hikey` | SFZ v1 | integer | yes |
| `sw_last` | SFZ v1 | integer | yes |
| `sw_down` | SFZ v1 | integer | yes |
| `sw_up` | SFZ v1 | integer | yes |
| `sw_previous` | SFZ v1 | integer | yes |
| `sw_vel` | SFZ v1 | string | |
| `loprog` | SFZ v2 | integer | |
| `hiprog` | SFZ v2 | integer | |
| `lohdccN` | ARIA | float | yes |
| `hihdccN` | ARIA | float | yes |
| `sw_default` | SFZ v2 | integer | yes |
| `sw_label` | ARIA | string | yes |
| `sw_lolast` | ARIA | integer | |
| `sw_hilast` | ARIA | integer | |
| `varNN_mod` | ARIA | string | |
| `varNN_onccX` | ARIA | float | |
| `varNN_curveccX` | ARIA | integer | |
| `varNN_*` | ARIA | unspecified | |
| `lobpm` | SFZ v1 | float (bpm) | |
| `hibpm` | SFZ v1 | float (bpm) | |
| `lochanaft` | SFZ v1 | integer | yes |
| `hichanaft` | SFZ v1 | integer | yes |
| `lopolyaft` | SFZ v1 | integer | yes |
| `hipolyaft` | SFZ v1 | integer | yes |
| `lorand` | SFZ v1 | float | yes |
| `hirand` | SFZ v1 | float | yes |
| `seq_length` | SFZ v1 | integer | yes |
| `seq_position` | SFZ v1 | integer | yes |
| `lotimer` | SFZ v2 | float | |
| `hitimer` | SFZ v2 | float | |
| `trigger` | SFZ v1 | string | yes |
| `on_loccN`, `start_loccN` | SFZ v1 | integer | |
| `on_hiccN`, `start_hiccN` | SFZ v1 | integer | |
| `on_lohdccN`, `start_lohdccN` | ARIA | float | |
| `on_hihdccN`, `start_hihdccN` | ARIA | float | |
| `stop_loccN` | SFZ v2 | integer | |
| `stop_hiccN` | SFZ v2 | integer | |
| `stop_lohdccN` | ARIA | float | |
| `stop_hihdccN` | ARIA | float | |
| `pan` | SFZ v1 | float (%) | yes |
| `pan_onccN`, `pan_ccN` | SFZ v2 | unspecified | yes |
| `pan_curveccN` | SFZ v2 | integer | yes |
| `pan_smoothccN` | SFZ v2 | unspecified | |
| `pan_stepccN` | SFZ v2 | unspecified | |
| `pan_random` | ARIA | float (%) | |
| `position` | SFZ v1 | float (%) | |
| `position_onccN` | ARIA | unspecified | |
| `position_curveccN` | ARIA | integer | |
| `position_smoothccN` | ARIA | unspecified | |
| `position_stepccN` | ARIA | unspecified | |
| `position_random` | ARIA | float (%) | |
| `position_keycenter` | ARIA | unspecified | |
| `position_keytrack` | ARIA | unspecified | |
| `position_veltrack` | ARIA | integer | |
| `volume` | SFZ v1 | float (dB) | yes |
| `gain_ccN`, `gain_onccN`, `volume_onccN` | SFZ v1 | float (dB) | yes |
| `volume_curveccN` | SFZ v2 | integer | yes |
| `volume_smoothccN` | SFZ v2 | unspecified | |
| `volume_stepccN` | SFZ v2 | unspecified | |
| `width` | SFZ v1 | float (%) | yes |
| `width_onccN` | SFZ v2 | unspecified | yes |
| `width_curveccN` | SFZ v2 | integer | yes |
| `width_smoothccN` | SFZ v2 | unspecified | |
| `width_stepccN` | SFZ v2 | unspecified | |
| `amp_keycenter` | SFZ v1 | integer | |
| `amp_keytrack` | SFZ v1 | float (dB) | |
| `amp_veltrack` | SFZ v1 | float (%) | yes |
| `amp_veltrack_onccN`, `amp_veltrack_ccN` | ARIA | unspecified | yes |
| `amp_veltrack_curveccN` | ARIA | integer | yes |
| `amp_veltrack_random` | ARIA | unspecified | |
| `amp_velcurve_N` | SFZ v1 | float | yes |
| `amp_random`, `gain_random` | SFZ v1 | float (dB) | |
| `rt_decay` | SFZ v1 | float (dB) | yes |
| `rt_decayN` | ARIA | float (dB) | |
| `rt_decayN_time` | ARIA | float (seconds) | |
| `xf_cccurve` | SFZ v1 | string | |
| `xf_keycurve` | SFZ v1 | string | yes |
| `xf_velcurve` | SFZ v1 | string | yes |
| `xfin_loccN` | SFZ v1 | integer | |
| `xfin_hiccN` | SFZ v1 | integer | |
| `xfout_loccN` | SFZ v1 | integer | |
| `xfout_hiccN` | SFZ v1 | integer | |
| `xfin_lokey` | SFZ v1 | integer | yes |
| `xfin_hikey` | SFZ v1 | integer | yes |
| `xfout_lokey` | SFZ v1 | integer | yes |
| `xfout_hikey` | SFZ v1 | integer | yes |
| `xfin_lovel` | SFZ v1 | integer | yes |
| `xfin_hivel` | SFZ v1 | integer | yes |
| `xfout_lovel` | SFZ v1 | integer | yes |
| `xfout_hivel` | SFZ v1 | integer | yes |
| `phase` | SFZ v2 | string | |
| `amplitude` | ARIA | float (%) | yes |
| `amplitude_onccN`, `amplitude_ccN` | ARIA | float (%) | yes |
| `amplitude_curveccN` | ARIA | integer | yes |
| `amplitude_smoothccN` | ARIA | unspecified | |
| `global_amplitude` | ARIA | float (%) | yes |
| `master_amplitude` | ARIA | float (%) | yes |
| `group_amplitude` | ARIA | float (%) | yes |
| `pan_law` | ARIA | string | |
| `pan_keycenter` | SFZ v2 | integer | |
| `pan_keytrack` | SFZ v2 | float (%) | |
| `pan_veltrack` | SFZ v2 | float (%) | |
| `global_volume` | ARIA | float (dB) | yes |
| `master_volume` | ARIA | float (dB) | yes |
| `group_volume` | ARIA | float (dB) | yes |
| `eqN_bw` | SFZ v1 | float (octaves) | |
| `eqN_bwccX`, `eqN_bw_onccX` | SFZ v1 | float (octaves) | |
| `eqN_freq` | SFZ v1 | float (Hz) | |
| `eqN_freqccX`, `eqN_freq_onccX` | SFZ v1 | float (Hz) | |
| `eqN_vel2freq` | SFZ v1 | float (Hz) | |
| `eqN_gain` | SFZ v1 | float (dB) | |
| `eqN_gainccX`, `eqN_gain_onccX` | SFZ v1 | float (dB) | |
| `eqN_vel2gain` | SFZ v1 | float (dB) | |
| `eqN_dynamic` | ARIA | integer | |
| `eqN_mode` | ARIA | string | |
| `eqN_type` | SFZ v2 | string | |
| `cutoff` | SFZ v1 | float (Hz) | |
| `cutoff_ccN`, `cutoff_onccN` | SFZ v1 | integer (cents) | |
| `cutoff_curveccN` | SFZ v2 | integer | |
| `cutoff_smoothccN` | SFZ v2 | float (ms) | |
| `cutoff_stepccN` | SFZ v2 | integer | |
| `cutoff_chanaft` | SFZ v1 | integer (cents) | |
| `cutoff_polyaft` | SFZ v1 | integer (cents) | |
| `cutoff2` | SFZ v2 | float (Hz) | |
| `cutoff2_ccN` | SFZ v1 | integer (cents) | |
| `cutoff2_onccN` | SFZ v2 | unspecified | |
| `cutoff2_curveccN` | SFZ v2 | integer | |
| `cutoff2_smoothccN` | SFZ v2 | float (ms) | |
| `cutoff2_stepccN` | SFZ v2 | integer | |
| `cutoff2_chanaft` | SFZ v1 | integer (cents) | |
| `cutoff2_polyaft` | SFZ v1 | integer (cents) | |
| `fil_gain` | ARIA | float (dB) | |
| `fil_gain_onccN` | ARIA | unspecified | |
| `fil2_gain` | ARIA | float (dB) | |
| `fil2_gain_onccN` | ARIA | unspecified | |
| `fil_keycenter`, `fil2_keycenter` | SFZ v1 | integer | |
| `fil_keytrack`, `fil2_keytrack` | SFZ v1 | integer (cents) | |
| `fil_mode`, `fil2_mode` | ARIA | string | |
| `fil_random`, `cutoff_random`, `cutoff2_random` | SFZ v1 | integer (cents) | |
| `fil_type`, `filtype`, `fil2_type` | SFZ v1 | string | |
| `fil_veltrack`, `fil2_veltrack` | SFZ v1 | integer (cents) | |
| `resonance` | SFZ v1 | float (dB) | |
| `resonance_onccN`, `resonance_ccN` | SFZ v2 | float (dB) | |
| `resonance_curveccN` | SFZ v2 | integer | |
| `resonance_smoothccN` | SFZ v2 | float (ms) | |
| `resonance_stepccN` | SFZ v2 | integer | |
| `resonance2` | SFZ v2 | float (dB) | |
| `resonance2_onccN`, `resonance2_ccN` | SFZ v2 | float (dB) | |
| `resonance2_curveccN` | SFZ v2 | integer | |
| `resonance2_smoothccN` | SFZ v2 | float (ms) | |
| `resonance2_stepccN` | SFZ v2 | integer | |
| `resonance_random` | ARIA | float (dB) | |
| `resonance2_random` | ARIA | float (dB) | |
| `noise_filter` | SFZ v2 | string | |
| `noise_stereo` | SFZ v2 | string | |
| `noise_level` | SFZ v2 | float (dB) | |
| `noise_level_onccN` | SFZ v2 | float (dB) | |
| `noise_level_smoothccN` | SFZ v2 | float (ms) | |
| `noise_step` | SFZ v2 | integer | |
| `noise_step_onccN` | SFZ v2 | integer | |
| `noise_tone` | SFZ v2 | integer | |
| `noise_tone_onccN` | SFZ v2 | integer | |
| `bend_up`, `bendup` | SFZ v1 | integer (cents) | yes |
| `bend_down`, `benddown` | SFZ v1 | integer (cents) | yes |
| `bend_smooth` | SFZ v2 | float (ms) | |
| `bend_step`, `bendstep` | SFZ v1 | integer (cents) | yes |
| `tune`, `pitch` | SFZ v1 | integer (cents) | yes |
| `pitch_onccN`, `tune_ccN`, `tune_onccN` | SFZ v2 | unspecified (cents) | yes |
| `pitch_curveccN`, `tune_curveccN` | SFZ v2 | integer | yes |
| `pitch_smoothccN`, `tune_smoothccN` | SFZ v2 | float (ms) | |
| `pitch_stepccN`, `tune_stepccN` | SFZ v2 | unspecified | |
| `group_tune` | ARIA | integer (cents) | |
| `master_tune` | ARIA | integer (cents) | |
| `global_tune` | ARIA | integer (cents) | |
| `pitch_keycenter` | SFZ v1 | integer | yes |
| `pitch_keytrack`, `tune_keytrack` | SFZ v1 | integer (cents) | yes |
| `pitch_random`, `tune_random` | SFZ v1 | integer (cents) | |
| `pitch_veltrack`, `tune_veltrack` | SFZ v1 | integer (cents) | |
| `transpose` | SFZ v1 | integer | yes |
| `bend_stepup` | SFZ v2 | integer (cents) | |
| `bend_stepdown` | SFZ v2 | integer (cents) | |
| `ampeg_attack`, `amp_attack` | SFZ v1 | float (seconds) | yes |
| `ampeg_attackccN`, `ampeg_attack_onccN` | SFZ v1 | float (seconds) | yes |
| `ampeg_attack_curveccN` | ARIA | integer | yes |
| `ampeg_vel2attack`, `amp_vel2attack` | SFZ v1 | float (seconds) | |
| `ampeg_decay`, `amp_decay` | SFZ v1 | float (seconds) | yes |
| `ampeg_decayccN`, `ampeg_decay_onccN` | SFZ v1 | float | yes |
| `ampeg_decay_curveccN` | ARIA | integer | yes |
| `ampeg_vel2decay`, `amp_vel2decay` | SFZ v1 | float (seconds) | |
| `ampeg_delay`, `amp_delay` | SFZ v1 | float (seconds) | yes |
| `ampeg_delayccN`, `ampeg_delay_onccN` | SFZ v1 | float | yes |
| `ampeg_delay_curveccN` | ARIA | integer | yes |
| `ampeg_vel2delay`, `amp_vel2delay` | SFZ v1 | float (seconds) | |
| `ampeg_hold`, `amp_hold` | SFZ v1 | float (seconds) | yes |
| `ampeg_holdccN`, `ampeg_hold_onccN` | SFZ v1 | float | yes |
| `ampeg_hold_curveccN` | ARIA | integer | yes |
| `ampeg_vel2hold`, `amp_vel2hold` | SFZ v1 | float (seconds) | |
| `ampeg_release`, `amp_release` | SFZ v1 | float (seconds) | yes |
| `ampeg_releaseccN`, `ampeg_release_onccN` | SFZ v1 | float (seconds) | yes |
| `ampeg_release_curveccN` | ARIA | integer | yes |
| `ampeg_vel2release`, `amp_vel2release` | SFZ v1 | float (seconds) | |
| `ampeg_sustain`, `amp_sustain` | SFZ v1 | float (%) | yes |
| `ampeg_sustainccN`, `ampeg_sustain_onccN` | SFZ v1 | float (%) | yes |
| `ampeg_sustain_curveccN` | ARIA | integer | yes |
| `ampeg_vel2sustain`, `amp_vel2sustain` | SFZ v1 | float (%) | |
| `ampeg_start` | SFZ v1 | float (%) | |
| `ampeg_startccN`, `ampeg_start_onccN` | SFZ v1 | float (%) | |
| `ampeg_start_curveccN` | ARIA | integer | |
| `ampeg_attack_shape` | ARIA | float | |
| `ampeg_decay_shape` | ARIA | float | |
| `ampeg_decay_zero` | ARIA | integer | |
| `ampeg_dynamic` | ARIA | integer | |
| `ampeg_release_shape` | ARIA | float | |
| `ampeg_release_zero` | ARIA | integer | |
| `fileg_attack_shape` | ARIA | float | |
| `fileg_decay_shape` | ARIA | float | |
| `fileg_decay_zero` | ARIA | integer | |
| `fileg_release_shape` | ARIA | float | |
| `fileg_release_zero` | ARIA | integer | |
| `fileg_dynamic` | ARIA | integer | |
| `pitcheg_attack_shape` | ARIA | float | |
| `pitcheg_decay_shape` | ARIA | float | |
| `pitcheg_decay_zero` | ARIA | integer | |
| `pitcheg_release_shape` | ARIA | float | |
| `pitcheg_release_zero` | ARIA | integer | |
| `pitcheg_dynamic` | ARIA | integer | |
| `fileg_attack`, `fil_attack` | SFZ v1 | float (seconds) | |
| `fileg_attack_onccN`, `fileg_attackccN` | ARIA | float (seconds) | |
| `fileg_attack_curveccN` | ARIA | integer | |
| `fileg_vel2attack`, `fil_vel2attack` | SFZ v1 | float (seconds) | |
| `fileg_decay`, `fil_decay` | SFZ v1 | float (seconds) | |
| `fileg_decay_onccN`, `fileg_decayccN` | ARIA | float | |
| `fileg_decay_curveccN` | ARIA | integer | |
| `fileg_vel2decay`, `fil_vel2decay` | SFZ v1 | float (seconds) | |
| `fileg_delay`, `fil_delay` | SFZ v1 | float (seconds) | |
| `fileg_delay_onccN`, `fileg_delayccN` | ARIA | float | |
| `fileg_delay_curveccN` | ARIA | integer | |
| `fileg_vel2delay`, `fil_vel2delay` | SFZ v1 | float (seconds) | |
| `fileg_depth`, `fil_depth` | SFZ v1 | integer (cents) | |
| `fileg_depth_onccN`, `fileg_depthccN` | ARIA | integer (cents) | |
| `fileg_depth_curveccN` | ARIA | integer | |
| `fileg_vel2depth`, `fil_vel2depth` | SFZ v1 | integer (cents) | |
| `fileg_hold`, `fil_hold` | SFZ v1 | float (seconds) | |
| `fileg_hold_onccN`, `fileg_holdccN` | ARIA | float | |
| `fileg_hold_curveccN` | ARIA | integer | |
| `fileg_vel2hold`, `fil_vel2hold` | SFZ v1 | float (seconds) | |
| `fileg_release`, `fil_release` | SFZ v1 | float (seconds) | |
| `fileg_release_onccN`, `fileg_releaseccN` | ARIA | float (seconds) | |
| `fileg_release_curveccN` | ARIA | integer | |
| `fileg_vel2release`, `fil_vel2release` | SFZ v1 | float (seconds) | |
| `fileg_start` | SFZ v1 | float (%) | |
| `fileg_start_onccN`, `fileg_startccN` | ARIA | float (seconds) | |
| `fileg_start_curveccN` | ARIA | integer | |
| `fileg_sustain`, `fil_sustain` | SFZ v1 | float (%) | |
| `fileg_sustain_onccN`, `fileg_sustainccN` | ARIA | float (%) | |
| `fileg_sustain_curveccN` | ARIA | integer | |
| `fileg_vel2sustain`, `fil_vel2sustain` | SFZ v1 | float (%) | |
| `pitcheg_attack`, `pitch_attack` | SFZ v1 | float (seconds) | |
| `pitcheg_attack_onccN` | ARIA | unspecified | |
| `pitcheg_attack_curveccN` | ARIA | integer | |
| `pitcheg_vel2attack`, `pitch_vel2attack` | SFZ v1 | float (seconds) | |
| `pitcheg_decay`, `pitch_decay` | SFZ v1 | float (seconds) | |
| `pitcheg_decay_onccN` | ARIA | float | |
| `pitcheg_decay_curveccN` | ARIA | integer | |
| `pitcheg_vel2decay`, `pitch_vel2decay` | SFZ v1 | float (seconds) | |
| `pitcheg_delay`, `pitch_delay` | SFZ v1 | float (seconds) | |
| `pitcheg_delay_onccN` | ARIA | float | |
| `pitcheg_delay_curveccN` | ARIA | integer | |
| `pitcheg_vel2delay`, `pitch_vel2delay` | SFZ v1 | float (seconds) | |
| `pitcheg_depth`, `pitch_depth` | SFZ v1 | integer (cents) | |
| `pitcheg_depth_onccN`, `pitcheg_depthccN` | ARIA | integer (cents) | |
| `pitcheg_depth_curveccN` | ARIA | integer | |
| `pitcheg_vel2depth`, `pitch_vel2depth` | SFZ v1 | integer (cents) | |
| `pitcheg_hold`, `pitch_hold` | SFZ v1 | float (seconds) | |
| `pitcheg_hold_onccN` | ARIA | float | |
| `pitcheg_hold_curveccN` | ARIA | integer | |
| `pitcheg_vel2hold`, `pitch_vel2hold` | SFZ v1 | float (seconds) | |
| `pitcheg_release`, `pitch_release` | SFZ v1 | float (seconds) | |
| `pitcheg_release_onccN` | ARIA | float (seconds) | |
| `pitcheg_release_curveccN` | ARIA | integer | |
| `pitcheg_vel2release`, `pitch_vel2release` | SFZ v1 | float (seconds) | |
| `pitcheg_start` | SFZ v1 | float (%) | |
| `pitcheg_start_onccN` | ARIA | float (%) | |
| `pitcheg_start_curveccN` | ARIA | integer | |
| `pitcheg_sustain`, `pitch_sustain` | SFZ v1 | float (%) | |
| `pitcheg_sustain_onccN` | ARIA | float (%) | |
| `pitcheg_sustain_curveccN` | ARIA | integer | |
| `pitcheg_vel2sustain`, `pitch_vel2sustain` | SFZ v1 | float (%) | |
| `egN_points` | SFZ v2 | unspecified | |
| `egN_timeX` | SFZ v2 | float (seconds) | |
| `egN_timeX_onccY` | SFZ v2 | float (seconds) | |
| `egN_levelX` | SFZ v2 | float | |
| `egN_levelX_onccY` | SFZ v2 | float | |
| `egN_ampeg` | ARIA | unspecified | |
| `egN_dynamic` | ARIA | integer | |
| `egN_shapeX` | SFZ v2 | float | |
| `egN_curveX` | SFZ v2 | unspecified | |
| `egN_sustain` | SFZ v2 | unspecified | |
| `egN_loop` | SFZ v2 | unspecified | |
| `egN_loop_count` | SFZ v2 | unspecified | |
| `egN_volume` | SFZ v2 | unspecified | |
| `egN_volume_onccX` | SFZ v2 | unspecified | |
| `egN_amplitude` | SFZ v2 | unspecified | |
| `egN_amplitude_onccX` | SFZ v2 | unspecified | |
| `egN_pan` | SFZ v2 | unspecified | |
| `egN_pan_onccX` | SFZ v2 | unspecified | |
| `egN_width` | SFZ v2 | unspecified | |
| `egN_width_onccX` | SFZ v2 | unspecified | |
| `egN_pan_curve` | SFZ v2 | unspecified | |
| `egN_pan_curveccX` | SFZ v2 | integer | |
| `egN_freq_lfoX` | SFZ v2 | float (Hz) | |
| `egN_depth_lfoX` | SFZ v2 | float (%) | |
| `egN_depthadd_lfoX` | SFZ v2 | unspecified | |
| `egN_pitch` | SFZ v2 | unspecified | |
| `egN_pitch_onccX` | SFZ v2 | unspecified | |
| `egN_cutoff` | SFZ v2 | unspecified | |
| `egN_cutoff_onccX` | SFZ v2 | unspecified | |
| `egN_cutoff2` | SFZ v2 | unspecified | |
| `egN_cutoff2_onccX` | SFZ v2 | unspecified | |
| `egN_resonance` | SFZ v2 | unspecified | |
| `egN_resonance_onccX` | SFZ v2 | unspecified | |
| `egN_resonance2` | SFZ v2 | unspecified | |
| `egN_resonance2_onccX` | SFZ v2 | unspecified | |
| `egN_eqXfreq` | SFZ v2 | unspecified | |
| `egN_eqXfreq_onccY` | SFZ v2 | unspecified | |
| `egN_eqXbw` | SFZ v2 | unspecified | |
| `egN_eqXbw_onccY` | SFZ v2 | unspecified | |
| `egN_eqXgain` | SFZ v2 | unspecified | |
| `egN_eqXgain_onccY` | SFZ v2 | unspecified | |
| `egN_decim` | SFZ v2 | unspecified | |
| `egN_decim_onccX` | SFZ v2 | unspecified | |
| `egN_bitred` | SFZ v2 | unspecified | |
| `egN_bitred_onccX` | SFZ v2 | unspecified | |
| `egN_rectify` | SFZ v2 | unspecified | |
| `egN_rectify_onccX` | SFZ v2 | unspecified | |
| `egN_ringmod` | SFZ v2 | unspecified | |
| `egN_ringmod_onccX` | SFZ v2 | unspecified | |
| `egN_noiselevel` | SFZ v2 | unspecified | |
| `egN_noiselevel_onccX` | SFZ v2 | unspecified | |
| `egN_noisestep` | SFZ v2 | unspecified | |
| `egN_noisestep_onccX` | SFZ v2 | unspecified | |
| `egN_noisetone` | SFZ v2 | unspecified | |
| `egN_noisetone_onccX` | SFZ v2 | unspecified | |
| `egN_driveshape` | SFZ v2 | unspecified | |
| `egN_driveshape_onccX` | SFZ v2 | unspecified | |
| `egN_sample_dyn_paramX` | ARIA | unspecified | |
| `egN_sample_dyn_paramX_onccY` | ARIA | unspecified | |
| `amplfo_delay` | SFZ v1 | float (seconds) | |
| `amplfo_depth` | SFZ v1 | float (dB) | |
| `amplfo_depthccN`, `amplfo_depth_onccN` | SFZ v1 | float (dB) | |
| `amplfo_depthchanaft` | SFZ v1 | float (dB) | |
| `amplfo_depthpolyaft` | SFZ v1 | float (dB) | |
| `amplfo_fade` | SFZ v1 | float (seconds) | |
| `amplfo_freq` | SFZ v1 | float (Hz) | |
| `amplfo_freqccN` | SFZ v1 | float (Hz) | |
| `amplfo_freqchanaft` | SFZ v1 | float (Hz) | |
| `amplfo_freqpolyaft` | SFZ v1 | float (Hz) | |
| `fillfo_delay` | SFZ v1 | float (seconds) | |
| `fillfo_depth` | SFZ v1 | float (cents) | |
| `fillfo_depthccN`, `fillfo_depth_onccN` | SFZ v1 | float (cents) | |
| `fillfo_depthchanaft` | SFZ v1 | float (cents) | |
| `fillfo_depthpolyaft` | SFZ v1 | float (cents) | |
| `fillfo_fade` | SFZ v1 | float (seconds) | |
| `fillfo_freq` | SFZ v1 | float (Hz) | |
| `fillfo_freqccN` | SFZ v1 | float (Hz) | |
| `fillfo_freqchanaft` | SFZ v1 | float (Hz) | |
| `fillfo_freqpolyaft` | SFZ v1 | float (Hz) | |
| `pitchlfo_delay` | SFZ v1 | float (seconds) | |
| `pitchlfo_depth` | SFZ v1 | float (cents) | |
| `pitchlfo_depthccN`, `pitchlfo_depth_onccN` | SFZ v1 | float (cents) | |
| `pitchlfo_depthchanaft` | SFZ v1 | float (cents) | |
| `pitchlfo_depthpolyaft` | SFZ v1 | float (cents) | |
| `pitchlfo_fade` | SFZ v1 | float (seconds) | |
| `pitchlfo_freq` | SFZ v1 | float (Hz) | |
| `pitchlfo_freqccN` | SFZ v1 | float (Hz) | |
| `pitchlfo_freqchanaft` | SFZ v1 | float (Hz) | |
| `pitchlfo_freqpolyaft` | SFZ v1 | float (Hz) | |
| `lfoN_freq` | SFZ v2 | float (Hz) | |
| `lfoN_freq_onccX` | SFZ v2 | unspecified | |
| `lfoN_freq_smoothccX` | SFZ v2 | unspecified | |
| `lfoN_freq_stepccX` | SFZ v2 | unspecified | |
| `lfoN_delay` | SFZ v2 | float (seconds) | |
| `lfoN_delay_onccX` | SFZ v2 | unspecified | |
| `lfoN_fade` | SFZ v2 | float | |
| `lfoN_fade_onccX` | SFZ v2 | float | |
| `lfoN_phase` | SFZ v2 | float | |
| `lfoN_phase_onccX` | SFZ v2 | unspecified | |
| `lfoN_count` | SFZ v2 | integer | |
| `lfoN_wave`, `lfoN_waveX` | SFZ v2 | integer | |
| `lfoN_wave_onccX` | ARIA | unspecified | |
| `lfoN_steps` | SFZ v2 | integer | |
| `lfoN_stepX` | SFZ v2 | float (percent) | |
| `lfoN_stepX_onccY` | SFZ v2 | unspecified | |
| `lfoN_smooth` | SFZ v2 | unspecified | |
| `lfoN_smooth_onccX` | SFZ v2 | unspecified | |
| `lfoN_volume` | SFZ v2 | unspecified | |
| `lfoN_volume_onccX` | SFZ v2 | unspecified | |
| `lfoN_volume_smoothccX` | SFZ v2 | unspecified | |
| `lfoN_volume_stepccX` | SFZ v2 | unspecified | |
| `lfoN_amplitude` | SFZ v2 | unspecified | |
| `lfoN_amplitude_onccX` | SFZ v2 | unspecified | |
| `lfoN_amplitude_smoothccX` | SFZ v2 | unspecified | |
| `lfoN_amplitude_stepccX` | SFZ v2 | unspecified | |
| `lfoN_pan` | SFZ v2 | unspecified | |
| `lfoN_pan_onccX` | SFZ v2 | unspecified | |
| `lfoN_pan_smoothccX` | SFZ v2 | unspecified | |
| `lfoN_pan_stepccX` | SFZ v2 | unspecified | |
| `lfoN_width` | SFZ v2 | unspecified | |
| `lfoN_width_onccX` | SFZ v2 | unspecified | |
| `lfoN_width_smoothccX` | SFZ v2 | unspecified | |
| `lfoN_width_stepccX` | SFZ v2 | unspecified | |
| `lfoN_freq_lfoX` | SFZ v2 | unspecified | |
| `lfoN_freq_lfoX_onccY` | ARIA | unspecified | |
| `lfoN_depth_lfoX` | SFZ v2 | unspecified | |
| `lfoN_depthadd_lfoX` | SFZ v2 | unspecified | |
| `lfoN_pitch` | SFZ v2 | unspecified | |
| `lfoN_pitch_curveccX` | SFZ v2 | integer | |
| `lfoN_pitch_onccX` | SFZ v2 | unspecified | |
| `lfoN_pitch_smoothccX` | SFZ v2 | unspecified | |
| `lfoN_pitch_stepccX` | SFZ v2 | unspecified | |
| `lfoN_cutoff` | SFZ v2 | unspecified | |
| `lfoN_cutoff_onccX` | SFZ v2 | unspecified | |
| `lfoN_cutoff_smoothccX` | SFZ v2 | unspecified | |
| `lfoN_cutoff_stepccX` | SFZ v2 | unspecified | |
| `lfoN_cutoff2` | SFZ v2 | unspecified | |
| `lfoN_cutoff2_onccX` | SFZ v2 | unspecified | |
| `lfoN_cutoff2_smoothccX` | SFZ v2 | unspecified | |
| `lfoN_cutoff2_stepccX` | SFZ v2 | unspecified | |
| `lfoN_resonance` | SFZ v2 | unspecified | |
| `lfoN_resonance_onccX` | SFZ v2 | unspecified | |
| `lfoN_resonance_smoothccX` | SFZ v2 | unspecified | |
| `lfoN_resonance_stepccX` | SFZ v2 | unspecified | |
| `lfoN_resonance2` | SFZ v2 | unspecified | |
| `lfoN_resonance2_onccX` | SFZ v2 | unspecified | |
| `lfoN_resonance2_smoothccX` | SFZ v2 | unspecified | |
| `lfoN_resonance2_stepccX` | SFZ v2 | unspecified | |
| `lfoN_eqXfreq` | SFZ v2 | unspecified | |
| `lfoN_eqXfreq_onccY` | SFZ v2 | unspecified | |
| `lfoN_eqXfreq_smoothccY` | SFZ v2 | unspecified | |
| `lfoN_eqXfreq_stepccY` | SFZ v2 | unspecified | |
| `lfoN_eqXbw` | SFZ v2 | unspecified | |
| `lfoN_eqXbw_onccY` | SFZ v2 | unspecified | |
| `lfoN_eqXbw_smoothccY` | SFZ v2 | unspecified | |
| `lfoN_eqXbw_stepccY` | SFZ v2 | unspecified | |
| `lfoN_eqXgain` | SFZ v2 | unspecified | |
| `lfoN_eqXgain_onccY` | SFZ v2 | unspecified | |
| `lfoN_eqXgain_smoothccY` | SFZ v2 | unspecified | |
| `lfoN_eqXgain_stepccY` | SFZ v2 | unspecified | |
| `lfoN_decim` | SFZ v2 | unspecified | |
| `lfoN_decim_onccX` | SFZ v2 | unspecified | |
| `lfoN_decim_smoothccX` | SFZ v2 | unspecified | |
| `lfoN_decim_stepccX` | SFZ v2 | unspecified | |
| `lfoN_bitred` | SFZ v2 | unspecified | |
| `lfoN_bitred_onccX` | SFZ v2 | unspecified | |
| `lfoN_bitred_smoothccX` | SFZ v2 | unspecified | |
| `lfoN_bitred_stepccX` | SFZ v2 | unspecified | |
| `lfoN_noiselevel` | SFZ v2 | unspecified | |
| `lfoN_noiselevel_onccX` | SFZ v2 | unspecified | |
| `lfoN_noiselevel_smoothccX` | SFZ v2 | unspecified | |
| `lfoN_noiselevel_stepccX` | SFZ v2 | unspecified | |
| `lfoN_noisestep` | SFZ v2 | unspecified | |
| `lfoN_noisestep_onccX` | SFZ v2 | unspecified | |
| `lfoN_noisestep_smoothccX` | SFZ v2 | unspecified | |
| `lfoN_noisestep_stepccX` | SFZ v2 | unspecified | |
| `lfoN_noisetone` | SFZ v2 | unspecified | |
| `lfoN_noisetone_onccX` | SFZ v2 | unspecified | |
| `lfoN_noisetone_smoothccX` | SFZ v2 | unspecified | |
| `lfoN_noisetone_stepccX` | SFZ v2 | unspecified | |
| `lfoN_drive` | SFZ v2 | unspecified | |
| `lfoN_drive_onccX` | SFZ v2 | unspecified | |
| `lfoN_drive_smoothccX` | SFZ v2 | unspecified | |
| `lfoN_drive_stepccX` | SFZ v2 | unspecified | |
| `lfoN_offset`, `lfoN_offsetX` | ARIA | float | |
| `lfoN_ratio`, `lfoN_ratioX` | ARIA | float | |
| `lfoN_scale`, `lfoN_scaleX` | ARIA | float | |
| `lfoN_sample_dyn_paramX` | ARIA | unspecified | |
| `lfoN_sample_dyn_paramX_onccY` | ARIA | unspecified | |
| `curve_index` | ARIA | integer | |
| `vNNN` | SFZ v2 | float | |
| `apan_depth` | SFZ v2 | unspecified | |
| `apan_depth_onccN` | SFZ v2 | unspecified | |
| `apan_dry` | SFZ v2 | unspecified | |
| `apan_dry_onccN` | SFZ v2 | unspecified | |
| `apan_freq` | SFZ v2 | float (Hz) | |
| `apan_freq_onccN` | SFZ v2 | unspecified | |
| `apan_phase` | SFZ v2 | float (°) | |
| `apan_phase_onccN` | SFZ v2 | unspecified | |
| `apan_waveform` | SFZ v2 | unspecified | |
| `apan_wet` | SFZ v2 | unspecified | |
| `apan_wet_onccN` | SFZ v2 | unspecified | |
| `bitred` | SFZ v2 | unspecified | |
| `bitred_onccN` | SFZ v2 | unspecified | |
| `bitred_curveccN` | SFZ v2 | integer | |
| `bitred_smoothccN` | SFZ v2 | unspecified | |
| `bitred_stepccN` | SFZ v2 | unspecified | |
| `bus` | SFZ v2 | string | |
| `bypass_onccN` | SFZ v2 | float | |
| `comp_attack` | SFZ v2 | float (seconds) | |
| `comp_gain` | SFZ v2 | unspecified | |
| `comp_ratio` | SFZ v2 | unspecified | |
| `comp_release` | SFZ v2 | float (seconds) | |
| `comp_stlink` | SFZ v2 | string | |
| `comp_threshold` | SFZ v2 | float (dB) | |
| `decim` | SFZ v2 | unspecified | |
| `decim_onccN` | SFZ v2 | unspecified | |
| `decim_curveccN` | SFZ v2 | integer | |
| `decim_smoothccN` | SFZ v2 | unspecified | |
| `decim_stepccN` | SFZ v2 | unspecified | |
| `delay_cutoff` | SFZ v2 | float (Hz) | |
| `delay_cutoff_onccN` | SFZ v2 | unspecified | |
| `delay_damphi` | SFZ v2 | unspecified | |
| `delay_damphi_onccN` | SFZ v2 | unspecified | |
| `delay_damplo` | SFZ v2 | unspecified | |
| `delay_damplo_onccN` | SFZ v2 | unspecified | |
| `delay_dry` | SFZ v2 | unspecified | |
| `delay_dry_onccN` | SFZ v2 | unspecified | |
| `delay_feedback` | SFZ v2 | unspecified | |
| `delay_feedback_onccN` | SFZ v2 | unspecified | |
| `delay_filter` | SFZ v2 | string | |
| `delay_input` | SFZ v2 | unspecified | |
| `delay_input_onccN` | SFZ v2 | unspecified | |
| `delay_levelc` | SFZ v2 | unspecified | |
| `delay_levell` | SFZ v2 | unspecified | |
| `delay_levelr` | SFZ v2 | unspecified | |
| `delay_lfofreq` | SFZ v2 | float (Hz) | |
| `delay_lfofreq_onccN` | SFZ v2 | unspecified | |
| `delay_moddepth` | SFZ v2 | unspecified | |
| `delay_moddepth_onccN` | SFZ v2 | unspecified | |
| `delay_mode` | SFZ v2 | string | |
| `delay_panc` | SFZ v2 | unspecified | |
| `delay_panc_onccN` | SFZ v2 | unspecified | |
| `delay_panl` | SFZ v2 | unspecified | |
| `delay_panl_onccN` | SFZ v2 | unspecified | |
| `delay_panr` | SFZ v2 | unspecified | |
| `delay_panr_onccN` | SFZ v2 | unspecified | |
| `delay_resonance` | SFZ v2 | unspecified | |
| `delay_resonance_onccN` | SFZ v2 | unspecified | |
| `delay_spread` | SFZ v2 | unspecified | |
| `delay_spread_onccN` | SFZ v2 | unspecified | |
| `delay_syncc_onccN` | SFZ v2 | unspecified | |
| `delay_syncl_onccN` | SFZ v2 | unspecified | |
| `delay_syncr_onccN` | SFZ v2 | unspecified | |
| `delay_time_tap` | SFZ v2 | unspecified | |
| `delay_timec` | SFZ v2 | unspecified | |
| `delay_timec_onccN` | SFZ v2 | unspecified | |
| `delay_timel` | SFZ v2 | unspecified | |
| `delay_timel_onccN` | SFZ v2 | unspecified | |
| `delay_timer` | SFZ v2 | unspecified | |
| `delay_timer_onccN` | SFZ v2 | unspecified | |
| `delay_wet` | SFZ v2 | unspecified | |
| `delay_wet_onccN` | SFZ v2 | unspecified | |
| `directtomain` | SFZ v2 | float (%) | |
| `disto_depth` | SFZ v2 | unspecified | |
| `disto_depth_onccN` | SFZ v2 | unspecified | |
| `disto_dry` | SFZ v2 | unspecified | |
| `disto_dry_onccN` | SFZ v2 | unspecified | |
| `disto_stages` | SFZ v2 | unspecified | |
| `disto_tone` | SFZ v2 | unspecified | |
| `disto_tone_onccN` | SFZ v2 | unspecified | |
| `disto_wet` | SFZ v2 | unspecified | |
| `disto_wet_onccN` | SFZ v2 | unspecified | |
| `dsp_order` | SFZ v2 | integer | |
| `effect1` | SFZ v1 | float (%) | |
| `effect2` | SFZ v1 | float (%) | |
| `effect3` | SFZ v2 | float (%) | |
| `effect4` | SFZ v2 | float (%) | |
| `eq_bw` | SFZ v2 | unspecified | |
| `eq_bw_onccN` | SFZ v2 | unspecified | |
| `eq_freq` | SFZ v2 | unspecified | |
| `eq_freq_onccN` | SFZ v2 | unspecified | |
| `eq_gain` | SFZ v2 | unspecified | |
| `eq_gain_onccN` | SFZ v2 | unspecified | |
| `eq_type` | SFZ v2 | unspecified | |
| `filter_cutoff` | SFZ v2 | unspecified | |
| `filter_cutoff_onccN` | SFZ v2 | unspecified | |
| `filter_resonance` | SFZ v2 | unspecified | |
| `filter_resonance_onccN` | SFZ v2 | unspecified | |
| `filter_type` | SFZ v2 | string | |
| `fxNtomain` | SFZ v2 | float (%) | |
| `fxNtomix` | SFZ v2 | float (%) | |
| `gate_onccN` | SFZ v2 | unspecified | |
| `gate_attack` | SFZ v2 | unspecified | |
| `gate_release` | SFZ v2 | unspecified | |
| `gate_stlink` | SFZ v2 | string | |
| `gate_threshold` | SFZ v2 | unspecified | |
| `internal` | SFZ v2 | string | |
| `param_offset` | ARIA | integer | |
| `phaser_depth` | SFZ v2 | unspecified | |
| `phaser_depth_onccN` | SFZ v2 | unspecified | |
| `phaser_feedback` | SFZ v2 | unspecified | |
| `phaser_feedback_onccN` | SFZ v2 | unspecified | |
| `phaser_freq` | SFZ v2 | float (Hz) | |
| `phaser_freq_onccN` | SFZ v2 | unspecified | |
| `phaser_phase_onccN` | SFZ v2 | unspecified | |
| `phaser_stages` | SFZ v2 | unspecified | |
| `phaser_waveform` | SFZ v2 | unspecified | |
| `phaser_wet` | SFZ v2 | unspecified | |
| `phaser_wet_onccN` | SFZ v2 | unspecified | |
| `reverb_damp` | SFZ v2 | unspecified | |
| `reverb_damp_onccN` | SFZ v2 | unspecified | |
| `reverb_dry` | SFZ v2 | unspecified | |
| `reverb_dry_onccN` | SFZ v2 | unspecified | |
| `reverb_input` | SFZ v2 | unspecified | |
| `reverb_input_onccN` | SFZ v2 | unspecified | |
| `reverb_predelay` | SFZ v2 | float (seconds) | |
| `reverb_predelay_onccN` | SFZ v2 | unspecified | |
| `reverb_size` | SFZ v2 | unspecified | |
| `reverb_size_onccN` | SFZ v2 | unspecified | |
| `reverb_tone` | SFZ v2 | unspecified | |
| `reverb_tone_onccN` | SFZ v2 | unspecified | |
| `reverb_type` | SFZ v2 | string | |
| `reverb_wet` | SFZ v2 | unspecified | |
| `reverb_wet_onccN` | SFZ v2 | unspecified | |
| `static_cyclic_level` | SFZ v2 | unspecified | |
| `static_cyclic_time` | SFZ v2 | float (seconds) | |
| `static_filter` | SFZ v2 | string | |
| `static_level` | SFZ v2 | unspecified | |
| `static_level_onccN` | SFZ v2 | unspecified | |
| `static_random_level` | SFZ v2 | unspecified | |
| `static_random_maxtime` | SFZ v2 | float (seconds) | |
| `static_random_mintime` | SFZ v2 | float (seconds) | |
| `static_stereo` | SFZ v2 | unspecified | |
| `static_tone` | SFZ v2 | unspecified | |
| `strings_number` | SFZ v2 | unspecified | |
| `strings_wet_onccN` | SFZ v2 | unspecified | |
| `tdfir_dry` | SFZ v2 | unspecified | |
| `tdfir_dry_onccN` | SFZ v2 | unspecified | |
| `tdfir_gain` | SFZ v2 | unspecified | |
| `tdfir_impulse` | SFZ v2 | unspecified | |
| `tdfir_wet` | SFZ v2 | unspecified | |
| `tdfir_wet_onccN` | SFZ v2 | unspecified | |
| `type` | SFZ v2 | string | |
| `vendor_specific` | ARIA | string | |
| `load_mode` | SFZ v2 | integer | |
| `load_start` | SFZ v2 | integer | |
| `load_end` | SFZ v2 | integer | |
| `sample_quality` | SFZ v2 | integer | |
| `image` | SFZ v2 | string | |
| `oscillator` | SFZ v2 | string | |
| `oscillator_detune` | SFZ v2 | unspecified | |
| `oscillator_detune_onccN` | SFZ v2 | unspecified | |
| `oscillator_mode` | SFZ v2 | integer | |
| `oscillator_mod_depth` | SFZ v2 | unspecified | |
| `oscillator_mod_depth_onccN` | SFZ v2 | unspecified | |
| `oscillator_mod_smoothccN` | SFZ v2 | unspecified | |
| `oscillator_multi` | SFZ v2 | integer | |
| `oscillator_phase` | SFZ v2 | float | |
| `oscillator_quality` | SFZ v2 | integer | |
| `oscillator_table_size` | SFZ v2 | unspecified | |
+179
View File
@@ -0,0 +1,179 @@
// Package sfz reads, validates and writes SFZ instruments: text files that
// map samples to keys, velocities and playback settings. It handles SFZ v1 and
// v2 with the ARIA extensions as data. It doesn't play or load samples.
//
// A [Document] keeps a file exactly as written, including comments, spacing,
// unknown opcodes, and #define and #include directives, so that writing an
// unchanged document gives the same text back. [Document.Flatten] resolves
// directives and header inheritance into regions, and [Flat.Instrument] reads
// those into a typed model.
package sfz
import (
"errors"
"io"
"strings"
)
// Errors that Parse and Flatten wrap.
var (
// ErrInvalid is returned for text that can't be read as an instrument.
ErrInvalid = errors.New("invalid SFZ")
// ErrIncludeLoop is returned when a file includes itself, directly or not.
ErrIncludeLoop = errors.New("include loop")
// ErrUnresolved is returned, with [IncludesFail], for an include that
// can't be read.
ErrUnresolved = errors.New("unresolved include")
)
// NodeKind is what a [Node] holds.
type NodeKind int
// The kinds of node.
const (
// KindSpace is a run of whitespace.
KindSpace NodeKind = iota
// KindComment is a // or /* */ comment.
KindComment
// KindHeader is a header such as <region>.
KindHeader
// KindOpcode is an opcode and its value, such as lokey=60.
KindOpcode
// KindDefine is a #define directive.
KindDefine
// KindInclude is an #include directive.
KindInclude
// KindText is text that isn't any of the above, such as a directive that
// can't be read.
KindText
)
// String returns the kind's name.
func (k NodeKind) String() string {
switch k {
case KindSpace:
return "space"
case KindComment:
return "comment"
case KindHeader:
return "header"
case KindOpcode:
return "opcode"
case KindDefine:
return "define"
case KindInclude:
return "include"
}
return "text"
}
// Node is one piece of a file. The raw text of a file's nodes, in order, is
// the file's text.
type Node struct {
Kind NodeKind
// Raw is the node's text as written.
Raw string
// Name is a header's name without its brackets, as written, an opcode's
// name, or a define's variable name with its $.
Name string
// Value is an opcode's or a define's value without surrounding
// whitespace, or an include's path as written.
Value string
// Line and Col are where the node starts, from 1, with Col in bytes.
Line, Col int
// Resolved is an include's path with its variables substituted, with
// forward slashes, relative to the folder of the main file.
Resolved string
// File is the file an include reads, or nil if it wasn't read.
File *File
}
// File is one file of a document: the main file or an included one.
type File struct {
// Path is the file's path relative to the folder of the main file, with
// forward slashes. For a file read with [Parse] and no name, it is empty.
Path string
Nodes []*Node
}
// String returns the file's text.
func (f *File) String() string {
var b strings.Builder
for _, n := range f.Nodes {
b.WriteString(n.Raw)
}
return b.String()
}
// Document is an instrument as written: a main file and the files it
// includes.
type Document struct {
// Root is the main file.
Root *File
// problems are those found while parsing.
problems []Problem
}
// WriteTo writes the main file's text to w. An included file is a separate
// [File] with its own text, which stays in the document as an #include.
func (d *Document) WriteTo(w io.Writer) (int64, error) {
n, err := io.WriteString(w, d.Root.String())
return int64(n), err
}
// String returns the main file's text.
func (d *Document) String() string { return d.Root.String() }
// Files returns the main file and the files it includes, in the order they are
// read, each time they are included.
func (d *Document) Files() []*File {
var out []*File
var walk func(f *File)
walk = func(f *File) {
out = append(out, f)
for _, n := range f.Nodes {
if n.Kind == KindInclude && n.File != nil {
walk(n.File)
}
}
}
walk(d.Root)
return out
}
// Severity is how serious a [Problem] is.
type Severity int
// The severities.
const (
// SeverityInfo is something unusual that is allowed.
SeverityInfo Severity = iota
// SeverityWarning is something that is probably a mistake.
SeverityWarning
// SeverityError is something that makes the instrument unreadable.
SeverityError
)
// String returns the severity's name.
func (s Severity) String() string {
switch s {
case SeverityInfo:
return "info"
case SeverityWarning:
return "warning"
}
return "error"
}
// Problem is something found in a document.
type Problem struct {
// File is the path of the file, as in [File.Path].
File string
// Line and Col are where the problem is, from 1.
Line, Col int
Severity Severity
// Code is a short stable name for the kind of problem, such as
// "include.unresolved".
Code string
Msg string
}
+191
View File
@@ -0,0 +1,191 @@
package sfz
import "strings"
// Opcodes are the opcodes set at one point of an instrument, by name.
type Opcodes map[string]string
// with returns the opcodes of o with those of more on top.
func (o Opcodes) with(more Opcodes) Opcodes {
out := make(Opcodes, len(o)+len(more))
for k, v := range o {
out[k] = v
}
for k, v := range more {
out[k] = v
}
return out
}
// FlatRegion is a <region> with the opcodes it inherits.
type FlatRegion struct {
// Opcodes are the region's own and those of the headers above it, and the
// <control> settings that apply to it.
Opcodes Opcodes
// File and Line are where the <region> header is.
File string
Line int
}
// Flat is an instrument with its directives expanded and its headers resolved.
type Flat struct {
// Control holds the opcodes of the <control> headers.
Control Opcodes
// Curves holds the opcodes of each <curve> header.
Curves []Opcodes
// Regions are the regions, in order.
Regions []FlatRegion
// Headers counts the headers that aren't <control>, <curve>, <global>,
// <master>, <group> or <region>, by name.
Headers map[string]int
}
// level is how far down the header hierarchy a header is.
type level int
const (
levelGlobal level = iota
levelMaster
levelGroup
levelRegion
)
// headerLevels are the headers whose opcodes regions inherit.
var headerLevels = map[string]level{
"global": levelGlobal,
"master": levelMaster,
"group": levelGroup,
"region": levelRegion,
}
// controlSettings are the <control> opcodes that apply to the regions after
// them.
var controlSettings = []string{"default_path", "note_offset", "octave_offset"}
// target is where the opcodes after a header go.
type target struct {
ops Opcodes
// region is the header of a <region>, which becomes a region when the next
// header starts or the text ends.
region *Node
file string
}
// flattener reads a document's nodes in order.
type flattener struct {
flat *Flat
defines map[string]string
// levels are the opcodes set at each level.
levels [levelRegion + 1]Opcodes
into *target
}
// Flatten returns the instrument with each #include read where it stands,
// each variable replaced by its value as of where it is used, and each
// region given the opcodes of the <global>, <master> and <group> above it. A
// new header clears the ones below it, so a <group> starts with no group
// opcodes. Comments are dropped. An include that wasn't read is skipped.
func (d *Document) Flatten() *Flat {
f := &flattener{
flat: &Flat{Control: Opcodes{}, Headers: map[string]int{}},
defines: map[string]string{},
}
for i := range f.levels {
f.levels[i] = Opcodes{}
}
f.file(d.Root)
f.closeRegion()
return f.flat
}
func (f *flattener) file(file *File) {
for _, n := range file.Nodes {
switch n.Kind {
case KindDefine:
f.defines[n.Name] = strings.TrimSpace(substitute(f.defines, n.Value))
case KindInclude:
if n.File != nil {
f.file(n.File)
}
case KindHeader:
f.header(n, file.Path)
case KindOpcode:
if !strings.Contains(n.Name+n.Value, "$") {
f.opcode(n.Name, n.Value)
continue
}
f.expand(n, file.Path, n.Name+"="+n.Value)
case KindText:
if strings.Contains(n.Raw, "$") {
f.expand(n, file.Path, n.Raw)
}
}
}
}
// expand reads again the text that a node makes once its variables are
// replaced, as a variable's value can hold opcodes or headers.
func (f *flattener) expand(n *Node, file, text string) {
for _, m := range lex(substitute(f.defines, text)) {
switch m.Kind {
case KindHeader:
f.header(&Node{Name: m.Name, Line: n.Line}, file)
case KindOpcode:
f.opcode(m.Name, m.Value)
}
}
}
// closeRegion adds the region being read, if any. A region takes the <control>
// settings made before it, which later <control> headers don't change.
func (f *flattener) closeRegion() {
if f.into == nil || f.into.region == nil {
return
}
control := Opcodes{}
for _, name := range controlSettings {
if v, ok := f.flat.Control[name]; ok {
control[name] = v
}
}
ops := control.with(f.levels[levelGlobal]).with(f.levels[levelMaster]).with(f.levels[levelGroup]).with(f.into.ops)
f.flat.Regions = append(f.flat.Regions, FlatRegion{Opcodes: ops, File: f.into.file, Line: f.into.region.Line})
}
func (f *flattener) header(n *Node, file string) {
f.closeRegion()
name := strings.ToLower(n.Name)
switch name {
case "control":
// A new <control> resets default_path, as ARIA does, but keeps the
// other control settings.
delete(f.flat.Control, "default_path")
f.into = &target{ops: f.flat.Control}
case "curve":
c := Opcodes{}
f.flat.Curves = append(f.flat.Curves, c)
f.into = &target{ops: c}
default:
lvl, ok := headerLevels[name]
if !ok {
f.flat.Headers[name]++
f.into = &target{ops: Opcodes{}}
return
}
for l := lvl; l <= levelRegion; l++ {
f.levels[l] = Opcodes{}
}
f.into = &target{ops: f.levels[lvl], file: file}
if lvl == levelRegion {
f.into.region = n
}
}
}
func (f *flattener) opcode(name, value string) {
if f.into == nil {
// Opcodes before any header apply to every region.
f.into = &target{ops: f.levels[levelGlobal]}
}
f.into.ops[name] = value
}
+3
View File
@@ -0,0 +1,3 @@
module code.aneur.in/zampler/sfz
go 1.25.0
+1035
View File
File diff suppressed because it is too large Load Diff
+5
View File
@@ -0,0 +1,5 @@
# Opcode registry generator
`syntax.yml` is `data/sfz/syntax.yml` from [sfzformat/sfzformat.github.io](https://github.com/sfzformat/sfzformat.github.io) (branch `source`, commit `43addaf8f532bcdb9c268729c754a850280924ef`, 23 January 2026), which is the data behind sfzformat.com. That repository is released under CC0 1.0.
`main.go` turns it into `registry_data.go` in the `sfz` package. It is a separate module so that the library has no dependencies. Run `go generate ./...` from the repository root after replacing `syntax.yml`.
+5
View File
@@ -0,0 +1,5 @@
module code.aneur.in/zampler/sfz/internal/gen
go 1.25.0
require gopkg.in/yaml.v3 v3.0.1 // indirect
+3
View File
@@ -0,0 +1,3 @@
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+284
View File
@@ -0,0 +1,284 @@
// Command gen turns the SFZ format's syntax data into the sfz package's
// opcode registry.
//
// Usage: go run . -in syntax.yml -out ../../registry_data.go
package main
import (
"bytes"
"flag"
"fmt"
"go/format"
"html"
"log"
"os"
"regexp"
"sort"
"strconv"
"strings"
"gopkg.in/yaml.v3"
)
// entry is an opcode as it goes into the registry.
type entry struct {
name string
aliases []string
version string
deprecated bool
category string
typeName string
min, max *float64
def string
unit string
options []string
description string
}
// notes are the integer opcodes that also take a note name.
var notes = regexp.MustCompile(`^(?:key|(?:lo|hi)key|pitch_keycenter|sw_(?:lokey|hikey|last|previous|down|up|default)|xf(?:in|out)_(?:lo|hi)key|(?:lo|hi)_?key)$`)
var tags = regexp.MustCompile(`<[^>]*>`)
// text turns the data's HTML snippets into plain text.
func text(v any) string {
s, _ := v.(string)
s = html.UnescapeString(tags.ReplaceAllString(s, ""))
return strings.Join(strings.Fields(s), " ")
}
func str(v any) string {
if v == nil {
return ""
}
return fmt.Sprint(v)
}
func number(v any) *float64 {
switch n := v.(type) {
case int:
f := float64(n)
return &f
case float64:
return &n
}
return nil
}
func asMap(v any) map[string]any {
m, _ := v.(map[string]any)
return m
}
func asList(v any) []any {
l, _ := v.([]any)
return l
}
type generator struct {
entries []*entry
byName map[string]*entry
}
// add reads an opcode of the data, and its aliases and modulations, into
// entries. inherit is the opcode whose value an opcode without one takes.
func (g *generator) add(x map[string]any, category string, inherit *entry) *entry {
name := str(x["name"])
if name == "" || x["macro"] == true {
return nil
}
e := &entry{name: name, version: str(x["version"]), category: category}
e.deprecated, _ = x["deprecated"].(bool)
e.description = text(x["short_description"])
if v := asMap(x["value"]); v != nil {
e.typeName = str(v["type_name"])
e.min, e.max = number(v["min"]), number(v["max"])
e.def, e.unit = text(v["default"]), str(v["unit"])
for _, o := range asList(v["options"]) {
e.options = append(e.options, str(asMap(o)["name"]))
}
} else if inherit != nil {
e.typeName, e.min, e.max, e.def, e.unit, e.options = inherit.typeName, inherit.min, inherit.max, inherit.def, inherit.unit, inherit.options
if e.description == "" {
e.description = inherit.description
}
}
if e.version == "" && inherit != nil {
e.version = inherit.version
}
g.entries = append(g.entries, e)
var independent []map[string]any
for _, a := range asList(x["alias"]) {
am := asMap(a)
if am == nil {
continue
}
// An alias with modulations of its own is another opcode, as cutoff2 is.
if am["modulation"] != nil {
independent = append(independent, am)
continue
}
e.aliases = append(e.aliases, str(am["name"]))
}
g.modulations(x, e, category, e)
for _, am := range independent {
g.addAlias(am, e, category)
}
return e
}
// addAlias reads an alias that is an opcode in its own right, whose
// modulations take their values from those of the opcode it copies.
func (g *generator) addAlias(am map[string]any, parent *entry, category string) {
own := &entry{name: str(am["name"]), version: str(am["version"]), category: category}
own.typeName, own.min, own.max, own.def, own.unit, own.options, own.description = parent.typeName, parent.min, parent.max, parent.def, parent.unit, parent.options, parent.description
if own.version == "" {
own.version = parent.version
}
own.deprecated, _ = am["deprecated"].(bool)
g.entries = append(g.entries, own)
g.modulations(am, own, category, parent)
}
// modulations reads the modulations that an opcode lists. A modulation
// without a value takes that of the one named like it under parent.
func (g *generator) modulations(x map[string]any, e *entry, category string, parent *entry) {
mods := asMap(x["modulation"])
keys := make([]string, 0, len(mods))
for k := range mods {
keys = append(keys, k)
}
sort.Strings(keys)
for _, k := range keys {
for _, item := range asList(mods[k]) {
m := asMap(item)
if m == nil {
continue
}
var inherit *entry
if parent != e {
swapped := strings.Replace(str(m["name"]), e.name, parent.name, 1)
for _, c := range g.entries {
if c.name == swapped {
inherit = c
}
}
}
me := g.add(m, category, inherit)
if me != nil && me.version == "" {
me.version = e.version
}
}
}
}
func (g *generator) walk(o any, category string) {
switch v := o.(type) {
case map[string]any:
if n := str(v["name"]); n != "" && v["opcodes"] != nil && category == "" {
category = n
}
for _, x := range asList(v["opcodes"]) {
if m := asMap(x); m != nil {
g.add(m, category, nil)
}
}
for k, c := range v {
if k != "opcodes" {
g.walk(c, category)
}
}
case []any:
for _, c := range v {
cat := category
if m := asMap(c); m != nil {
if n := str(m["name"]); n != "" && (m["opcodes"] != nil || m["types"] != nil) {
if category == "" {
cat = n
} else if m["opcodes"] != nil {
cat = category + " / " + n
}
}
}
g.walk(c, cat)
}
}
}
func quote(s string) string { return strconv.Quote(s) }
func fl(p *float64) string {
if p == nil {
return "nil"
}
return "ptr(float64(" + strconv.FormatFloat(*p, 'g', -1, 64) + "))"
}
func main() {
in := flag.String("in", "syntax.yml", "the syntax data")
out := flag.String("out", "registry_data.go", "the Go file to write")
flag.Parse()
data, err := os.ReadFile(*in)
if err != nil {
log.Fatal(err)
}
var doc map[string]any
if err := yaml.Unmarshal(data, &doc); err != nil {
log.Fatal(err)
}
g := &generator{byName: map[string]*entry{}}
g.walk(doc["categories"], "")
var b bytes.Buffer
b.WriteString("// Code generated by internal/gen from the SFZ format's syntax data; DO NOT EDIT.\n\npackage sfz\n\n")
b.WriteString("// headerData are the headers of the format.\nvar headerData = []HeaderInfo{\n")
for _, h := range asList(doc["headers"]) {
m := asMap(h)
dep, _ := m["deprecated"].(bool)
fmt.Fprintf(&b, "\t{Name: %s, Version: %s, Deprecated: %t, Description: %s},\n",
quote(str(m["name"])), quote(str(m["version"])), dep, quote(text(m["short_description"])))
}
b.WriteString("}\n\n// opcodeData are the opcodes of the format, with their aliases.\nvar opcodeData = []OpcodeInfo{\n")
seen := map[string]bool{}
count := 0
for _, e := range g.entries {
if seen[e.name] {
log.Printf("duplicate opcode %s", e.name)
continue
}
seen[e.name] = true
count++
typ := map[string]string{"integer": "TypeInteger", "float": "TypeFloat", "string": "TypeString"}[e.typeName]
if typ == "" {
typ = "TypeUnspecified"
}
note := e.typeName == "integer" && notes.MatchString(e.name)
fmt.Fprintf(&b, "\t{Name: %s, Aliases: %s, Version: %s, Deprecated: %t, Category: %s, Type: %s, Min: %s, Max: %s, Default: %s, Unit: %s, Options: %s, Note: %t, Description: %s},\n",
quote(e.name), strs(e.aliases), quote(e.version), e.deprecated, quote(e.category), typ, fl(e.min), fl(e.max),
quote(e.def), quote(e.unit), strs(e.options), note, quote(e.description))
}
b.WriteString("}\n")
src, err := format.Source(b.Bytes())
if err != nil {
os.WriteFile(*out, b.Bytes(), 0o644)
log.Fatal(err)
}
if err := os.WriteFile(*out, src, 0o644); err != nil {
log.Fatal(err)
}
log.Printf("wrote %d opcodes", count)
}
func strs(s []string) string {
if len(s) == 0 {
return "nil"
}
q := make([]string, len(s))
for i, v := range s {
q[i] = quote(v)
}
return "[]string{" + strings.Join(q, ", ") + "}"
}
File diff suppressed because it is too large Load Diff
+149
View File
@@ -0,0 +1,149 @@
package sfz
import (
"regexp"
"strings"
"unicode/utf8"
)
var (
// headerRE reads a header at the start of the text.
headerRE = regexp.MustCompile(`^<([A-Za-z_]+)>`)
// opcodeRE reads an opcode's name and = at the start of the text.
opcodeRE = regexp.MustCompile(`^([A-Za-z0-9_$]+)=`)
// defineRE reads a #define's variable and value, up to the end of its line.
defineRE = regexp.MustCompile(`^#define[ \t]+(\$[A-Za-z0-9_]+)[ \t]+([^\r\n]*)`)
// includeRE reads an #include's quoted path.
includeRE = regexp.MustCompile(`^#include[ \t]+"([^"\r\n]*)"`)
// breakRE finds where an opcode's value ends: at a header, the next
// opcode, a comment, or a directive after whitespace. Without one it runs
// to the end of its line, so it can hold spaces, as a sample's path can.
breakRE = regexp.MustCompile(`<[A-Za-z_]+>|[A-Za-z0-9_$]+=|//|/\*|\s#(?:define|include)\b`)
)
func isSpace(c byte) bool { return c == ' ' || c == '\t' || c == '\r' || c == '\n' }
func isNameChar(c byte) bool {
return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c >= '0' && c <= '9' || c == '_' || c == '$'
}
// lexer cuts text into nodes and keeps count of the position.
type lexer struct {
nodes []*Node
line int
// lineStart is the offset where the current line starts.
lineStart int
// pos is the offset the next node starts at.
pos int
}
// add appends a node for the text from the current position to end.
func (l *lexer) add(src string, end int, n *Node) {
n.Raw = src[l.pos:end]
n.Line, n.Col = l.line, l.pos-l.lineStart+1
if n.Kind == KindText && len(l.nodes) > 0 {
if last := l.nodes[len(l.nodes)-1]; last.Kind == KindText {
last.Raw += n.Raw
l.advance(src, end)
return
}
}
l.nodes = append(l.nodes, n)
l.advance(src, end)
}
// advance moves the position to end, counting the lines it passes.
func (l *lexer) advance(src string, end int) {
for i := l.pos; i < end; i++ {
if src[i] == '\n' {
l.line++
l.lineStart = i + 1
}
}
l.pos = end
}
// lex cuts text into nodes whose raw text, joined, is the text.
func lex(src string) []*Node {
l := &lexer{line: 1}
for l.pos < len(src) {
i := l.pos
rest := src[i:]
switch {
case isSpace(src[i]):
j := i
for j < len(src) && isSpace(src[j]) {
j++
}
l.add(src, j, &Node{Kind: KindSpace})
case strings.HasPrefix(rest, "//"):
j := len(src)
if e := strings.IndexByte(rest, '\n'); e >= 0 {
j = i + e
}
l.add(src, j, &Node{Kind: KindComment})
case strings.HasPrefix(rest, "/*"):
j := len(src)
if e := strings.Index(rest[2:], "*/"); e >= 0 {
j = i + 2 + e + 2
}
l.add(src, j, &Node{Kind: KindComment})
case src[i] == '<' && headerRE.MatchString(rest):
m := headerRE.FindStringSubmatch(rest)
l.add(src, i+len(m[0]), &Node{Kind: KindHeader, Name: m[1]})
case src[i] == '#' && (i == 0 || isSpace(src[i-1])) && l.directive(src):
case opcodeRE.MatchString(rest):
m := opcodeRE.FindStringSubmatch(rest)
valueStart := i + len(m[0])
lineEnd := len(src)
if e := strings.IndexByte(src[valueStart:], '\n'); e >= 0 {
lineEnd = valueStart + e
}
end := lineEnd
if loc := breakRE.FindStringIndex(src[valueStart:lineEnd]); loc != nil {
end = valueStart + loc[0]
}
for end > valueStart && isSpace(src[end-1]) {
end--
}
l.add(src, end, &Node{Kind: KindOpcode, Name: m[1], Value: strings.TrimSpace(src[valueStart:end])})
case isNameChar(src[i]):
j := i
for j < len(src) && isNameChar(src[j]) {
j++
}
l.add(src, j, &Node{Kind: KindText})
default:
_, size := utf8.DecodeRuneInString(rest)
l.add(src, i+size, &Node{Kind: KindText})
}
}
return l.nodes
}
// directive adds a #define or #include at the current position, and reports
// whether it was one that can be read.
func (l *lexer) directive(src string) bool {
rest := src[l.pos:]
if m := defineRE.FindStringSubmatch(rest); m != nil {
length := len(m[0])
// A comment ends the value.
valueStart := length - len(m[2])
if loc := commentRE.FindStringIndex(m[2]); loc != nil {
length = valueStart + loc[0]
}
for length > valueStart && isSpace(rest[length-1]) {
length--
}
l.add(src, l.pos+length, &Node{Kind: KindDefine, Name: m[1], Value: strings.TrimSpace(rest[valueStart:length])})
return true
}
if m := includeRE.FindStringSubmatch(rest); m != nil {
l.add(src, l.pos+len(m[0]), &Node{Kind: KindInclude, Value: m[1]})
return true
}
return false
}
// commentRE finds the start of a comment.
var commentRE = regexp.MustCompile(`//|/\*`)
+205
View File
@@ -0,0 +1,205 @@
package sfz
import (
"fmt"
"io"
"io/fs"
"path"
"regexp"
"strings"
)
// Resolver returns the contents of an included file. The path is relative to
// the folder of the main file, with forward slashes.
type Resolver func(path string) ([]byte, error)
// IncludeMode is what [Parse] does with an #include.
type IncludeMode int
// The include modes.
const (
// IncludesResolve reads each include. One that can't be read is reported
// as a [Problem] and left unresolved.
IncludesResolve IncludeMode = iota
// IncludesKeep reads no includes, and works out their paths only.
IncludesKeep
// IncludesFail reads each include, and returns [ErrUnresolved] for one
// that can't be read.
IncludesFail
)
// Limits bound what an instrument may make Parse do.
type Limits struct {
// MaxDepth is how deeply #include may nest. The main file is at depth 0.
MaxDepth int
// MaxBytes is how many bytes all the files together may hold.
MaxBytes int
}
// DefaultLimits are the limits [Parse] uses unless [WithLimits] says otherwise.
var DefaultLimits = Limits{MaxDepth: 16, MaxBytes: 16 << 20}
type parseConfig struct {
resolver Resolver
includes IncludeMode
limits Limits
}
// ParseOption changes how [Parse] works.
type ParseOption func(*parseConfig)
// WithResolver sets how includes are read. Without one, includes aren't read.
func WithResolver(r Resolver) ParseOption {
return func(c *parseConfig) { c.resolver = r }
}
// WithIncludes sets what to do with includes. The default is
// [IncludesResolve].
func WithIncludes(m IncludeMode) ParseOption {
return func(c *parseConfig) { c.includes = m }
}
// WithLimits sets the limits. A field that is 0 uses its default.
func WithLimits(l Limits) ParseOption {
return func(c *parseConfig) {
if l.MaxDepth > 0 {
c.limits.MaxDepth = l.MaxDepth
}
if l.MaxBytes > 0 {
c.limits.MaxBytes = l.MaxBytes
}
}
}
// Parse reads an instrument from r, and its includes with the resolver.
func Parse(r io.Reader, opts ...ParseOption) (*Document, error) {
data, err := io.ReadAll(r)
if err != nil {
return nil, err
}
return parse("", data, opts)
}
// ParseFile reads the instrument whose main file is name in fsys, and its
// includes from the folder of the main file. [WithResolver] overrides how
// includes are read.
func ParseFile(fsys fs.FS, name string, opts ...ParseOption) (*Document, error) {
data, err := fs.ReadFile(fsys, name)
if err != nil {
return nil, err
}
dir := path.Dir(name)
read := func(p string) ([]byte, error) { return fs.ReadFile(fsys, path.Join(dir, p)) }
opts = append([]ParseOption{WithResolver(read)}, opts...)
return parse(path.Base(name), data, opts)
}
// Includes returns the files that an SFZ file includes directly, with the
// variables it defines itself substituted, in the order they first appear. The
// paths are relative to the folder of the main file. Includes that an
// included file makes aren't followed.
func Includes(text []byte) []string {
doc, err := parse("", text, []ParseOption{WithIncludes(IncludesKeep)})
if err != nil {
return nil
}
var found []string
seen := map[string]bool{}
for _, n := range doc.Root.Nodes {
if n.Kind == KindInclude && !seen[n.Resolved] {
seen[n.Resolved] = true
found = append(found, n.Resolved)
}
}
return found
}
// parser reads a document's files, keeping the variables defined so far.
type parser struct {
parseConfig
defines map[string]string
// including holds the files being read, to refuse an include loop.
including []string
bytes int
problems []Problem
}
func parse(name string, data []byte, opts []ParseOption) (*Document, error) {
p := &parser{parseConfig: parseConfig{limits: DefaultLimits}, defines: map[string]string{}}
for _, o := range opts {
o(&p.parseConfig)
}
root, err := p.file(name, data, 0)
if err != nil {
return nil, err
}
return &Document{Root: root, problems: p.problems}, nil
}
// file lexes a file and reads the directives in it, in order.
func (p *parser) file(name string, data []byte, depth int) (*File, error) {
if depth > p.limits.MaxDepth {
return nil, fmt.Errorf("%w: includes nest more than %d deep at %s", ErrInvalid, p.limits.MaxDepth, name)
}
for _, f := range p.including {
if f == name {
return nil, fmt.Errorf("%w: %w: %s includes itself", ErrInvalid, ErrIncludeLoop, name)
}
}
p.bytes += len(data)
if p.bytes > p.limits.MaxBytes {
return nil, fmt.Errorf("%w: the instrument's text is longer than %d MB", ErrInvalid, p.limits.MaxBytes>>20)
}
p.including = append(p.including, name)
defer func() { p.including = p.including[:len(p.including)-1] }()
f := &File{Path: name, Nodes: lex(string(data))}
for _, n := range f.Nodes {
switch n.Kind {
case KindDefine:
p.defines[n.Name] = strings.TrimSpace(substitute(p.defines, n.Value))
case KindInclude:
n.Resolved = path.Clean(strings.ReplaceAll(substitute(p.defines, n.Value), `\`, "/"))
if p.includes == IncludesKeep || p.resolver == nil {
continue
}
child, err := p.resolver(n.Resolved)
if err != nil {
if p.includes == IncludesFail {
return nil, fmt.Errorf("%w: %s: %w", ErrUnresolved, n.Resolved, err)
}
p.problems = append(p.problems, Problem{
File: name, Line: n.Line, Col: n.Col, Severity: SeverityWarning,
Code: "include.unresolved", Msg: fmt.Sprintf("can't read %s: %v", n.Resolved, err),
})
continue
}
if n.File, err = p.file(n.Resolved, child, depth+1); err != nil {
return nil, err
}
}
}
return f, nil
}
// variableRE finds a $ and the run of name characters after it. Only the start
// of the run may be the name of a variable (see substitute).
var variableRE = regexp.MustCompile(`\$[A-Za-z0-9_]+`)
// substitute replaces the variables defined so far in text. A variable's name
// ends at the shortest run of characters that is a defined name, so in
// $MIC_$ART the underscore is text between $MIC and $ART, as in ARIA. A
// variable that isn't defined is left as it is.
func substitute(defines map[string]string, text string) string {
if !strings.Contains(text, "$") {
return text
}
return variableRE.ReplaceAllStringFunc(text, func(run string) string {
for end := 2; end <= len(run); end++ {
if value, ok := defines[run[:end]]; ok {
return value + run[end:]
}
}
return run
})
}
+192
View File
@@ -0,0 +1,192 @@
package sfz
//go:generate go run -C internal/gen . -in syntax.yml -out ../../registry_data.go
import (
"iter"
"regexp"
"strings"
"sync"
)
// ValueType is the kind of value an opcode takes.
type ValueType int
// The value types.
const (
// TypeUnspecified is for an opcode whose value the format doesn't describe.
TypeUnspecified ValueType = iota
TypeString
TypeInteger
TypeFloat
)
// String returns the type's name.
func (t ValueType) String() string {
switch t {
case TypeString:
return "string"
case TypeInteger:
return "integer"
case TypeFloat:
return "float"
}
return "unspecified"
}
// HeaderInfo describes a header of the format.
type HeaderInfo struct {
// Name is the header's name without its brackets.
Name string
// Version is the first SFZ version or player that has it: "SFZ v1", "SFZ v2",
// "ARIA", and so on.
Version string
Deprecated bool
Description string
}
// OpcodeInfo describes an opcode of the format. A name that stands for a
// family has uppercase placeholders: N and X stand for a number, as in
// loccN and egN_timeX, and * for any name, as in hint_*.
type OpcodeInfo struct {
// Name is the opcode's own name.
Name string
// Aliases are other names for it.
Aliases []string
// Version is the first SFZ version or player that has it: "SFZ v1", "SFZ
// v2", "ARIA", "sfizz", "Calfbox" or "LinuxSampler".
Version string
Deprecated bool
// Category is where the format lists it, such as "Performance Parameters /
// Amplifier".
Category string
Type ValueType
// Min and Max bound a numeric value, or are nil where the format gives no
// bound it can state as a number.
Min, Max *float64
// Default is the format's description of the default, which is for
// reading and not always a value.
Default string
// Unit is the value's unit, such as "seconds" or "cents".
Unit string
// Options are the values a string opcode may take, if it has a fixed set.
Options []string
// Note is whether an integer opcode also takes a note name, such as c4.
Note bool
Description string
}
// matcher finds the registry entry for an opcode name.
type matcher struct {
re *regexp.Regexp
info *OpcodeInfo
}
var (
registryOnce sync.Once
byName map[string]*OpcodeInfo
patterns []matcher
headerByName map[string]*HeaderInfo
)
// patternRE reads a name's placeholders: a run of N and X letters, or a *.
var patternRE = regexp.MustCompile(`[NX]+|\*`)
// pattern returns the expression that matches the names a family name stands
// for, or nil if the name is a single opcode's.
func pattern(name string) *regexp.Regexp {
locs := patternRE.FindAllStringIndex(name, -1)
if locs == nil {
return nil
}
var b strings.Builder
b.WriteString("^")
last := 0
for _, loc := range locs {
b.WriteString(regexp.QuoteMeta(name[last:loc[0]]))
if name[loc[0]] == '*' {
b.WriteString("[a-z0-9_]+")
} else {
b.WriteString("[0-9]+")
}
last = loc[1]
}
b.WriteString(regexp.QuoteMeta(name[last:]))
b.WriteString("$")
return regexp.MustCompile(b.String())
}
func loadRegistry() {
registryOnce.Do(func() {
byName = map[string]*OpcodeInfo{}
headerByName = map[string]*HeaderInfo{}
for i := range headerData {
headerByName[headerData[i].Name] = &headerData[i]
}
var wild []matcher
for i := range opcodeData {
info := &opcodeData[i]
for _, name := range append([]string{info.Name}, info.Aliases...) {
re := pattern(name)
switch {
case re == nil:
byName[name] = info
case strings.Contains(name, "*"):
wild = append(wild, matcher{re, info})
default:
patterns = append(patterns, matcher{re, info})
}
}
}
patterns = append(patterns, wild...)
})
}
// Lookup returns what the format says about an opcode, found by its name or
// one of its aliases. The info is the same for each name of the opcode, and
// its Name is the opcode's own.
func Lookup(name string) (OpcodeInfo, bool) {
loadRegistry()
if info, ok := byName[name]; ok {
return *info, true
}
for _, m := range patterns {
if m.re.MatchString(name) {
return *m.info, true
}
}
return OpcodeInfo{}, false
}
// KnownOpcodes returns every opcode of the format, in the order of its listing.
func KnownOpcodes() iter.Seq[OpcodeInfo] {
return func(yield func(OpcodeInfo) bool) {
for _, info := range opcodeData {
if !yield(info) {
return
}
}
}
}
// KnownHeaders returns every header of the format.
func KnownHeaders() iter.Seq[HeaderInfo] {
return func(yield func(HeaderInfo) bool) {
for _, h := range headerData {
if !yield(h) {
return
}
}
}
}
// LookupHeader returns what the format says about a header, given its name
// without brackets, in any case.
func LookupHeader(name string) (HeaderInfo, bool) {
loadRegistry()
h, ok := headerByName[strings.ToLower(name)]
if !ok {
return HeaderInfo{}, false
}
return *h, true
}
+754
View File
@@ -0,0 +1,754 @@
// Code generated by internal/gen from the SFZ format's syntax data; DO NOT EDIT.
package sfz
// headerData are the headers of the format.
var headerData = []HeaderInfo{
{Name: "region", Version: "SFZ v1", Deprecated: false, Description: "The basic component of an instrument. An instrument is defined by one or more regions."},
{Name: "group", Version: "SFZ v1", Deprecated: false, Description: "Multiple regions can be arranged in a group. Groups allow entering common parameters for multiple regions."},
{Name: "control", Version: "SFZ v2", Deprecated: false, Description: ""},
{Name: "global", Version: "SFZ v2", Deprecated: false, Description: "Allows entering parameters which are common for all regions."},
{Name: "curve", Version: "SFZ v2", Deprecated: false, Description: "A header for defining curves for MIDI CC controls."},
{Name: "effect", Version: "SFZ v2", Deprecated: false, Description: "SFZ v2 header for effects controls."},
{Name: "master", Version: "ARIA", Deprecated: false, Description: "An intermediate level in the header hierarchy, between global and group."},
{Name: "midi", Version: "ARIA", Deprecated: true, Description: "ARIA extension, was added for MIDI pre-processor effects. From ARIA v1.0.8.0+ an <effect> section with a bus=midi can be used instead."},
{Name: "sample", Version: "SFZ v2", Deprecated: false, Description: "Allows to embed sample data directly in SFZ files (Rapture)."},
}
// opcodeData are the opcodes of the format, with their aliases.
var opcodeData = []OpcodeInfo{
{Name: "script", Aliases: nil, Version: "LinuxSampler", Deprecated: false, Category: "Real-Time Instrument Script", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Allows to load real-time instrument scripts for SFZ instruments."},
{Name: "count", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(4.294967296e+09)), Default: "", Unit: "", Options: nil, Note: false, Description: "The number of times the sample will be played."},
{Name: "delay", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Region delay time."},
{Name: "delay_ccN", Aliases: []string{"delay_onccN"}, Version: "SFZ v1", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Region delay time after MIDI continuous controller N messages are received. If the region receives a note-off message before delay time, the region won't play."},
{Name: "delay_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate delay."},
{Name: "delay_random", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Region random delay time."},
{Name: "delay_samples", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeInteger, Min: nil, Max: nil, Default: "", Unit: "sample units", Options: nil, Note: false, Description: "Allows the region playback to be postponed for the specified time, measured in samples (and therefore dependent on current sample rate)."},
{Name: "delay_samples_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeInteger, Min: nil, Max: nil, Default: "", Unit: "sample units", Options: nil, Note: false, Description: ""},
{Name: "end", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(4.294967296e+09)), Default: "unspecified", Unit: "sample units", Options: nil, Note: false, Description: "The endpoint of the sample. If unspecified, the entire sample will play."},
{Name: "loop_count", Aliases: []string{"loopcount"}, Version: "SFZ v2", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeInteger, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "The number of times a loop will repeat."},
{Name: "loop_crossfade", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Loop cross fade."},
{Name: "loop_end", Aliases: []string{"loopend"}, Version: "SFZ v1", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(4.294967296e+09)), Default: "", Unit: "sample units", Options: nil, Note: false, Description: "The loop end point, in samples."},
{Name: "loop_lengthccN", Aliases: []string{"loop_length_onccN"}, Version: "SFZ v2", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Change of loop end point."},
{Name: "loop_mode", Aliases: []string{"loopmode"}, Version: "SFZ v1", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeString, Min: nil, Max: nil, Default: "no_loop for samples without a loop defined, loop_continuous for samples with defined loop(s).", Unit: "", Options: []string{"no_loop", "one_shot", "loop_continuous", "loop_sustain"}, Note: false, Description: "Allows playing samples with loops defined in the unlooped mode."},
{Name: "loop_start", Aliases: []string{"loopstart"}, Version: "SFZ v1", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(4.294967296e+09)), Default: "", Unit: "sample units", Options: nil, Note: false, Description: "The loop start point, in samples."},
{Name: "loop_startccN", Aliases: []string{"loop_start_onccN"}, Version: "SFZ v2", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Change of loop start point."},
{Name: "loop_tune", Aliases: []string{"looptune"}, Version: "SFZ v2", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "cents", Options: nil, Note: false, Description: "Tuning for only the loop segment."},
{Name: "loop_type", Aliases: []string{"looptype"}, Version: "SFZ v2", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeString, Min: nil, Max: nil, Default: "forward", Unit: "", Options: []string{"forward", "backward", "alternate"}, Note: false, Description: "Defines the looping mode."},
{Name: "offset", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(4.294967296e+09)), Default: "", Unit: "sample units", Options: nil, Note: false, Description: "The offset used to play the sample."},
{Name: "offset_ccN", Aliases: []string{"offset_onccN"}, Version: "SFZ v1", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(4.294967296e+09)), Default: "", Unit: "sample units", Options: nil, Note: false, Description: "The offset used to play the sample according to last position of MIDI continuous controller N."},
{Name: "offset_random", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(4.294967296e+09)), Default: "", Unit: "sample units", Options: nil, Note: false, Description: "Random offset added to the region offset."},
{Name: "offset_mode", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeString, Min: nil, Max: nil, Default: "samples", Unit: "", Options: []string{"samples", "percent"}, Note: false, Description: "Defines whether offset is measured in samples or percentage of sample length."},
{Name: "sample", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Defines which sample file the region will play."},
{Name: "sample_fadeout", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Number of seconds before the end of sample playback that the player should begin a realtime fadeout."},
{Name: "sample_dyn_paramN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "ARIA-specific nameless destination for plugin modulations."},
{Name: "sample_dyn_paramN_onccX", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "sync_beats", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(32)), Default: "", Unit: "beats", Options: nil, Note: false, Description: "Region playing synchronization to host position."},
{Name: "sync_offset", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(32)), Default: "", Unit: "beats", Options: nil, Note: false, Description: "Region playing synchronization to host position offset."},
{Name: "delay_beats", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "beats", Options: nil, Note: false, Description: "Delays the start of the region until a certain amount of musical beats are passed."},
{Name: "delay_beats_onccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_beats_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate delay_beats."},
{Name: "delay_beats_random", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "beats", Options: nil, Note: false, Description: "Delays the start of the region after a random amount of musical beats."},
{Name: "stop_beats", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "beats", Options: nil, Note: false, Description: "Stops a region after a certain amount of beats have played."},
{Name: "direction", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeString, Min: nil, Max: nil, Default: "forward", Unit: "", Options: []string{"forward", "reverse"}, Note: false, Description: "The direction in which the sample is to be played."},
{Name: "md5", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeString, Min: nil, Max: nil, Default: "null", Unit: "", Options: nil, Note: false, Description: "Calculates the MD5 digital fingerprint hash of a sample file, represented as a sequence of 32 hexadecimal digits."},
{Name: "reverse_loccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "If MIDI CC N is between reverse_loccN and reverse_hiccN, the region plays reversed."},
{Name: "reverse_hiccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "If MIDI CC N is between reverse_loccN and reverse_hiccN, the region plays reversed."},
{Name: "waveguide", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Sound Source / Sample Playback", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: []string{"on", "off"}, Note: false, Description: "Enables waveguide synthesis for the region."},
{Name: "default_path", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Instrument Settings", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Default file path."},
{Name: "note_offset", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Instrument Settings", Type: TypeInteger, Min: ptr(float64(-127)), Max: ptr(float64(127)), Default: "", Unit: "semitones", Options: nil, Note: false, Description: "MIDI note transpose; tells the SFZ player to offset all incoming MIDI notes by the specified number of semitones."},
{Name: "octave_offset", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Instrument Settings", Type: TypeInteger, Min: ptr(float64(-10)), Max: ptr(float64(10)), Default: "", Unit: "octaves", Options: nil, Note: false, Description: "MIDI octave transpose; tells the SFZ player to offset all incoming MIDI notes by the specified number of octaves."},
{Name: "label_ccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Instrument Settings", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Creates a label for the MIDI CC."},
{Name: "label_keyN", Aliases: nil, Version: "sfizz", Deprecated: false, Category: "Instrument Settings", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Creates a label for a key."},
{Name: "label_outputN", Aliases: nil, Version: "Calfbox", Deprecated: false, Category: "Instrument Settings", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Creates a label for the output N."},
{Name: "set_ccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Instrument Settings", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Sets a default initial value for MIDI CC number N, when the instrument is initially loaded."},
{Name: "hint_*", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Instrument Settings", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Its a 'hint' to the ARIA engine, others implementations don't have to follow."},
{Name: "*_mod", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Instrument Settings", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: []string{"add", "mult"}, Note: false, Description: "Determines whether a parameter is modulated by addition or multiplication."},
{Name: "set_hdccN", Aliases: []string{"set_realccN"}, Version: "ARIA", Deprecated: false, Category: "Instrument Settings", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Like set_ccN but with floating point MIDI CCs."},
{Name: "sw_note_offset", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Instrument Settings", Type: TypeInteger, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Follows the same logic as SFZ 2.0’s note_offset but for key switches."},
{Name: "sw_octave_offset", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Instrument Settings", Type: TypeInteger, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Follows the same logic as SFZ 2.0’s octave_offset but for key switches."},
{Name: "loop_end_offset", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Instrument Settings", Type: TypeInteger, Min: ptr(float64(-1)), Max: ptr(float64(0)), Default: "", Unit: "", Options: nil, Note: false, Description: "Subtracts 1 from sample numbers in file metadata, as a workaround for incorrectly generated loop points."},
{Name: "global_label", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Instrument Settings", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "An ARIA extension which sets what is displayed in the default info tab of Sforzando."},
{Name: "master_label", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Instrument Settings", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "An ARIA extension which sets what is displayed in the default info tab of Sforzando."},
{Name: "group_label", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Instrument Settings", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "An ARIA extension which sets what is displayed in the default info tab of Sforzando."},
{Name: "region_label", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Instrument Settings", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "An ARIA extension which sets what is displayed in the default info tab of Sforzando."},
{Name: "group", Aliases: []string{"polyphony_group"}, Version: "SFZ v1", Deprecated: false, Category: "Instrument Settings / Voice Lifecycle", Type: TypeInteger, Min: ptr(float64(-2.147483648e+09)), Max: ptr(float64(2.147483647e+09)), Default: "", Unit: "", Options: nil, Note: false, Description: "Exclusive group number for this region."},
{Name: "off_by", Aliases: []string{"offby"}, Version: "SFZ v1", Deprecated: false, Category: "Instrument Settings / Voice Lifecycle", Type: TypeInteger, Min: ptr(float64(-2.147483648e+09)), Max: ptr(float64(2.147483647e+09)), Default: "", Unit: "", Options: nil, Note: false, Description: "Region off group."},
{Name: "off_mode", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Instrument Settings / Voice Lifecycle", Type: TypeString, Min: nil, Max: nil, Default: "fast", Unit: "", Options: []string{"fast", "normal", "time"}, Note: false, Description: "Region off mode."},
{Name: "output", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Instrument Settings / Voice Lifecycle", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(1024)), Default: "", Unit: "", Options: nil, Note: false, Description: "The stereo output number for this region."},
{Name: "polyphony", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Instrument Settings / Voice Lifecycle", Type: TypeInteger, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Polyphony voice limit."},
{Name: "note_polyphony", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Instrument Settings / Voice Lifecycle", Type: TypeInteger, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Polyphony limit for playing the same note repeatedly."},
{Name: "polyphony_stealing", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Instrument Settings / Voice Lifecycle", Type: TypeInteger, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "note_selfmask", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Instrument Settings / Voice Lifecycle", Type: TypeString, Min: nil, Max: nil, Default: "on", Unit: "", Options: []string{"on", "off"}, Note: false, Description: "Controls note-stealing behavior for a single pitch, when using note_polyphony."},
{Name: "rt_dead", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Instrument Settings / Voice Lifecycle", Type: TypeString, Min: nil, Max: nil, Default: "off", Unit: "", Options: []string{"on", "off"}, Note: false, Description: "Controls whether a release sample should play if its sustain sample has ended, or not."},
{Name: "off_curve", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Instrument Settings / Voice Lifecycle", Type: TypeInteger, Min: ptr(float64(-2)), Max: ptr(float64(10)), Default: "", Unit: "", Options: []string{"-2", "-1", "0", "1", "2", "10"}, Note: false, Description: "When off_mode is set to time, this specifies the math to be used to fade out the regions being muted by voice-stealing."},
{Name: "off_shape", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Instrument Settings / Voice Lifecycle", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "The coefficient used by off_curve."},
{Name: "off_time", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Instrument Settings / Voice Lifecycle", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "When off_mode is set to time, this specifies the fadeout time for regions being muted by voice-stealing."},
{Name: "key", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Key Mapping", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: true, Description: "Equivalent to using lokey, hikey and pitch_keycenter and setting them all to the same note value."},
{Name: "lokey", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Key Mapping", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: true, Description: "Determine the low boundary of a certain region."},
{Name: "hikey", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Key Mapping", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: true, Description: "Determine the high boundary of a certain region."},
{Name: "lovel", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Key Mapping", Type: TypeInteger, Min: ptr(float64(1)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "If a note with velocity value equal to or higher than lovel AND equal to or lower than hivel is played, the region will play."},
{Name: "hivel", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Key Mapping", Type: TypeInteger, Min: ptr(float64(1)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "If a note with velocity value equal to or higher than lovel AND equal to or lower than hivel is played, the region will play."},
{Name: "lochan", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(1)), Max: ptr(float64(16)), Default: "", Unit: "", Options: nil, Note: false, Description: "If incoming notes have a MIDI channel between lochan and hichan, the region will play."},
{Name: "hichan", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(1)), Max: ptr(float64(16)), Default: "", Unit: "", Options: nil, Note: false, Description: "If incoming notes have a MIDI channel between lochan and hichan, the region will play."},
{Name: "loccN", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Defines the range of the last MIDI controller N required for the region to play."},
{Name: "hiccN", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Defines the range of the last MIDI controller N required for the region to play."},
{Name: "lobend", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(-8192)), Max: ptr(float64(8192)), Default: "", Unit: "", Options: nil, Note: false, Description: "Defines the range of the last Pitch Bend message required for the region to play."},
{Name: "hibend", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(-8192)), Max: ptr(float64(8192)), Default: "", Unit: "", Options: nil, Note: false, Description: "Defines the range of the last Pitch Bend message required for the region to play."},
{Name: "sostenuto_cc", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Reassigns the sostenuto pedal CC to a non-standard value."},
{Name: "sostenuto_lo", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Sets the minimum point at which the sostenuto pedal (MIDI CC 66) is considered 'down'."},
{Name: "sostenuto_sw", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: []string{"on", "off"}, Note: false, Description: "Turns the sostenuto switch on or off."},
{Name: "sustain_cc", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Reassigns the sustain pedal CC to a non-standard value."},
{Name: "sustain_lo", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Sets the minimum point at which the sustain pedal (MIDI CC 64) is considered 'down'."},
{Name: "sustain_sw", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: []string{"on", "off"}, Note: false, Description: "Turns the sustain switch on or off."},
{Name: "sw_lokey", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: true, Description: "Defines the range of the keyboard to be used as trigger selectors for the sw_last opcode."},
{Name: "sw_hikey", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: true, Description: "Defines the range of the keyboard to be used as trigger selectors for the sw_last opcode."},
{Name: "sw_last", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: true, Description: "Enables the region to play if the last key pressed in the range specified by sw_lokey and sw_hikey is equal to the sw_last value."},
{Name: "sw_down", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: true, Description: "Enables the region to play if the key equal to sw_down value is depressed. Key has to be in the range specified by sw_lokey and sw_hikey."},
{Name: "sw_up", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: true, Description: "Enables the region to play if the key equal to sw_up value is not depressed."},
{Name: "sw_previous", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: true, Description: "Previous note value. The region will play if last note-on message was equal to sw_previous value."},
{Name: "sw_vel", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeString, Min: nil, Max: nil, Default: "current", Unit: "", Options: []string{"current", "previous"}, Note: false, Description: "Allows overriding the velocity for the region with the velocity of the previous note."},
{Name: "loprog", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "The region plays when the MIDI program number is between loprog and hiprog."},
{Name: "hiprog", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "The region plays when the MIDI program number is between loprog and hiprog."},
{Name: "lohdccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Like loccN but with floating point MIDI CCs"},
{Name: "hihdccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Like hiccN but with floating point MIDI CCs"},
{Name: "sw_default", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: true, Description: "Define keyswitch 'power on default' so that you hear something when a patch loads."},
{Name: "sw_label", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Label for activated keyswitch on GUI."},
{Name: "sw_lolast", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Like sw_last, but allowing a region to be triggered across a range of keyswitches."},
{Name: "sw_hilast", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Like sw_last, but allowing a region to be triggered across a range of keyswitches."},
{Name: "varNN_mod", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: []string{"mult", "add"}, Note: false, Description: "Specifies the method used to calculate variable number NN from MIDI CCs."},
{Name: "varNN_onccX", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the method used to calculate variable number NN from MIDI CCs."},
{Name: "varNN_curveccX", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC X uses to modulate varNN."},
{Name: "varNN_*", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Region Logic / MIDI Conditions", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the target for variable NN to modulate."},
{Name: "lobpm", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Internal Conditions", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(500)), Default: "", Unit: "bpm", Options: nil, Note: false, Description: "Host tempo value."},
{Name: "hibpm", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Internal Conditions", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(500)), Default: "", Unit: "bpm", Options: nil, Note: false, Description: "Host tempo value."},
{Name: "lochanaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Internal Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Defines the range of last Channel Aftertouch message required for the region to play."},
{Name: "hichanaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Internal Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Defines the range of last Channel Aftertouch message required for the region to play."},
{Name: "lopolyaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Internal Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Defines the range of last Polyphonic Aftertouch message required for the region to play."},
{Name: "hipolyaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Internal Conditions", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Defines the range of last Polyphonic Aftertouch message required for the region to play."},
{Name: "lorand", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Internal Conditions", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "The region will play if the random number is equal to or higher than lorand, and lower than hirand."},
{Name: "hirand", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Internal Conditions", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "The region will play if the random number is equal to or higher than lorand, and lower than hirand."},
{Name: "seq_length", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Internal Conditions", Type: TypeInteger, Min: ptr(float64(1)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: "Sequence length, used together with seq_position to use samples as round robins."},
{Name: "seq_position", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Internal Conditions", Type: TypeInteger, Min: ptr(float64(1)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: "Sequence position. The region will play if the internal sequence counter is equal to seq_position."},
{Name: "lotimer", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Region Logic / Internal Conditions", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Region plays if the time passed since the last sample in the same group played is between lotimer and hitimer."},
{Name: "hitimer", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Region Logic / Internal Conditions", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Region plays if timer is between lotimer and hitimer."},
{Name: "trigger", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Triggers", Type: TypeString, Min: nil, Max: nil, Default: "attack", Unit: "", Options: []string{"attack", "release", "first", "legato", "release_key"}, Note: false, Description: "Sets the trigger which will be used for the sample to play."},
{Name: "on_loccN", Aliases: []string{"start_loccN"}, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Triggers", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "If a MIDI control message with a value between on_loccN and on_hiccN is received, the region will play. Default value is -1, it means unassigned."},
{Name: "on_hiccN", Aliases: []string{"start_hiccN"}, Version: "SFZ v1", Deprecated: false, Category: "Region Logic / Triggers", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "If a MIDI control message with a value between on_loccN and on_hiccN is received, the region will play. Default value is -1, it means unassigned."},
{Name: "on_lohdccN", Aliases: []string{"start_lohdccN"}, Version: "ARIA", Deprecated: false, Category: "Region Logic / Triggers", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Like on_loccN but with floating point MIDI CCs."},
{Name: "on_hihdccN", Aliases: []string{"start_hihdccN"}, Version: "ARIA", Deprecated: false, Category: "Region Logic / Triggers", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Like on_hiccN but with floating point MIDI CCs."},
{Name: "stop_loccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Region Logic / Triggers", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "If a MIDI control message with a value between stop_loccN and stop_hiccN is received, the region will stop playing. Default value is -1, it means unassigned."},
{Name: "stop_hiccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Region Logic / Triggers", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "If a MIDI control message with a value between stop_loccN and stop_hiccN is received, the region will stop playing. Default value is -1, it means unassigned."},
{Name: "stop_lohdccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Region Logic / Triggers", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Like stop_loccN but with floating point MIDI CCs."},
{Name: "stop_hihdccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Region Logic / Triggers", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Like stop_hiccN but with floating point MIDI CCs."},
{Name: "pan", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "The panoramic position for the region."},
{Name: "pan_onccN", Aliases: []string{"pan_ccN"}, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "pan_curveccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate pan."},
{Name: "pan_smoothccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "pan_stepccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "pan_random", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Random panoramic position for the region."},
{Name: "position", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Only operational for stereo samples, position defines the position in the stereo field of a stereo signal, after channel mixing as defined in the width opcode."},
{Name: "position_onccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "position_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate position."},
{Name: "position_smoothccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "position_stepccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "position_random", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: ""},
{Name: "position_keycenter", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "position_keytrack", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "position_veltrack", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(-200)), Max: ptr(float64(200)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "volume", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(-144)), Max: ptr(float64(6)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "The volume for the region, in decibels."},
{Name: "gain_ccN", Aliases: []string{"gain_onccN", "volume_onccN"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(-144)), Max: ptr(float64(48)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "Gain applied on MIDI control N, in decibels."},
{Name: "volume_curveccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate volume."},
{Name: "volume_smoothccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "volume_stepccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "width", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Only operational for stereo samples, width defines the amount of channel mixing applied to play the sample."},
{Name: "width_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "width_curveccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate width."},
{Name: "width_smoothccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "width_stepccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "amp_keycenter", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Center key for amplifier keyboard tracking. In this key, the amplifier keyboard tracking will have no effect."},
{Name: "amp_keytrack", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(-96)), Max: ptr(float64(12)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "Amplifier keyboard tracking (change in amplitude per key) in decibels."},
{Name: "amp_veltrack", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Amplifier velocity tracking, represents how much the amplitude changes with incoming note velocity."},
{Name: "amp_veltrack_onccN", Aliases: []string{"amp_veltrack_ccN"}, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "amp_veltrack_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate amp_veltrack."},
{Name: "amp_veltrack_random", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "amp_velcurve_N", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "Standard curve (see amp_veltrack)", Unit: "", Options: nil, Note: false, Description: "User-defined amplifier velocity curve."},
{Name: "amp_random", Aliases: []string{"gain_random"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(24)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "Random volume for the region, in decibels."},
{Name: "rt_decay", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(200)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "Applies only to regions that triggered through trigger=release. The volume decrease (in decibels) per seconds after the corresponding attack region was triggered."},
{Name: "rt_decayN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(200)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "Applies only to regions that triggered through trigger=release. The volume decrease (in decibels) per seconds after the corresponding attack region was triggered, for decrease curve segment number N."},
{Name: "rt_decayN_time", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "seconds", Options: nil, Note: false, Description: "The duration of release sample volue decrease curve segment number N."},
{Name: "xf_cccurve", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeString, Min: nil, Max: nil, Default: "power", Unit: "", Options: []string{"gain", "power"}, Note: false, Description: "MIDI controllers crossfade curve for the region."},
{Name: "xf_keycurve", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeString, Min: nil, Max: nil, Default: "power", Unit: "", Options: []string{"gain", "power"}, Note: false, Description: "Keyboard crossfade curve for the region."},
{Name: "xf_velcurve", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeString, Min: nil, Max: nil, Default: "power", Unit: "", Options: []string{"gain", "power"}, Note: false, Description: "Velocity crossfade curve for the region."},
{Name: "xfin_loccN", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Fade in control based on MIDI CC."},
{Name: "xfin_hiccN", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Fade in control based on MIDI CC."},
{Name: "xfout_loccN", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Fade out control based on MIDI CC."},
{Name: "xfout_hiccN", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Fade out control based on MIDI CC."},
{Name: "xfin_lokey", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: true, Description: "Fade in control based on MIDI note (keyboard position)."},
{Name: "xfin_hikey", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: true, Description: "Fade in control based on MIDI note (keyboard position)."},
{Name: "xfout_lokey", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: true, Description: "Fade out control based on MIDI note number (keyboard position)."},
{Name: "xfout_hikey", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: true, Description: "Fade out control based on MIDI note number (keyboard position)."},
{Name: "xfin_lovel", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Fade in control based on velocity."},
{Name: "xfin_hivel", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Fade in control based on velocity."},
{Name: "xfout_lovel", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Fade out control, based on velocity."},
{Name: "xfout_hivel", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Fade out control, based on velocity."},
{Name: "phase", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeString, Min: nil, Max: nil, Default: "normal", Unit: "", Options: []string{"normal", "invert"}, Note: false, Description: "If invert is set, the region is played with inverted phase."},
{Name: "amplitude", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Amplitude for the specified region in percentage of full amplitude."},
{Name: "amplitude_onccN", Aliases: []string{"amplitude_ccN"}, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: ""},
{Name: "amplitude_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate amplitude."},
{Name: "amplitude_smoothccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "global_amplitude", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "ARIA extension, like amplitude, but affecting everything when set under the <global> header."},
{Name: "master_amplitude", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "ARIA extension, like amplitude, but affecting everything when set under the <master> header."},
{Name: "group_amplitude", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "ARIA extension, like amplitude, but affecting everything when set under the <group> header."},
{Name: "pan_law", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: []string{"mma", "balance"}, Note: false, Description: "Sets the pan law to be used."},
{Name: "pan_keycenter", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Center key for pan keyboard tracking."},
{Name: "pan_keytrack", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "The amount by which the panning of a note is shifted with each key."},
{Name: "pan_veltrack", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "The effect of note velocity on panning."},
{Name: "global_volume", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(-144)), Max: ptr(float64(6)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "ARIA extension, like volume, but affecting everything when set under the <global> header."},
{Name: "master_volume", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(-144)), Max: ptr(float64(6)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "ARIA extension, like volume, but affecting everything when set under the <master> header."},
{Name: "group_volume", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Amplifier", Type: TypeFloat, Min: ptr(float64(-144)), Max: ptr(float64(6)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "ARIA extension, like volume, but affecting everything when set under the <group> header."},
{Name: "eqN_bw", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / EQ", Type: TypeFloat, Min: ptr(float64(0.001)), Max: ptr(float64(4)), Default: "", Unit: "octaves", Options: nil, Note: false, Description: "Bandwidth of the equalizer band, in octaves."},
{Name: "eqN_bwccX", Aliases: []string{"eqN_bw_onccX"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / EQ", Type: TypeFloat, Min: ptr(float64(-4)), Max: ptr(float64(4)), Default: "", Unit: "octaves", Options: nil, Note: false, Description: ""},
{Name: "eqN_freq", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / EQ", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(30000)), Default: "eq1_freq=50eq2_freq=500eq3_freq=5000", Unit: "Hz", Options: nil, Note: false, Description: "Frequency of the equalizer band, in Hertz."},
{Name: "eqN_freqccX", Aliases: []string{"eqN_freq_onccX"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / EQ", Type: TypeFloat, Min: ptr(float64(-30000)), Max: ptr(float64(30000)), Default: "", Unit: "Hz", Options: nil, Note: false, Description: ""},
{Name: "eqN_vel2freq", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / EQ", Type: TypeFloat, Min: ptr(float64(-30000)), Max: ptr(float64(30000)), Default: "", Unit: "Hz", Options: nil, Note: false, Description: "Frequency change of the equalizer band with MIDI velocity, in Hertz."},
{Name: "eqN_gain", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / EQ", Type: TypeFloat, Min: ptr(float64(-96)), Max: ptr(float64(24)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "Gain of the equalizer band, in decibels."},
{Name: "eqN_gainccX", Aliases: []string{"eqN_gain_onccX"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / EQ", Type: TypeFloat, Min: ptr(float64(-96)), Max: ptr(float64(24)), Default: "", Unit: "dB", Options: nil, Note: false, Description: ""},
{Name: "eqN_vel2gain", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / EQ", Type: TypeFloat, Min: ptr(float64(-96)), Max: ptr(float64(24)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "Gain change of the equalizer band with MIDI velocity, in decibels."},
{Name: "eqN_dynamic", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / EQ", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies when EQ is recalculated."},
{Name: "eqN_mode", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / EQ", Type: TypeString, Min: nil, Max: nil, Default: "hz", Unit: "", Options: nil, Note: false, Description: "Specifies whether EQ frequency modulation is in cents or Hertz. Valid values are hz and cents."},
{Name: "eqN_type", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / EQ", Type: TypeString, Min: nil, Max: nil, Default: "peak", Unit: "", Options: []string{"peak", "lshelf", "hshelf"}, Note: false, Description: "Sets the type of EQ filter."},
{Name: "cutoff", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: ptr(float64(0)), Max: nil, Default: "filter disabled", Unit: "Hz", Options: nil, Note: false, Description: "Sets the cutoff frequency (Hz) of the filters."},
{Name: "cutoff_ccN", Aliases: []string{"cutoff_onccN"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(-9600)), Max: ptr(float64(9600)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "The variation in the cutoff frequency when MIDI continuous controller N is received."},
{Name: "cutoff_curveccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate cutoff."},
{Name: "cutoff_smoothccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: ptr(float64(0)), Max: nil, Default: "", Unit: "ms", Options: nil, Note: false, Description: ""},
{Name: "cutoff_stepccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(0)), Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "cutoff_chanaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(-9600)), Max: ptr(float64(9600)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "The variation in the cutoff frequency when MIDI channel aftertouch messages are received, in cents."},
{Name: "cutoff_polyaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(-9600)), Max: ptr(float64(9600)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "The variation in the cutoff frequency when MIDI polyphonic aftertouch messages are received, in cents."},
{Name: "cutoff2", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: ptr(float64(0)), Max: nil, Default: "filter disabled", Unit: "Hz", Options: nil, Note: false, Description: "Sets the cutoff frequency (Hz) of the filters."},
{Name: "cutoff2_ccN", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(-9600)), Max: ptr(float64(9600)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "The variation in the cutoff frequency when MIDI continuous controller N is received."},
{Name: "cutoff2_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "cutoff2_curveccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate cutoff2."},
{Name: "cutoff2_smoothccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: ptr(float64(0)), Max: nil, Default: "", Unit: "ms", Options: nil, Note: false, Description: ""},
{Name: "cutoff2_stepccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(0)), Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "cutoff2_chanaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(-9600)), Max: ptr(float64(9600)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "The variation in the cutoff frequency when MIDI channel aftertouch messages are received, in cents."},
{Name: "cutoff2_polyaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(-9600)), Max: ptr(float64(9600)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "The variation in the cutoff frequency when MIDI polyphonic aftertouch messages are received, in cents."},
{Name: "fil_gain", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "dB", Options: nil, Note: false, Description: "Gain for lsh, hsh and peq filter types."},
{Name: "fil_gain_onccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "fil2_gain", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "dB", Options: nil, Note: false, Description: "Gain for lsh, hsh and peq filter types."},
{Name: "fil2_gain_onccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "fil_keycenter", Aliases: []string{"fil2_keycenter"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "Center key for filter keyboard tracking."},
{Name: "fil_keytrack", Aliases: []string{"fil2_keytrack"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(1200)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "Filter keyboard tracking (change on cutoff for each key) in cents."},
{Name: "fil_mode", Aliases: []string{"fil2_mode"}, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeString, Min: nil, Max: nil, Default: "cents", Unit: "", Options: nil, Note: false, Description: "Specifies whether filter modulation is in cents or Hertz. Valid values are cents and hz"},
{Name: "fil_random", Aliases: []string{"cutoff_random", "cutoff2_random"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(9600)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "Random value added to the filter cutoff for the region, in cents."},
{Name: "fil_type", Aliases: []string{"filtype", "fil2_type"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeString, Min: nil, Max: nil, Default: "lpf_2p", Unit: "", Options: []string{"lpf_1p", "hpf_1p", "lpf_2p", "hpf_2p", "bpf_2p", "brf_2p", "bpf_1p", "brf_1p", "apf_1p", "lpf_2p_sv", "hpf_2p_sv", "bpf_2p_sv", "brf_2p_sv", "pkf_2p", "lpf_4p", "hpf_4p", "lpf_6p", "hpf_6p", "comb", "pink", "lsh", "hsh", "peq"}, Note: false, Description: "Filter type."},
{Name: "fil_veltrack", Aliases: []string{"fil2_veltrack"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(-9600)), Max: ptr(float64(9600)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "Filter velocity tracking, the amount by which the cutoff changes with incoming note velocity, in cents."},
{Name: "resonance", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(40)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "The filter cutoff resonance value, in decibels."},
{Name: "resonance_onccN", Aliases: []string{"resonance_ccN"}, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: ptr(float64(-40)), Max: ptr(float64(40)), Default: "", Unit: "dB", Options: nil, Note: false, Description: ""},
{Name: "resonance_curveccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate resonance."},
{Name: "resonance_smoothccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: ptr(float64(0)), Max: nil, Default: "", Unit: "ms", Options: nil, Note: false, Description: ""},
{Name: "resonance_stepccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(0)), Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "resonance2", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(40)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "The filter cutoff resonance value, in decibels."},
{Name: "resonance2_onccN", Aliases: []string{"resonance2_ccN"}, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: ptr(float64(-40)), Max: ptr(float64(40)), Default: "", Unit: "dB", Options: nil, Note: false, Description: ""},
{Name: "resonance2_curveccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate resonance2."},
{Name: "resonance2_smoothccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: ptr(float64(0)), Max: nil, Default: "", Unit: "ms", Options: nil, Note: false, Description: ""},
{Name: "resonance2_stepccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(0)), Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "resonance_random", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(40)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "Filter cutoff resonance random value, in decibels."},
{Name: "resonance2_random", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(40)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "Filter#2 cutoff resonance random value, in decibels."},
{Name: "noise_filter", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: []string{"on", "off", "lpf_1p", "hpf_1p", "bpf_1p", "brf_1p", "apf_1p", "lpf_2p", "hpf_2p", "bpf_2p", "brf_2p", "pkf_2p", "lpf_4p", "hpf_4p", "lpf_6p", "hpf_6p", "comb", "pink"}, Note: false, Description: ""},
{Name: "noise_stereo", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: []string{"on", "off"}, Note: false, Description: ""},
{Name: "noise_level", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: ptr(float64(-96)), Max: ptr(float64(24)), Default: "", Unit: "dB", Options: nil, Note: false, Description: ""},
{Name: "noise_level_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: ptr(float64(-96)), Max: ptr(float64(24)), Default: "", Unit: "dB", Options: nil, Note: false, Description: ""},
{Name: "noise_level_smoothccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeFloat, Min: ptr(float64(0)), Max: nil, Default: "", Unit: "ms", Options: nil, Note: false, Description: ""},
{Name: "noise_step", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "noise_step_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "noise_tone", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "noise_tone_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Filter", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "bend_up", Aliases: []string{"bendup"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeInteger, Min: ptr(float64(-9600)), Max: ptr(float64(9600)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "Pitch bend range when Bend Wheel or Joystick is moved up, in cents."},
{Name: "bend_down", Aliases: []string{"benddown"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeInteger, Min: ptr(float64(-9600)), Max: ptr(float64(9600)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "Pitch bend range when Bend Wheel or Joystick is moved down, in cents."},
{Name: "bend_smooth", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeFloat, Min: ptr(float64(0)), Max: nil, Default: "", Unit: "ms", Options: nil, Note: false, Description: "Pitch bend smoothness. Adds “inertia” to pitch bends, so fast movements of the pitch bend wheel will have a delayed effect on the pitch change."},
{Name: "bend_step", Aliases: []string{"bendstep"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeInteger, Min: ptr(float64(1)), Max: ptr(float64(1200)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "Pitch bend step, in cents."},
{Name: "tune", Aliases: []string{"pitch"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeInteger, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "The fine tuning for the sample, in cents."},
{Name: "pitch_onccN", Aliases: []string{"tune_ccN", "tune_onccN"}, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeUnspecified, Min: ptr(float64(-9600)), Max: ptr(float64(9600)), Default: "", Unit: "cents", Options: nil, Note: false, Description: ""},
{Name: "pitch_curveccN", Aliases: []string{"tune_curveccN"}, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate pitch."},
{Name: "pitch_smoothccN", Aliases: []string{"tune_smoothccN"}, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeFloat, Min: ptr(float64(0)), Max: nil, Default: "", Unit: "ms", Options: nil, Note: false, Description: ""},
{Name: "pitch_stepccN", Aliases: []string{"tune_stepccN"}, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeUnspecified, Min: ptr(float64(0)), Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "group_tune", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeInteger, Min: ptr(float64(-9600)), Max: ptr(float64(9600)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "ARIA extension, like tune, but affecting everything when set under the <group> header."},
{Name: "master_tune", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeInteger, Min: ptr(float64(-9600)), Max: ptr(float64(9600)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "ARIA extension, like tune, but affecting everything when set under the <master> header."},
{Name: "global_tune", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeInteger, Min: ptr(float64(-9600)), Max: ptr(float64(9600)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "ARIA extension, like tune, but affecting everything when set under the <global> header."},
{Name: "pitch_keycenter", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: true, Description: "Root key for the sample."},
{Name: "pitch_keytrack", Aliases: []string{"tune_keytrack"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeInteger, Min: ptr(float64(-1200)), Max: ptr(float64(1200)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "Within the region, this value defines how much the pitch changes with every note."},
{Name: "pitch_random", Aliases: []string{"tune_random"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(9600)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "Random tuning for the region, in cents."},
{Name: "pitch_veltrack", Aliases: []string{"tune_veltrack"}, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeInteger, Min: ptr(float64(-9600)), Max: ptr(float64(9600)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "Pitch velocity tracking, represents how much the pitch changes with incoming note velocity, in cents."},
{Name: "transpose", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeInteger, Min: ptr(float64(-127)), Max: ptr(float64(127)), Default: "", Unit: "", Options: nil, Note: false, Description: "The transposition value for this region which will be applied to the sample."},
{Name: "bend_stepup", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeInteger, Min: ptr(float64(1)), Max: ptr(float64(1200)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "Pitch bend step, in cents, applied to upwards bends only."},
{Name: "bend_stepdown", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Performance Parameters / Pitch", Type: TypeInteger, Min: ptr(float64(1)), Max: ptr(float64(1200)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "Pitch bend step, in cents, for downward pitch bends."},
{Name: "ampeg_attack", Aliases: []string{"amp_attack"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "EG attack time."},
{Name: "ampeg_attackccN", Aliases: []string{"ampeg_attack_onccN"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: ""},
{Name: "ampeg_attack_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "ampeg_vel2attack", Aliases: []string{"amp_vel2attack"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Velocity effect on EG attack time."},
{Name: "ampeg_decay", Aliases: []string{"amp_decay"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "EG decay time."},
{Name: "ampeg_decayccN", Aliases: []string{"ampeg_decay_onccN"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "ampeg_decay_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate ampeg_decay."},
{Name: "ampeg_vel2decay", Aliases: []string{"amp_vel2decay"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Velocity effect on EG decay time."},
{Name: "ampeg_delay", Aliases: []string{"amp_delay"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "EG delay time."},
{Name: "ampeg_delayccN", Aliases: []string{"ampeg_delay_onccN"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "ampeg_delay_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "ampeg_vel2delay", Aliases: []string{"amp_vel2delay"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Velocity effect on EG delay time."},
{Name: "ampeg_hold", Aliases: []string{"amp_hold"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "EG hold time."},
{Name: "ampeg_holdccN", Aliases: []string{"ampeg_hold_onccN"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "ampeg_hold_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate ampeg_hold."},
{Name: "ampeg_vel2hold", Aliases: []string{"amp_vel2hold"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Velocity effect on EG hold time."},
{Name: "ampeg_release", Aliases: []string{"amp_release"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "EG release time (after note release)."},
{Name: "ampeg_releaseccN", Aliases: []string{"ampeg_release_onccN"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: ""},
{Name: "ampeg_release_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "ampeg_vel2release", Aliases: []string{"amp_vel2release"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Velocity effect on EG release time."},
{Name: "ampeg_sustain", Aliases: []string{"amp_sustain"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "EG sustain level, in percentage."},
{Name: "ampeg_sustainccN", Aliases: []string{"ampeg_sustain_onccN"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: ""},
{Name: "ampeg_sustain_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate ampeg_sustain."},
{Name: "ampeg_vel2sustain", Aliases: []string{"amp_vel2sustain"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Velocity effect on EG sustain level, in percentage."},
{Name: "ampeg_start", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Envelope start level, in percentage."},
{Name: "ampeg_startccN", Aliases: []string{"ampeg_start_onccN"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: ""},
{Name: "ampeg_start_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "ampeg_attack_shape", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the curvature of attack stage of the envelope."},
{Name: "ampeg_decay_shape", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the curvature of decay stage of the envelope."},
{Name: "ampeg_decay_zero", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies how decay time is calculated."},
{Name: "ampeg_dynamic", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies when envelope durations are recalculated."},
{Name: "ampeg_release_shape", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the curvature of release stage of the envelope."},
{Name: "ampeg_release_zero", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies how release time is calculated."},
{Name: "fileg_attack_shape", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the curvature of attack stage of the envelope."},
{Name: "fileg_decay_shape", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the curvature of decay stage of the envelope."},
{Name: "fileg_decay_zero", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies how decay time is calculated."},
{Name: "fileg_release_shape", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the curvature of release stage of the envelope."},
{Name: "fileg_release_zero", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies how release time is calculated."},
{Name: "fileg_dynamic", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies when envelope durations are recalculated."},
{Name: "pitcheg_attack_shape", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the curvature of attack stage of the envelope."},
{Name: "pitcheg_decay_shape", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the curvature of decay stage of the envelope."},
{Name: "pitcheg_decay_zero", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies how decay time is calculated."},
{Name: "pitcheg_release_shape", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the curvature of release stage of the envelope."},
{Name: "pitcheg_release_zero", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies how release time is calculated."},
{Name: "pitcheg_dynamic", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies when envelope durations are recalculated."},
{Name: "fileg_attack", Aliases: []string{"fil_attack"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "EG attack time."},
{Name: "fileg_attack_onccN", Aliases: []string{"fileg_attackccN"}, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: ""},
{Name: "fileg_attack_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "fileg_vel2attack", Aliases: []string{"fil_vel2attack"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Velocity effect on EG attack time."},
{Name: "fileg_decay", Aliases: []string{"fil_decay"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "EG decay time."},
{Name: "fileg_decay_onccN", Aliases: []string{"fileg_decayccN"}, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "fileg_decay_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "fileg_vel2decay", Aliases: []string{"fil_vel2decay"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Velocity effect on filter EG decay time."},
{Name: "fileg_delay", Aliases: []string{"fil_delay"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "EG delay time."},
{Name: "fileg_delay_onccN", Aliases: []string{"fileg_delayccN"}, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "fileg_delay_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "fileg_vel2delay", Aliases: []string{"fil_vel2delay"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Velocity effect on filter EG delay time."},
{Name: "fileg_depth", Aliases: []string{"fil_depth"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(-12000)), Max: ptr(float64(12000)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "Envelope depth."},
{Name: "fileg_depth_onccN", Aliases: []string{"fileg_depthccN"}, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(-12000)), Max: ptr(float64(12000)), Default: "", Unit: "cents", Options: nil, Note: false, Description: ""},
{Name: "fileg_depth_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "fileg_vel2depth", Aliases: []string{"fil_vel2depth"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(-12000)), Max: ptr(float64(12000)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "Velocity effect on EG depth, in cents for pitch or filter cutoff."},
{Name: "fileg_hold", Aliases: []string{"fil_hold"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "EG hold time."},
{Name: "fileg_hold_onccN", Aliases: []string{"fileg_holdccN"}, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "fileg_hold_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "fileg_vel2hold", Aliases: []string{"fil_vel2hold"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Velocity effect on EG hold time."},
{Name: "fileg_release", Aliases: []string{"fil_release"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "EG release time (after note release)."},
{Name: "fileg_release_onccN", Aliases: []string{"fileg_releaseccN"}, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: ""},
{Name: "fileg_release_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "fileg_vel2release", Aliases: []string{"fil_vel2release"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Velocity effect on EG release time."},
{Name: "fileg_start", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Envelope start level, in percentage."},
{Name: "fileg_start_onccN", Aliases: []string{"fileg_startccN"}, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: ""},
{Name: "fileg_start_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "fileg_sustain", Aliases: []string{"fil_sustain"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "EG sustain level, in percentage."},
{Name: "fileg_sustain_onccN", Aliases: []string{"fileg_sustainccN"}, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: ""},
{Name: "fileg_sustain_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "fileg_vel2sustain", Aliases: []string{"fil_vel2sustain"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Velocity effect on EG sustain level, in percentage."},
{Name: "pitcheg_attack", Aliases: []string{"pitch_attack"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "EG attack time."},
{Name: "pitcheg_attack_onccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "pitcheg_attack_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "pitcheg_vel2attack", Aliases: []string{"pitch_vel2attack"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Velocity effect on EG attack time."},
{Name: "pitcheg_decay", Aliases: []string{"pitch_decay"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "EG decay time."},
{Name: "pitcheg_decay_onccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "pitcheg_decay_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "pitcheg_vel2decay", Aliases: []string{"pitch_vel2decay"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Velocity effect on EG decay time."},
{Name: "pitcheg_delay", Aliases: []string{"pitch_delay"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "EG delay time."},
{Name: "pitcheg_delay_onccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "pitcheg_delay_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "pitcheg_vel2delay", Aliases: []string{"pitch_vel2delay"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Velocity effect on EG delay time."},
{Name: "pitcheg_depth", Aliases: []string{"pitch_depth"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(-12000)), Max: ptr(float64(12000)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "Envelope depth."},
{Name: "pitcheg_depth_onccN", Aliases: []string{"pitcheg_depthccN"}, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(-12000)), Max: ptr(float64(12000)), Default: "", Unit: "cents", Options: nil, Note: false, Description: ""},
{Name: "pitcheg_depth_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "pitcheg_vel2depth", Aliases: []string{"pitch_vel2depth"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(-12000)), Max: ptr(float64(12000)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "Velocity effect on EG depth, in cents for pitch or filter cutoff."},
{Name: "pitcheg_hold", Aliases: []string{"pitch_hold"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "EG hold time."},
{Name: "pitcheg_hold_onccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "pitcheg_hold_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "pitcheg_vel2hold", Aliases: []string{"pitch_vel2hold"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Velocity effect on EG hold time."},
{Name: "pitcheg_release", Aliases: []string{"pitch_release"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "EG release time (after note release)."},
{Name: "pitcheg_release_onccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: ""},
{Name: "pitcheg_release_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "pitcheg_vel2release", Aliases: []string{"pitch_vel2release"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Velocity effect on EG release time."},
{Name: "pitcheg_start", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Envelope start level, in percentage."},
{Name: "pitcheg_start_onccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: ""},
{Name: "pitcheg_start_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "pitcheg_sustain", Aliases: []string{"pitch_sustain"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "EG sustain level, in percentage."},
{Name: "pitcheg_sustain_onccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: ""},
{Name: "pitcheg_sustain_curveccN", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "pitcheg_vel2sustain", Aliases: []string{"pitch_vel2sustain"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Velocity effect on EG sustain level, in percentage."},
{Name: "egN_points", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_timeX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "seconds", Options: nil, Note: false, Description: ""},
{Name: "egN_timeX_onccY", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "seconds", Options: nil, Note: false, Description: ""},
{Name: "egN_levelX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-1)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Sets the envelope level at a specific point in envelope number N."},
{Name: "egN_levelX_onccY", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: ptr(float64(-1)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_ampeg", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_dynamic", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies when envelope durations are recalculated."},
{Name: "egN_shapeX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_curveX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Instructs the player to use a curve shape defined under a curve header for the specified envelope segment."},
{Name: "egN_sustain", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_loop", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_loop_count", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_volume", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_volume_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_amplitude", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_amplitude_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_pan", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_pan_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_width", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_width_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_pan_curve", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_pan_curveccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC X uses to modulate egN_pan."},
{Name: "egN_freq_lfoX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "Hz", Options: nil, Note: false, Description: "Allows egN to shape a change to lfoX's frequency"},
{Name: "egN_depth_lfoX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "%", Options: nil, Note: false, Description: "Allows egN to scale lfoX's effect on its targets"},
{Name: "egN_depthadd_lfoX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_pitch", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_pitch_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_cutoff", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_cutoff_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_cutoff2", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_cutoff2_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_resonance", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_resonance_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_resonance2", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_resonance2_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_eqXfreq", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_eqXfreq_onccY", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_eqXbw", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_eqXbw_onccY", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_eqXgain", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_eqXgain_onccY", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_decim", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_decim_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_bitred", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_bitred_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_rectify", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_rectify_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_ringmod", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_ringmod_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_noiselevel", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_noiselevel_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_noisestep", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_noisestep_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_noisetone", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_noisetone_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_driveshape", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_driveshape_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "egN_sample_dyn_paramX", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "ARIA-specific nameless destination for plugin envelope modulations."},
{Name: "egN_sample_dyn_paramX_onccY", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / Envelope Generators", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "amplfo_delay", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "The time before the LFO starts oscillating."},
{Name: "amplfo_depth", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-10)), Max: ptr(float64(10)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "LFO depth."},
{Name: "amplfo_depthccN", Aliases: []string{"amplfo_depth_onccN"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-10)), Max: ptr(float64(10)), Default: "", Unit: "dB", Options: nil, Note: false, Description: ""},
{Name: "amplfo_depthchanaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-10)), Max: ptr(float64(10)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "LFO depth when channel aftertouch MIDI messages are received."},
{Name: "amplfo_depthpolyaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-10)), Max: ptr(float64(10)), Default: "", Unit: "dB", Options: nil, Note: false, Description: "LFO depth when polyphonic aftertouch MIDI messages are received."},
{Name: "amplfo_fade", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "LFO fade-in effect time."},
{Name: "amplfo_freq", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(20)), Default: "", Unit: "Hz", Options: nil, Note: false, Description: "LFO frequency, in hertz."},
{Name: "amplfo_freqccN", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-200)), Max: ptr(float64(200)), Default: "", Unit: "Hz", Options: nil, Note: false, Description: ""},
{Name: "amplfo_freqchanaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-200)), Max: ptr(float64(200)), Default: "", Unit: "Hz", Options: nil, Note: false, Description: "LFO frequency change when channel aftertouch MIDI messages are received, in Hertz."},
{Name: "amplfo_freqpolyaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-200)), Max: ptr(float64(200)), Default: "", Unit: "Hz", Options: nil, Note: false, Description: "LFO frequency change when polyphonic aftertouch MIDI messages are received, in Hertz."},
{Name: "fillfo_delay", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "The time before the LFO starts oscillating."},
{Name: "fillfo_depth", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-1200)), Max: ptr(float64(1200)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "LFO depth."},
{Name: "fillfo_depthccN", Aliases: []string{"fillfo_depth_onccN"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-1200)), Max: ptr(float64(1200)), Default: "", Unit: "cents", Options: nil, Note: false, Description: ""},
{Name: "fillfo_depthchanaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-1200)), Max: ptr(float64(1200)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "LFO depth when channel aftertouch MIDI messages are received."},
{Name: "fillfo_depthpolyaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-1200)), Max: ptr(float64(1200)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "LFO depth when polyphonic aftertouch MIDI messages are received."},
{Name: "fillfo_fade", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "LFO fade-in effect time."},
{Name: "fillfo_freq", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(20)), Default: "", Unit: "Hz", Options: nil, Note: false, Description: "LFO frequency, in hertz."},
{Name: "fillfo_freqccN", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-200)), Max: ptr(float64(200)), Default: "", Unit: "Hz", Options: nil, Note: false, Description: ""},
{Name: "fillfo_freqchanaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-200)), Max: ptr(float64(200)), Default: "", Unit: "Hz", Options: nil, Note: false, Description: "LFO frequency change when channel aftertouch MIDI messages are received, in Hertz."},
{Name: "fillfo_freqpolyaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-200)), Max: ptr(float64(200)), Default: "", Unit: "Hz", Options: nil, Note: false, Description: "LFO frequency change when polyphonic aftertouch MIDI messages are received, in Hertz."},
{Name: "pitchlfo_delay", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "The time before the LFO starts oscillating."},
{Name: "pitchlfo_depth", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-1200)), Max: ptr(float64(1200)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "LFO depth."},
{Name: "pitchlfo_depthccN", Aliases: []string{"pitchlfo_depth_onccN"}, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-1200)), Max: ptr(float64(1200)), Default: "", Unit: "cents", Options: nil, Note: false, Description: ""},
{Name: "pitchlfo_depthchanaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-1200)), Max: ptr(float64(1200)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "LFO depth when channel aftertouch MIDI messages are received."},
{Name: "pitchlfo_depthpolyaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-1200)), Max: ptr(float64(1200)), Default: "", Unit: "cents", Options: nil, Note: false, Description: "LFO depth when polyphonic aftertouch MIDI messages are received."},
{Name: "pitchlfo_fade", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "seconds", Options: nil, Note: false, Description: "LFO fade-in effect time."},
{Name: "pitchlfo_freq", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(20)), Default: "", Unit: "Hz", Options: nil, Note: false, Description: "LFO frequency, in hertz."},
{Name: "pitchlfo_freqccN", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-200)), Max: ptr(float64(200)), Default: "", Unit: "Hz", Options: nil, Note: false, Description: ""},
{Name: "pitchlfo_freqchanaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-200)), Max: ptr(float64(200)), Default: "", Unit: "Hz", Options: nil, Note: false, Description: "LFO frequency change when channel aftertouch MIDI messages are received, in Hertz."},
{Name: "pitchlfo_freqpolyaft", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-200)), Max: ptr(float64(200)), Default: "", Unit: "Hz", Options: nil, Note: false, Description: "LFO frequency change when polyphonic aftertouch MIDI messages are received, in Hertz."},
{Name: "lfoN_freq", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "Hz", Options: nil, Note: false, Description: "The base frequency of LFO number N, in Hertz."},
{Name: "lfoN_freq_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_freq_smoothccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_freq_stepccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_delay", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "seconds", Options: nil, Note: false, Description: "Onset delay for LFO number N."},
{Name: "lfoN_delay_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_fade", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Fade-in time for LFO number N."},
{Name: "lfoN_fade_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_phase", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Initial phase shift for LFO number N."},
{Name: "lfoN_phase_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_count", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeInteger, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Number of LFO repetitions for LFO N before the LFO stops."},
{Name: "lfoN_wave", Aliases: []string{"lfoN_waveX"}, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeInteger, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "LFO waveform selection."},
{Name: "lfoN_wave_onccX", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_steps", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeInteger, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Number of steps in LFO step sequencer."},
{Name: "lfoN_stepX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: ptr(float64(-100)), Max: ptr(float64(100)), Default: "", Unit: "percent", Options: nil, Note: false, Description: "Level of the step number X in LFO step sequencer."},
{Name: "lfoN_stepX_onccY", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_smooth", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_smooth_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_volume", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_volume_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_volume_smoothccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_volume_stepccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_amplitude", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_amplitude_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_amplitude_smoothccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_amplitude_stepccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_pan", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_pan_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_pan_smoothccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_pan_stepccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_width", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_width_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_width_smoothccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_width_stepccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_freq_lfoX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_freq_lfoX_onccY", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_depth_lfoX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_depthadd_lfoX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_pitch", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_pitch_curveccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC X uses to modulate lfoN_pitch."},
{Name: "lfoN_pitch_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_pitch_smoothccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_pitch_stepccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_cutoff", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_cutoff_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_cutoff_smoothccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_cutoff_stepccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_cutoff2", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_cutoff2_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_cutoff2_smoothccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_cutoff2_stepccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_resonance", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_resonance_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_resonance_smoothccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_resonance_stepccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_resonance2", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_resonance2_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_resonance2_smoothccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_resonance2_stepccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_eqXfreq", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_eqXfreq_onccY", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_eqXfreq_smoothccY", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_eqXfreq_stepccY", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_eqXbw", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_eqXbw_onccY", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_eqXbw_smoothccY", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_eqXbw_stepccY", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_eqXgain", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_eqXgain_onccY", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_eqXgain_smoothccY", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_eqXgain_stepccY", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_decim", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_decim_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_decim_smoothccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_decim_stepccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_bitred", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_bitred_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_bitred_smoothccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_bitred_stepccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_noiselevel", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_noiselevel_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_noiselevel_smoothccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_noiselevel_stepccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_noisestep", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_noisestep_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_noisestep_smoothccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_noisestep_stepccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_noisetone", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_noisetone_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_noisetone_smoothccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_noisetone_stepccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_drive", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_drive_onccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_drive_smoothccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_drive_stepccX", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "lfoN_offset", Aliases: []string{"lfoN_offsetX"}, Version: "ARIA", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "DC offset - Add to LFO output; not affected by scale."},
{Name: "lfoN_ratio", Aliases: []string{"lfoN_ratioX"}, Version: "ARIA", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Sets the ratio between the specified sub waveform and the main waveform."},
{Name: "lfoN_scale", Aliases: []string{"lfoN_scaleX"}, Version: "ARIA", Deprecated: false, Category: "Modulation / LFO", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Sets the scaling between the specified sub waveform and the main waveform."},
{Name: "lfoN_sample_dyn_paramX", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "ARIA-specific nameless destination for plugin LFO modulations."},
{Name: "lfoN_sample_dyn_paramX_onccY", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Modulation / LFO", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "curve_index", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Curves", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Curve definition ID."},
{Name: "vNNN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Curves", Type: TypeFloat, Min: ptr(float64(-1)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: "Defines a point in a custom curve definition."},
{Name: "apan_depth", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "apan_depth_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "apan_dry", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "apan_dry_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "apan_freq", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "Hz", Options: nil, Note: false, Description: ""},
{Name: "apan_freq_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "apan_phase", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(180)), Default: "", Unit: "°", Options: nil, Note: false, Description: ""},
{Name: "apan_phase_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "apan_waveform", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "LFO wave number."},
{Name: "apan_wet", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "apan_wet_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "bitred", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: "Bit reduction."},
{Name: "bitred_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "bitred_curveccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate bitred."},
{Name: "bitred_smoothccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "bitred_stepccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "bus", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeString, Min: nil, Max: nil, Default: "main", Unit: "", Options: []string{"main", "aux1", "aux2", "aux3", "aux4", "aux5", "aux6", "aux7", "aux8", "fx1", "fx2", "fx3", "fx4", "midi"}, Note: false, Description: "The target bus for the effect."},
{Name: "bypass_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Sets up a bypass controller for the effect."},
{Name: "comp_attack", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "seconds", Options: nil, Note: false, Description: ""},
{Name: "comp_gain", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "comp_ratio", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "comp_release", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "seconds", Options: nil, Note: false, Description: ""},
{Name: "comp_stlink", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: []string{"on", "off"}, Note: false, Description: ""},
{Name: "comp_threshold", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "dB", Options: nil, Note: false, Description: ""},
{Name: "decim", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: "Decimator."},
{Name: "decim_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "decim_curveccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(255)), Default: "", Unit: "", Options: nil, Note: false, Description: "Specifies the <curve> number which MIDI CC N uses to modulate decim."},
{Name: "decim_smoothccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "decim_stepccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_cutoff", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "Hz", Options: nil, Note: false, Description: ""},
{Name: "delay_cutoff_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_damphi", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_damphi_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_damplo", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_damplo_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_dry", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_dry_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_feedback", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_feedback_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_filter", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Name of filter type."},
{Name: "delay_input", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_input_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_levelc", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_levell", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_levelr", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_lfofreq", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "Hz", Options: nil, Note: false, Description: ""},
{Name: "delay_lfofreq_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_moddepth", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_moddepth_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_mode", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: []string{"detune", "chorus", "cross", "flanger", "lrc", "mod", "multimod", "panning", "ping", "rlc", "stereo", "tlcr"}, Note: false, Description: ""},
{Name: "delay_panc", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_panc_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_panl", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_panl_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_panr", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_panr_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_resonance", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_resonance_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_spread", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_spread_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_syncc_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_syncl_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_syncr_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_time_tap", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_timec", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_timec_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_timel", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_timel_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_timer", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_timer_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_wet", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "delay_wet_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "directtomain", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Gain of the main bus into the output."},
{Name: "disto_depth", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "disto_depth_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "disto_dry", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "disto_dry_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "disto_stages", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "disto_tone", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "disto_tone_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "disto_wet", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "disto_wet_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "dsp_order", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(14)), Default: "", Unit: "", Options: nil, Note: false, Description: "Signal flow type in Rapture's DSP block."},
{Name: "effect1", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Level of effect1 send, in percentage (reverb in Cakewalk sfz)."},
{Name: "effect2", Aliases: nil, Version: "SFZ v1", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Level of effect2 send, in percentage (chorus in Cakewalk sfz)."},
{Name: "effect3", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Gain of the region's send into the 3rd effect bus."},
{Name: "effect4", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Gain of the region's send into the 4th effect bus."},
{Name: "eq_bw", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "eq_bw_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "eq_freq", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "eq_freq_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "eq_gain", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "eq_gain_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "eq_type", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "filter_cutoff", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "filter_cutoff_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "filter_resonance", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "filter_resonance_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "filter_type", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Name of filter type."},
{Name: "fxNtomain", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Gain of the Nth effect bus into the output."},
{Name: "fxNtomix", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "%", Options: nil, Note: false, Description: "Gain of the Nth effect bus into the Mix node."},
{Name: "gate_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Gate manual control."},
{Name: "gate_attack", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "gate_release", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "gate_stlink", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: []string{"on", "off"}, Note: false, Description: ""},
{Name: "gate_threshold", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "internal", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeString, Min: nil, Max: nil, Default: "off", Unit: "", Options: []string{"on", "off"}, Note: false, Description: "Cakewalk internal features switch."},
{Name: "param_offset", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Effects", Type: TypeInteger, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Adds a number to the parameter numbers of built-in or vendor-specific effects."},
{Name: "phaser_depth", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "phaser_depth_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "phaser_feedback", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "phaser_feedback_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "phaser_freq", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "Hz", Options: nil, Note: false, Description: ""},
{Name: "phaser_freq_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "phaser_phase_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "phaser_stages", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "phaser_waveform", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "LFO wave number."},
{Name: "phaser_wet", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "phaser_wet_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "reverb_damp", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "reverb_damp_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "reverb_dry", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "reverb_dry_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "reverb_input", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "reverb_input_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "reverb_predelay", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "seconds", Options: nil, Note: false, Description: ""},
{Name: "reverb_predelay_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "reverb_size", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "reverb_size_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "reverb_tone", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "reverb_tone_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "reverb_type", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: []string{"chamber", "large_hall", "large_room", "mid_hall", "mid_room", "small_hall", "small_room"}, Note: false, Description: ""},
{Name: "reverb_wet", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "reverb_wet_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "static_cyclic_level", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "static_cyclic_time", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "seconds", Options: nil, Note: false, Description: ""},
{Name: "static_filter", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Name of filter type."},
{Name: "static_level", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "static_level_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "static_random_level", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "static_random_maxtime", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "seconds", Options: nil, Note: false, Description: ""},
{Name: "static_random_mintime", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeFloat, Min: nil, Max: nil, Default: "", Unit: "seconds", Options: nil, Note: false, Description: ""},
{Name: "static_stereo", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "static_tone", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "strings_number", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Number of synthesized resonant strings."},
{Name: "strings_wet_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "tdfir_dry", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "tdfir_dry_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "tdfir_gain", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "tdfir_impulse", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "tdfir_wet", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: ptr(float64(0)), Max: ptr(float64(100)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "tdfir_wet_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "type", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Effects", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: []string{"apan", "comp", "delay", "disto", "eq", "filter", "fverb", "gate", "limiter", "lofi", "mverb", "phaser", "static", "strings", "tdfir", "com.mda.Limiter", "com.mda.Overdrive", "com.mda.Leslie", "com.mda.RingMod", "com.mda.Delay", "com.mda.Bandisto", "com.mda.Ambience", "com.mda.DubDelay", "com.mda.Detune", "com.mda.Dither", "com.mda.Combo", "com.mda.Degrade", "com.mda.SubSynth", "com.mda.RezFilter"}, Note: false, Description: "Effect type or vendor-specific effect name. Varies across SFZ players."},
{Name: "vendor_specific", Aliases: nil, Version: "ARIA", Deprecated: false, Category: "Effects", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Defines vendor-specific effects, for example Garritan-specific stage depth effect in ARIA."},
{Name: "load_mode", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Loading", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(1)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "load_start", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Loading", Type: TypeInteger, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "load_end", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Loading", Type: TypeInteger, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "sample_quality", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Loading", Type: TypeInteger, Min: ptr(float64(1)), Max: ptr(float64(10)), Default: "", Unit: "", Options: nil, Note: false, Description: "Sample playback quality settings."},
{Name: "image", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Loading", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: "Sets the background image of the instrument."},
{Name: "oscillator", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Wavetable Oscillator", Type: TypeString, Min: nil, Max: nil, Default: "", Unit: "", Options: []string{"on", "off"}, Note: false, Description: ""},
{Name: "oscillator_detune", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Wavetable Oscillator", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "oscillator_detune_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Wavetable Oscillator", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "oscillator_mode", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Wavetable Oscillator", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(2)), Default: "", Unit: "", Options: nil, Note: false, Description: "The modulation type."},
{Name: "oscillator_mod_depth", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Wavetable Oscillator", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "oscillator_mod_depth_onccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Wavetable Oscillator", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "oscillator_mod_smoothccN", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Wavetable Oscillator", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "oscillator_multi", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Wavetable Oscillator", Type: TypeInteger, Min: ptr(float64(1)), Max: ptr(float64(9)), Default: "", Unit: "", Options: nil, Note: false, Description: "Configure a region to use more than one oscillator."},
{Name: "oscillator_phase", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Wavetable Oscillator", Type: TypeFloat, Min: ptr(float64(-1)), Max: ptr(float64(360)), Default: "", Unit: "", Options: nil, Note: false, Description: "Oscillator phase. Negative values for random phase."},
{Name: "oscillator_quality", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Wavetable Oscillator", Type: TypeInteger, Min: ptr(float64(0)), Max: ptr(float64(3)), Default: "", Unit: "", Options: nil, Note: false, Description: ""},
{Name: "oscillator_table_size", Aliases: nil, Version: "SFZ v2", Deprecated: false, Category: "Wavetable Oscillator", Type: TypeUnspecified, Min: nil, Max: nil, Default: "", Unit: "", Options: nil, Note: false, Description: ""},
}
+204
View File
@@ -0,0 +1,204 @@
package sfz
import (
"flag"
"fmt"
"os"
"strings"
"testing"
)
var update = flag.Bool("update", false, "rewrite docs/opcodes.md")
func TestLookup(t *testing.T) {
for _, tc := range []struct {
name, canonical string
}{
{"lokey", "lokey"},
{"loopmode", "loop_mode"},
{"loop_mode", "loop_mode"},
{"locc64", "loccN"},
{"amp_velcurve_127", "amp_velcurve_N"},
{"eg02_time3", "egN_timeX"},
{"ampeg_attack_oncc12", "ampeg_attackccN"},
{"v064", "vNNN"},
{"hint_anything_here", "hint_*"},
{"cutoff2_cc5", "cutoff2_ccN"},
} {
info, ok := Lookup(tc.name)
if !ok || info.Name != tc.canonical {
t.Errorf("Lookup(%q) = %q, %v; want %q", tc.name, info.Name, ok, tc.canonical)
}
}
for _, name := range []string{"", "zampler_gain", "lokey2", "loccN7x", "lokey "} {
if info, ok := Lookup(name); ok {
t.Errorf("Lookup(%q) = %q", name, info.Name)
}
}
info, _ := Lookup("lokey")
if info.Type != TypeInteger || !info.Note || *info.Min != 0 || *info.Max != 127 {
t.Errorf("lokey %+v", info)
}
if h, ok := LookupHeader("REGION"); !ok || h.Name != "region" {
t.Errorf("header %+v", h)
}
}
// TestRegistryComplete checks the registry holds what the spec lists, each
// name once, and that every name reads back as the opcode it belongs to.
func TestRegistryComplete(t *testing.T) {
count := 0
for info := range KnownOpcodes() {
count++
for _, name := range append([]string{info.Name}, info.Aliases...) {
if strings.ContainsAny(name, "*") || placeholders.MatchString(name) {
continue
}
got, ok := Lookup(name)
if !ok || got.Name != info.Name {
t.Errorf("%s is %q", name, got.Name)
}
}
}
if count < 700 {
t.Errorf("%d opcodes", count)
}
for _, h := range []string{"region", "group", "master", "global", "control", "curve", "effect", "midi", "sample"} {
if _, ok := LookupHeader(h); !ok {
t.Errorf("no header %s", h)
}
}
}
func TestGetAs(t *testing.T) {
ops := Opcodes{"lokey": "c4", "hikey": " 72 ", "loopmode": "one_shot", "volume": "-3.5", "offset": "12", "bad": "x"}
if n, ok := GetAs[int](ops, "lokey"); !ok || n != 60 {
t.Errorf("lokey %d %v", n, ok)
}
if n, ok := GetAs[int64](ops, "hikey"); !ok || n != 72 {
t.Errorf("hikey %d %v", n, ok)
}
if s, ok := GetAs[string](ops, "loop_mode"); !ok || s != "one_shot" {
t.Errorf("loop_mode %q %v", s, ok)
}
if f, ok := GetAs[float64](ops, "volume"); !ok || f != -3.5 {
t.Errorf("volume %v %v", f, ok)
}
if n, ok := GetAs[int](ops, "offset"); !ok || n != 12 {
t.Errorf("offset %d %v", n, ok)
}
if _, ok := GetAs[int](ops, "bad"); ok {
t.Error("bad is an int")
}
if _, ok := GetAs[int](ops, "missing"); ok {
t.Error("missing is set")
}
}
func TestValidateValues(t *testing.T) {
text := "<region> sample=a.wav lokey=c4 hikey=60 lovel=100 hivel=20 volume=loud pan=300 loop_mode=sideways\n" +
"<region> zampler_gain=3 locc7=1 pitch_keycenter=sample key=$K <wrong>\n" +
"<region> lokey=10 hikey=9 amp_veltrack=1.5 ampeg_attack=$A\n"
doc, err := Parse(strings.NewReader(text))
if err != nil {
t.Fatal(err)
}
var got []string
for _, p := range doc.Validate() {
got = append(got, fmt.Sprintf("%d:%s", p.Line, p.Code))
}
want := []string{
"1:value.type", // volume=loud
"1:value.range", // pan=300
"1:value.option", // loop_mode=sideways
"1:range.inverted", // lovel above hivel
"2:opcode.unknown", // zampler_gain
"2:define.undefined",
"2:header.unknown", // <wrong>
"3:range.inverted", // lokey above hikey
"3:define.undefined", // $A
}
for _, w := range want {
found := false
for _, g := range got {
if g == w {
found = true
}
}
if !found {
t.Errorf("no %s in %v", w, got)
}
}
if len(got) != len(want) {
t.Errorf("problems %v", got)
}
}
// TestOpcodeDoc checks docs/opcodes.md is the table the registry makes. Run
// the tests with -update to rewrite it.
func TestOpcodeDoc(t *testing.T) {
var b strings.Builder
b.WriteString("# Opcodes\n\n" +
"Every opcode the library knows, from [sfzformat.com](https://sfzformat.com/)'s data. " +
"**Typed** opcodes are read into the [`Instrument`](../instrument.go) model; the rest are known, so the " +
"library validates them, and reads and writes them as text. This file is generated by `go test -update`.\n\n" +
"| Opcode | Version | Value | Typed |\n|---|---|---|---|\n")
for info := range KnownOpcodes() {
value := info.Type.String()
if info.Unit != "" {
value += " (" + info.Unit + ")"
}
names := "`" + info.Name + "`"
for _, a := range info.Aliases {
names += ", `" + a + "`"
}
typed := ""
if isTyped(info) {
typed = "yes"
}
deprecated := ""
if info.Deprecated {
deprecated = ", deprecated"
}
fmt.Fprintf(&b, "| %s | %s%s | %s | %s |\n", names, info.Version, deprecated, value, typed)
}
if *update {
if err := os.WriteFile("docs/opcodes.md", []byte(b.String()), 0o644); err != nil {
t.Fatal(err)
}
return
}
got, err := os.ReadFile("docs/opcodes.md")
if err != nil {
t.Fatal(err)
}
if string(got) != b.String() {
t.Error("docs/opcodes.md is out of date; run go test -update")
}
}
// placeholders finds the placeholders in a family's name.
var placeholders = patternRE
// isTyped reports whether the typed model reads any name of an opcode.
func isTyped(info OpcodeInfo) bool {
for _, name := range append([]string{info.Name}, info.Aliases...) {
if strings.Contains(name, "*") {
continue
}
if handled(placeholders.ReplaceAllString(name, "1")) {
return true
}
}
return false
}
// TestTypedOpcodesKnown checks that the registry knows every opcode the typed
// model reads by name.
func TestTypedOpcodesKnown(t *testing.T) {
for name := range handledNames {
if _, ok := Lookup(name); !ok {
t.Errorf("%s isn't in the registry", name)
}
}
}
+122
View File
@@ -0,0 +1,122 @@
package sfz
import (
"io/fs"
"os"
"path/filepath"
"strings"
"testing"
)
// roundTripTexts are texts that are awkward to read: comments in odd places,
// CRLF and tabs, directives in the middle of lines, unknown headers and text
// that isn't SFZ.
var roundTripTexts = map[string]string{
"empty": "",
"spaces": " \n\t\n",
"comments": "// top\r\n/* a\r\nblock */<region>\tsample=a b.wav // end\r\nlokey=c#4 /* x */ hikey=60\r\n/* open",
"crlf": "<group>\r\nvolume=1\r\n<region> sample=a.wav\r\n",
"include": "#define $D Data\n<group> #include \"$D/a.txt\" lovel=1 #include \"b.txt\"\n#include broken\n#define $X\n",
"unknown": "<effect> type=reverb\n<weird_header>foo bar=1 baz\n<>\n<region",
"junk": "garbage ünïcode <region> sample=ü.wav\n\x00\xff=1 =2 x==3\n",
"no final": "<region> sample=a.wav",
"variable": "#define $A 1\n$A $B=2 label_cc$A=x\n",
}
func TestRoundTrip(t *testing.T) {
for name, text := range roundTripTexts {
doc, err := Parse(strings.NewReader(text))
if err != nil {
t.Errorf("%s: %v", name, err)
continue
}
if got := doc.String(); got != text {
t.Errorf("%s: wrote %q, want %q", name, got, text)
}
var b strings.Builder
if n, err := doc.WriteTo(&b); err != nil || n != int64(len(text)) || b.String() != text {
t.Errorf("%s: WriteTo %d %v %q", name, n, err, b.String())
}
}
}
// TestRoundTripFiles checks that every file of the fixtures, and every file
// they include, is written back as it was read.
func TestRoundTripFiles(t *testing.T) {
dir := filepath.Join("testdata", "splendid")
doc, err := ParseFile(os.DirFS(dir), "Splendid Grand Piano.sfz")
if err != nil {
t.Fatal(err)
}
files := doc.Files()
if len(files) != 1+1+5 {
t.Errorf("%d files", len(files))
}
for _, f := range files {
want, err := os.ReadFile(filepath.Join(dir, f.Path))
if err != nil {
t.Fatal(err)
}
if f.String() != string(want) {
t.Errorf("%s isn't written back as it was read", f.Path)
}
}
// The fixture's amplitude_oncc70=200 is past the 100 the format gives as
// the most, and is the only problem.
problems := doc.Validate()
if len(problems) != 1 || problems[0].Code != "value.range" || problems[0].Line != 82 {
t.Errorf("problems %+v", problems)
}
}
// TestIncludedTwice checks that a file included twice is two files of the
// document, each with the variables it was read with.
func TestIncludedTwice(t *testing.T) {
m := map[string]string{
"main.sfz": "#define $S a\n#include \"x.txt\"\n#define $S b\n#include \"x.txt\"\n",
"x.txt": "<region> sample=$S.wav\n",
}
doc := parseFiles(t, m)
if len(doc.Files()) != 3 {
t.Errorf("%d files", len(doc.Files()))
}
regions := doc.Flatten().Regions
if len(regions) != 2 || regions[0].Opcodes["sample"] != "a.wav" || regions[1].Opcodes["sample"] != "b.wav" {
t.Errorf("regions %+v", regions)
}
}
func TestValidate(t *testing.T) {
doc, err := Parse(strings.NewReader("lokey=1\n<region> sample=$GONE.wav\n#define $A 1\n<region> %%% sample=$A.wav\n"))
if err != nil {
t.Fatal(err)
}
var codes []string
for _, p := range doc.Validate() {
codes = append(codes, p.Code)
}
want := "opcode.no-header define.undefined text.unreadable"
if got := strings.Join(codes, " "); got != want {
t.Errorf("got %q, want %q", got, want)
}
}
// FuzzRoundTrip checks that any text is written back as it was read, and that
// flattening and validating it don't panic.
func FuzzRoundTrip(f *testing.F) {
for _, text := range roundTripTexts {
f.Add(text)
}
f.Fuzz(func(t *testing.T, text string) {
resolver := func(string) ([]byte, error) { return nil, fs.ErrNotExist }
doc, err := Parse(strings.NewReader(text), WithResolver(resolver))
if err != nil {
t.Skip()
}
if got := doc.String(); got != text {
t.Fatalf("wrote %q, want %q", got, text)
}
doc.Flatten().Instrument()
doc.Validate()
})
}
+709
View File
@@ -0,0 +1,709 @@
package sfz
import (
"errors"
"io/fs"
"math"
"os"
"path/filepath"
"reflect"
"slices"
"strings"
"testing"
)
// The tests mark where their expected values come from: "spec" is
// sfzformat.com, "sfizz" is the sfizz player's source, which the spec leaves
// open points to, and "choice" is Zampler's own where neither settles it.
// files returns a Resolver that reads from a map of paths to contents.
func files(m map[string]string) Resolver {
return func(p string) ([]byte, error) {
if s, ok := m[p]; ok {
return []byte(s), nil
}
return nil, fs.ErrNotExist
}
}
// parseFiles parses the main file of a map of files.
func parseFiles(t *testing.T, m map[string]string, opts ...ParseOption) *Document {
t.Helper()
doc, err := Parse(strings.NewReader(m["main.sfz"]), append([]ParseOption{WithResolver(files(m))}, opts...)...)
if err != nil {
t.Fatal(err)
}
return doc
}
// parseText parses a one-file instrument.
func parseText(t *testing.T, text string) *Instrument {
t.Helper()
return parseFiles(t, map[string]string{"main.sfz": text}).Flatten().Instrument()
}
func near(a, b float64) bool { return math.Abs(a-b) < 1e-9 }
// TestVariableNames checks that a variable's name ends at the shortest
// defined name, so an underscore after it is text (ARIA), and that a name with
// an underscore is found when no shorter name is defined.
func TestVariableNames(t *testing.T) {
doc := parseFiles(t, map[string]string{
"main.sfz": "#define $MIC Far\n#define $VEL1 10\n#define $CODE_01 AB\n" +
"<region> sample=$MIC_$VEL1_one-$CODE_01.flac $NOPE_x\n",
})
ops := doc.Flatten().Regions[0].Opcodes
// An undefined variable is left as it is.
if ops["sample"] != "Far_10_one-AB.flac $NOPE_x" {
t.Errorf("sample %q", ops["sample"])
}
}
func TestFlatten(t *testing.T) {
doc := parseFiles(t, map[string]string{
"main.sfz": "#define $DIR Data // the folder\n" +
"#define $V soft\n" +
"<group> #include \"$DIR/a.txt\" lovel=1 #include \"Data/b.txt\"\n" +
"#define $V loud\n" +
"/* a\nblock */<region> sample=$V C#4.wav $UNDEFINED=1\n",
"Data/a.txt": "#define $X 7\nhivel=$X",
"Data/b.txt": "<region> sample=$V.wav",
})
flat := doc.Flatten()
if len(flat.Regions) != 2 {
t.Fatalf("regions %v", flat.Regions)
}
// Variables take the value they had where they are used (sfizz), an
// include is read where it was written (spec), comments are dropped, and a
// # in a note name isn't a directive.
first, second := flat.Regions[0].Opcodes, flat.Regions[1].Opcodes
if first["sample"] != "soft.wav" || first["hivel"] != "7" || first["lovel"] != "1" {
t.Errorf("first region %v", first)
}
if second["sample"] != "loud C#4.wav" || second["$UNDEFINED"] != "1" || second["hivel"] != "7" {
t.Errorf("second region %v", second)
}
if flat.Regions[0].File != "Data/b.txt" || flat.Regions[1].Line != 6 {
t.Errorf("positions %+v %+v", flat.Regions[0], flat.Regions[1])
}
}
// TestVariableOpcodes checks that a variable can stand for opcodes and
// headers, and for part of an opcode's name.
func TestVariableOpcodes(t *testing.T) {
doc := parseFiles(t, map[string]string{
"main.sfz": "#define $RANGE lokey=36 hikey=40\n#define $CC 70\n#define $HEAD <region>\n" +
"$HEAD sample=a.wav $RANGE locc$CC=5\n",
})
ops := doc.Flatten().Regions[0].Opcodes
if ops["lokey"] != "36" || ops["hikey"] != "40" || ops["locc70"] != "5" || ops["sample"] != "a.wav" {
t.Errorf("%v", ops)
}
}
func TestParseErrors(t *testing.T) {
// An include loop and an include nested too deeply are refused (spec:
// "recursion must be avoided"; sfizz limits the depth).
loop := map[string]string{"a": `#include "b"`, "b": `#include "a"`}
if _, err := Parse(strings.NewReader(loop["a"]), WithResolver(files(loop))); err != nil {
// The main file has no name, so b includes a, which includes b.
if !errors.Is(err, ErrIncludeLoop) || !errors.Is(err, ErrInvalid) {
t.Errorf("loop: %v", err)
}
} else {
t.Errorf("loop: no error")
}
deep := map[string]string{}
for i := 0; i <= DefaultLimits.MaxDepth+1; i++ {
deep[string(rune('a'+i))] = `#include "` + string(rune('b'+i)) + `"`
}
if _, err := Parse(strings.NewReader(deep["a"]), WithResolver(files(deep))); !errors.Is(err, ErrInvalid) {
t.Errorf("deep includes: %v", err)
}
// A missing include is reported and left unresolved, unless asked to fail.
missing := `<region> sample=a.wav #include "missing.sfz"`
doc, err := Parse(strings.NewReader(missing), WithResolver(files(nil)))
if err != nil {
t.Fatal(err)
}
problems := doc.Validate()
if len(problems) != 1 || problems[0].Code != "include.unresolved" || problems[0].Col != 23 {
t.Errorf("problems %+v", problems)
}
if len(doc.Flatten().Regions) != 1 {
t.Errorf("regions %v", doc.Flatten().Regions)
}
_, err = Parse(strings.NewReader(missing), WithResolver(files(nil)), WithIncludes(IncludesFail))
if !errors.Is(err, ErrUnresolved) || !errors.Is(err, fs.ErrNotExist) {
t.Errorf("fail mode: %v", err)
}
}
func TestIncludes(t *testing.T) {
// A file's includes are listed once each, in order, with its own
// variables substituted, backslashes read as slashes and paths cleaned.
// An include in a comment isn't one, and an undefined variable is kept.
text := "#define $KIT kick\n" +
"#include \"mappings/$KIT/a.sfz\"\n" +
"// #include \"commented.sfz\"\n" +
"<group> #include \"mappings\\$KIT\\.\\b.sfz\"\n" +
"#include \"mappings/$KIT/a.sfz\"\n" +
"#include \"$UNSET/c.sfz\"\n"
want := []string{"mappings/kick/a.sfz", "mappings/kick/b.sfz", "$UNSET/c.sfz"}
if got := Includes([]byte(text)); !reflect.DeepEqual(got, want) {
t.Errorf("got %q, want %q", got, want)
}
// A file with no includes has none.
if got := Includes([]byte("<region> sample=a.wav")); len(got) != 0 {
t.Errorf("got %q, want none", got)
}
}
func TestInheritance(t *testing.T) {
inst := parseText(t, `
<control> default_path=One/
<global> pan=10
<group> lovel=64 tune=5
<region> sample=a b.wav tune=7
<region> sample=c.wav
<control> default_path=Two/
<group> hivel=90
<region> sample=d.wav
<effect> type=reverb
<master> pan=-20
<region> sample=e.wav
<global>
<region> sample=f.wav
`)
got := map[string]Region{}
for _, r := range inst.Regions {
got[r.Sample] = r
}
// A region has the opcodes of the headers above it, its own winning
// (spec); a new <group> starts without the last group's opcodes (choice:
// the spec doesn't say); and default_path is the one set before the
// region.
if r := got["One/a b.wav"]; r.Tune != 7 || r.LowVelocity != 64 || r.Pan != 10 {
t.Errorf("first region %+v", r)
}
if r := got["One/c.wav"]; r.Tune != 5 || r.LowVelocity != 64 {
t.Errorf("second region %+v", r)
}
if r := got["Two/d.wav"]; r.Tune != 0 || r.LowVelocity != 1 || r.HighVelocity != 90 || r.Pan != 10 {
t.Errorf("third region %+v", r)
}
// A <master> clears the group, and a <global> clears everything (choice:
// the spec says a global applies until the next one).
if r := got["Two/e.wav"]; r.HighVelocity != 127 || r.Pan != -20 {
t.Errorf("fourth region %+v", r)
}
if r := got["Two/f.wav"]; r.Pan != 0 || r.Volume != 0 {
t.Errorf("fifth region %+v", r)
}
if inst.Unread["<effect>"] != 1 || inst.Unread["type"] != 0 {
t.Errorf("unread %v", inst.Unread)
}
// Opcodes before any header apply to every region (choice: the spec
// doesn't say).
if r := parseText(t, "volume=-1\n<region> sample=a.wav").Regions[0]; r.Volume != -1 {
t.Errorf("opcode before any header %+v", r)
}
// A new <control> resets default_path but keeps the other control
// settings (spec, describing ARIA; Cakewalk keeps it).
reset := parseText(t, "<control> default_path=A/ note_offset=12\n<control>\n<region> sample=x.wav key=60")
if r := reset.Regions[0]; r.Sample != "x.wav" || r.LowKey != 72 {
t.Errorf("after a second <control> %+v", r)
}
}
func TestDefaults(t *testing.T) {
r := parseText(t, "<region> sample=a.wav").Regions[0]
// Spec: lovel 1, hivel 127, pitch_keycenter 60, pitch_keytrack 100,
// amp_veltrack 100, ampeg_release 0.001, ampeg_sustain 100, every other
// envelope stage 0, seq_length and seq_position 1, lorand 0 and hirand 1,
// group 0 and no off_by, and no voice limits. (sfizz starts lovel at 0; velocity 0 is a
// note-off, so it makes no difference.)
want := Region{
Sample: "a.wav", LowKey: 0, HighKey: 127, RootKey: 60, LowVelocity: 1, HighVelocity: 127,
KeyTrack: 100, VelocityTracking: 100, Envelope: Envelope{Sustain: 100, Release: 0.001}, Trigger: "attack",
SequenceLength: 1, SequencePosition: 1, HighRandom: 1, OffMode: "fast", OffTime: 0.006,
}
if !reflect.DeepEqual(r, want) {
t.Errorf("defaults\n got %+v\nwant %+v", r, want)
}
}
func TestKeysAndNotes(t *testing.T) {
inst := parseText(t, `
<control> note_offset=1 octave_offset=-1
<region> sample=a.wav key=c4
<region> sample=b.wav lokey=21 hikey=c#2 pitch_keycenter=eb2
<region> sample=c.wav lokey=-1 hikey=-1
<region> sample=d.wav pitch_keycenter=sample
<region> sample=*sine
<region> lokey=1
`)
if len(inst.Regions) != 3 {
t.Fatalf("regions %+v", inst.Regions)
}
// Note names count from c-1, so c4 is 60 (spec), and the control's
// offsets move every key (spec).
if r := inst.Regions[0]; r.LowKey != 49 || r.HighKey != 49 || r.RootKey != 49 {
t.Errorf("key=c4 %+v", r)
}
if r := inst.Regions[1]; r.LowKey != 10 || r.HighKey != 26 || r.RootKey != 28 {
t.Errorf("ranges %+v", r)
}
// A root note that is the sample file's (spec: allowed in v2) is the
// importer's to read, so the region says so, and not the file's note
// before it is read; sfizz keeps the file's root over key, which only sets
// the keys (sfztest).
if r := inst.Regions[2]; !r.RootFromSample || r.Sample != "d.wav" {
t.Errorf("pitch_keycenter=sample %+v", r)
}
if inst.Regions[0].RootFromSample || inst.Regions[1].RootFromSample {
t.Errorf("a root note was taken from the sample: %+v", inst.Regions)
}
if r := parseText(t, "<region> sample=e.wav key=c4 pitch_keycenter=sample").Regions[0]; !r.RootFromSample || r.LowKey != 60 || r.HighKey != 60 {
t.Errorf("key with a root note from the sample %+v", r)
}
want := map[string]int{SkippedNotKeys: 1, SkippedGenerated: 1, SkippedNoSample: 1}
for reason, n := range want {
if inst.Skipped[reason] != n {
t.Errorf("skipped %v", inst.Skipped)
}
}
}
func TestControllers(t *testing.T) {
inst := parseText(t, `
<control> set_cc7=127 set_hdcc20=0.25 set_cc64=0 label_cc20=Mic mix
<curve> curve_index=9 v000=0 v064=1 v127=1
<global> sw_default=c0 sw_lokey=c0 sw_hikey=d0
<region> sample=natural.wav sw_last=c0 amplitude_oncc7=50 volume_oncc20=-8 pan_oncc20=100 pan_curvecc20=1
<region> sample=retuned.wav sw_last=c#0
<region> sample=pedal.wav locc64=64
<region> sample=no-pedal.wav hicc64=63 ampeg_releasecc20=4 ampeg_release_curvecc20=9
<region> sample=switched.wav on_locc64=127
<region> sample=first.wav lorand=0 hirand=0.5
<region> sample=second.wav lorand=0.5 hirand=1
<region> sample=rr2.wav seq_position=2 seq_length=2
<region> sample=hold.wav ampeg_hold=8 ampeg_hold_oncc133=-6 key=127
<region> sample=vel.wav tune_oncc20=50 tune_oncc134=7
`)
got := map[string]Region{}
for _, r := range inst.Regions {
got[r.Sample] = r
}
// A region that a controller or a keyswitch only sometimes plays is kept,
// with what it needs, and only one that a controller starts is skipped.
if len(got) != 9 || !reflect.DeepEqual(inst.Skipped, map[string]int{SkippedByCC: 1}) {
t.Fatalf("regions %v, skipped %v", got, inst.Skipped)
}
// Modulation by a controller is kept as it is, to be applied as notes
// play: the setting has only its own value (spec: _onccN adds), with
// pan's curve 1 and the others' straight one, in the settings' own
// units, and the depth of an amplitude as a percentage.
r := got["natural.wav"]
want := []Modulation{
{Target: TargetAmplitude, Controller: 7, Depth: 50},
{Target: TargetVolume, Controller: 20, Depth: -8},
{Target: TargetPan, Controller: 20, Depth: 100, Curve: 1},
}
if !reflect.DeepEqual(r.Modulations, want) || r.Volume != 0 || r.Pan != 0 {
t.Errorf("natural %+v", r)
}
if !reflect.DeepEqual(r.Keyswitch, &Keyswitch{Last: ptr(12)}) {
t.Errorf("natural's keyswitch %+v", r.Keyswitch)
}
// A custom curve is kept with its points, and is applied when the note
// plays; the opcodes that aren't among the settings that controllers move
// as notes play are taken at the starting values: a quarter of the way
// is about half of the way to v064, and the release adds to its 0.001 s
// default (spec).
if r := got["no-pedal.wav"]; !near(r.Envelope.Release, 0.001+4*(0.25*127/64)) {
t.Errorf("custom curve %+v", r)
}
// Controller 133 is the note number (spec), taken at the region's root
// note (choice), so the hold shortens towards the top key.
if r := got["hold.wav"]; !near(r.Envelope.Hold, 2) {
t.Errorf("key-dependent hold %+v", r)
}
// A controller above 127 belongs to the note, so a modulation by it is
// taken at once: tune_oncc134 is the gate, 1 while a note is held.
if r := got["vel.wav"]; !near(r.Tune, 7) || len(r.Modulations) != 1 || r.Modulations[0].Controller != 20 {
t.Errorf("a note's controller %+v", r)
}
// The conditions are kept, and the switch for a keyswitch that none sets.
if r := got["pedal.wav"]; !reflect.DeepEqual(r.Conditions, []Condition{{Source: SourceController, Controller: 64, Low: 64.0 / 127, High: 1}}) {
t.Errorf("pedal %+v", r.Conditions)
}
if r := got["no-pedal.wav"]; len(r.Conditions) != 1 || r.Conditions[0].High >= 64.0/127 || r.Conditions[0].High < 63.0/127 {
t.Errorf("no-pedal %+v", r.Conditions)
}
if got["retuned.wav"].Keyswitch == nil || *got["retuned.wav"].Keyswitch.Last != 13 {
t.Errorf("retuned %+v", got["retuned.wav"].Keyswitch)
}
// Random and round-robin variants are all kept, to be chosen as they play.
for _, name := range []string{"first.wav", "second.wav", "rr2.wav"} {
if _, ok := got[name]; !ok {
t.Errorf("the variant %s isn't kept", name)
}
}
// The instrument names the controllers it uses, with the starting values
// that set_cc and set_hdcc give.
wantControls := []Control{
{Controller: 7, Value: 1},
{Controller: 20, Label: "Mic mix", Value: 0.25},
{Controller: 64, Value: 0},
}
if !reflect.DeepEqual(inst.Controls, wantControls) {
t.Errorf("controls %+v, want %+v", inst.Controls, wantControls)
}
if k := inst.Keyswitches; k == nil || k.Low != 12 || k.High != 14 || k.Default == nil || *k.Default != 12 {
t.Errorf("keyswitches %+v", k)
}
}
func TestVariantsAndChokes(t *testing.T) {
inst := parseText(t, `
<region> sample=plain.wav
<region> sample=v2.wav polyphony_group=7 off_by=0
<group> seq_length=3 group=2 off_by=2
<region> sample=rr1.wav seq_position=1
<region> sample=rr2.wav seq_position=2 lorand=0.25 hirand=0.75
<region> sample=zero.wav seq_position=0 seq_length=0 lorand=-1 hirand=2
`)
got := map[string]Region{}
for _, r := range inst.Regions {
got[r.Sample] = r
}
// A region is in a round robin of 1 at position 1, takes every random
// value, is in group 0 and is stopped by no group (spec).
if r := got["plain.wav"]; r.SequenceLength != 1 || r.SequencePosition != 1 || r.LowRandom != 0 || r.HighRandom != 1 || r.Group != 0 || r.OffBy != nil {
t.Errorf("defaults %+v", r)
}
// The group's settings reach its regions (spec).
if r := got["rr2.wav"]; r.SequenceLength != 3 || r.SequencePosition != 2 || r.LowRandom != 0.25 || r.HighRandom != 0.75 || r.Group != 2 || r.OffBy == nil || *r.OffBy != 2 {
t.Errorf("round robin, random and choke %+v", r)
}
// A length or position below 1 plays as 1 (sfizz), and random values are
// from 0 to 1 (spec).
if r := got["zero.wav"]; r.SequenceLength != 1 || r.SequencePosition != 1 || r.LowRandom != 0 || r.HighRandom != 1 {
t.Errorf("out of range %+v", r)
}
// polyphony_group is v2's name for group (spec), and off_by may name group
// 0 (spec).
if r := got["v2.wav"]; r.Group != 7 || r.OffBy == nil || *r.OffBy != 0 {
t.Errorf("polyphony_group %+v", r)
}
// None of these opcodes is counted as unread.
if len(inst.Unread) != 0 {
t.Errorf("unread %v", inst.Unread)
}
}
func TestStartingControllers(t *testing.T) {
// Without set_cc, volume starts at 100, pan in the middle and expression
// at full (sfizz); other controllers start at 0 (sfizz). The controllers
// are named with their starting values, and the modulation by them is kept.
inst := parseText(t, `
<region> sample=a.wav amplitude_oncc7=100 pan_oncc10=100 pan_curvecc10=1 volume_oncc11=-10 volume_oncc1=-10
`)
r := inst.Regions[0]
if len(r.Modulations) != 4 || r.Volume != 0 || r.Pan != 0 {
t.Errorf("a region %+v", r)
}
want := []Control{{Controller: 1, Value: 0}, {Controller: 7, Value: 100.0 / 127}, {Controller: 10, Value: 0.5}, {Controller: 11, Value: 1}}
if !reflect.DeepEqual(inst.Controls, want) {
t.Errorf("controls %+v, want %+v", inst.Controls, want)
}
}
func TestControllerConditions(t *testing.T) {
// locc and hicc include both ends, and hiccN includes all of value N
// (sfizz), so a controller at 0.5, which is 63.5 of 127, is within hicc63
// but not locc64. A region keeps the ranges it needs.
inst := parseText(t, `
<region> sample=hicc63.wav hicc20=63
<region> sample=locc64.wav locc20=64
<region> sample=hd.wav lohdcc20=0.25 hihdcc20=0.75
<region> sample=top.wav locc21=10 hicc21=127
<region> sample=other.wav lochan=2 hichan=3 lobend=0 hibend=8192 lochanaft=127 lopolyaft=64 locc200=1
<region> sample=none.wav
`)
got := map[string][]Condition{}
for _, r := range inst.Regions {
got[r.Sample] = r.Conditions
}
within := func(c Condition, v float64) bool { return v >= c.Low && v <= c.High }
hicc63, locc64 := got["hicc63.wav"][0], got["locc64.wav"][0]
if !within(hicc63, 0.5) || within(locc64, 0.5) || !within(locc64, 64.0/127) || within(hicc63, 64.0/127) {
t.Errorf("hicc63 %+v, locc64 %+v", hicc63, locc64)
}
if hd := got["hd.wav"]; len(hd) != 1 || hd[0].Low != 0.25 || hd[0].High != 0.75 {
t.Errorf("hd %+v", hd)
}
if top := got["top.wav"]; len(top) != 1 || top[0].Low != 10.0/127 || top[0].High != 1 {
t.Errorf("top %+v", top)
}
want := []Condition{
{Source: SourceChannel, Low: 2, High: 3},
{Source: SourceBend, Low: 0, High: 1},
{Source: SourceAftertouch, Low: 1, High: 1},
{Source: SourcePolyAftertouch, Low: 64.0 / 127, High: 1},
}
if !reflect.DeepEqual(got["other.wav"], want) {
t.Errorf("channel, bend and aftertouch %+v, want %+v", got["other.wav"], want)
}
if got["none.wav"] != nil {
t.Errorf("a region with none %+v", got["none.wav"])
}
if len(inst.Unread) != 1 || inst.Unread["locc200"] != 0 {
t.Logf("unread %v", inst.Unread)
}
}
func TestKeyswitches(t *testing.T) {
// Every region is kept with the keyswitches it needs, and the first
// articulation is the one down at the start unless sw_default says
// otherwise, as an SFZ player has none until a keyswitch is pressed
// (spec, sfizz) and Zampler starts with one (choice).
inst := parseText(t, `
<region> sample=first.wav sw_last=24
<region> sample=second.wav sw_last=25 sw_previous=24
<region> sample=held.wav sw_down=26 sw_up=27
<region> sample=always.wav
`)
got := map[string]*Keyswitch{}
for _, r := range inst.Regions {
got[r.Sample] = r.Keyswitch
}
if len(inst.Regions) != 4 || len(inst.Skipped) != 0 {
t.Fatalf("regions %v, skipped %v", got, inst.Skipped)
}
if k := got["first.wav"]; k == nil || *k.Last != 24 || k.Previous != nil {
t.Errorf("first %+v", k)
}
if k := got["second.wav"]; k == nil || *k.Last != 25 || *k.Previous != 24 {
t.Errorf("second %+v", k)
}
if k := got["held.wav"]; k == nil || *k.Down != 26 || *k.Up != 27 || k.Last != nil {
t.Errorf("held %+v", k)
}
if got["always.wav"] != nil {
t.Errorf("always %+v", got["always.wav"])
}
// With no sw_lokey and sw_hikey, the keys are those that regions name.
if k := inst.Keyswitches; k == nil || k.Low != 24 || k.High != 27 || k.Default == nil || *k.Default != 24 {
t.Errorf("keyswitch range %+v", k)
}
if parseText(t, "<region> sample=a.wav").Keyswitches != nil {
t.Error("an instrument with no keyswitches has some")
}
// A seq_position of 0 plays as 1 (sfizz).
if r := parseText(t, "<region> sample=a.wav seq_position=0"); len(r.Regions) != 1 {
t.Errorf("seq_position=0 skipped: %v", r.Skipped)
}
}
func TestModulationsAndBend(t *testing.T) {
inst := parseText(t, `
<region> sample=a.wav width=50 width_oncc3=-25 gain_oncc4=3 pitch_oncc5=100 bend_up=1200 bend_down=-100 bend_step=100
<region> sample=b.wav
`)
a, b := inst.Regions[0], inst.Regions[1]
if a.Width == nil || *a.Width != 50 {
t.Errorf("width %v", a.Width)
}
want := []Modulation{
{Target: TargetVolume, Controller: 4, Depth: 3},
{Target: TargetWidth, Controller: 3, Depth: -25},
{Target: TargetTune, Controller: 5, Depth: 100},
}
if !reflect.DeepEqual(a.Modulations, want) {
t.Errorf("modulations %+v, want %+v", a.Modulations, want)
}
if a.BendUp == nil || *a.BendUp != 1200 || *a.BendDown != -100 || *a.BendStep != 100 {
t.Errorf("bend %v %v %v", a.BendUp, a.BendDown, a.BendStep)
}
if b.Width != nil || b.BendUp != nil || b.Modulations != nil || b.Conditions != nil {
t.Errorf("a region with none %+v", b)
}
if len(inst.Unread) != 0 {
t.Errorf("unread %v", inst.Unread)
}
}
func TestOtherOpcodes(t *testing.T) {
inst := parseText(t, `
<region> sample=a.wav tune=-20 transpose=1 pitch_keytrack=0 offset=100 amp_veltrack=40 group_volume=-3
trigger=release rt_decay=6 loop_mode=loop_continuous loopstart=10 loop_end=20 ampeg_sustain=150 cutoff=500
`)
r := inst.Regions[0]
if r.Tune != 80 || r.KeyTrack != 0 || r.Offset != 100 || r.VelocityTracking != 40 || r.Volume != -3 {
t.Errorf("settings %+v", r)
}
if r.Trigger != "release" || r.ReleaseDecay != 6 || r.LoopMode != "loop_continuous" || *r.LoopStart != 10 || *r.LoopEnd != 20 || r.Envelope.Sustain != 100 {
t.Errorf("trigger, loop and envelope %+v", r)
}
// An opcode that isn't read is counted, and the region still plays
// (choice). ampeg_sustain is at most 100 (spec).
if inst.Unread["cutoff"] != 1 || len(inst.Unread) != 1 {
t.Errorf("unread %v", inst.Unread)
}
}
func TestSplendid(t *testing.T) {
doc, err := ParseFile(os.DirFS(filepath.Join("testdata", "splendid")), "Splendid Grand Piano.sfz")
if err != nil {
t.Fatal(err)
}
inst := doc.Flatten().Instrument()
// Five velocity layers of about 60 regions each, and the string resonance,
// which needs the sustain pedal down, is kept with its conditions.
if len(inst.Regions) != 360 || len(inst.Skipped) != 0 {
t.Errorf("%d regions, skipped %v", len(inst.Regions), inst.Skipped)
}
layers := map[[2]int]int{}
resonance := 0
for _, r := range inst.Regions {
if len(r.Conditions) > 0 {
resonance++
continue
}
layers[[2]int{r.LowVelocity, r.HighVelocity}]++
}
if resonance != 57 {
t.Errorf("%d regions have conditions", resonance)
}
if len(layers) != 5 || layers[[2]int{1, 40}] != 61 || layers[[2]int{101, 127}] == 0 {
t.Errorf("velocity layers %v", layers)
}
// The lowest region that always plays: its own release plus 0.7 s from the
// Release control at 0.35 × 2 (spec: _onccN adds), and a hold and decay
// shortened by its key. Its level comes from the volume control at 100
// through curve 4, x² (sfizz), multiplied (sfizz), which is kept to be
// applied as notes play.
var r Region
for _, candidate := range inst.Regions {
if len(candidate.Conditions) == 0 {
r = candidate
break
}
}
if r.Sample != "Samples/PP B-1.flac" || r.LowKey != 21 || r.HighKey != 24 || r.RootKey != 23 {
t.Errorf("first region %+v", r)
}
if !near(r.Envelope.Release, 1.3) || !near(r.Envelope.Hold, 8-6*23.0/127) || !near(r.Envelope.Decay, 80-60*23.0/127) || r.Envelope.Sustain != 0 {
t.Errorf("first region's envelope %+v", r.Envelope)
}
volume := Modulation{Target: TargetAmplitude, Controller: 7, Depth: 100, Curve: 4}
if !slices.ContainsFunc(r.Modulations, func(m Modulation) bool {
return m.Target == volume.Target && m.Controller == 7 && m.Depth == 100 && m.Curve == 4
}) || r.VelocityTracking != 100 {
t.Errorf("first region's level %+v", r)
}
// What isn't read is listed: the filter on the softest layer, and the
// pedal settings.
for _, name := range []string{"cutoff", "sustain_cc", "ampeg_dynamic", "ampeg_release_shape"} {
if inst.Unread[name] == 0 {
t.Errorf("%s isn't listed as unread: %v", name, inst.Unread)
}
}
if inst.Unread["cutoff"] != 61 {
t.Errorf("cutoff on %d regions", inst.Unread["cutoff"])
}
}
// A region's velocity curve passes through its amp_velcurve_N points, and
// starts at 0 and ends at 1 unless it says otherwise (sfizz).
func TestVelocityCurve(t *testing.T) {
inst := parseText(t, `<region> sample=a.wav amp_velcurve_127=0.8 amp_velcurve_32=0.1 amp_velcurve_64=0.5
<region> sample=b.wav amp_velcurve_0=0.2
<region> sample=c.wav`)
want := []CurvePoint{{0, 0}, {32, 0.1}, {64, 0.5}, {127, 0.8}}
if !reflect.DeepEqual(inst.Regions[0].VelocityCurve, want) {
t.Errorf("curve %v, want %v", inst.Regions[0].VelocityCurve, want)
}
if got := inst.Regions[1].VelocityCurve; !reflect.DeepEqual(got, []CurvePoint{{0, 0.2}, {127, 1}}) {
t.Errorf("curve ends %v", got)
}
if inst.Regions[2].VelocityCurve != nil {
t.Errorf("a region with no points has the curve %v", inst.Regions[2].VelocityCurve)
}
if len(inst.Unread) != 0 {
t.Errorf("unread %v", inst.Unread)
}
}
// Crossfades are over keys, which note names and the control header's
// offsets move, or velocities, and are power curves unless gain is asked for
// (spec).
func TestCrossfades(t *testing.T) {
inst := parseText(t, `<control> note_offset=2
<region> sample=a.wav xfin_lokey=c4 xfin_hikey=64 xfout_lokey=70 xfout_hikey=80 xfin_lovel=10 xfin_hivel=40 xf_velcurve=gain
<region> sample=b.wav xfout_lovel=100 xfout_hivel=127
<region> sample=c.wav`)
a := inst.Regions[0]
wantKeys := &Crossfade{FadeInLow: 62, FadeInHigh: 66, FadeOutLow: 72, FadeOutHigh: 82, Curve: "power"}
if !reflect.DeepEqual(a.KeyCrossfade, wantKeys) {
t.Errorf("key crossfade %+v, want %+v", a.KeyCrossfade, wantKeys)
}
wantVel := &Crossfade{FadeInLow: 10, FadeInHigh: 40, FadeOutLow: 127, FadeOutHigh: 127, Curve: "gain"}
if !reflect.DeepEqual(a.VelocityCrossfade, wantVel) {
t.Errorf("velocity crossfade %+v, want %+v", a.VelocityCrossfade, wantVel)
}
b := inst.Regions[1]
if b.KeyCrossfade != nil || b.VelocityCrossfade == nil || b.VelocityCrossfade.FadeInHigh != 0 || b.VelocityCrossfade.FadeOutLow != 100 {
t.Errorf("b: %+v, %+v", b.KeyCrossfade, b.VelocityCrossfade)
}
if c := inst.Regions[2]; c.KeyCrossfade != nil || c.VelocityCrossfade != nil {
t.Errorf("c: %+v, %+v", c.KeyCrossfade, c.VelocityCrossfade)
}
if len(inst.Unread) != 0 {
t.Errorf("unread %v", inst.Unread)
}
}
// polyphony limits the voices of a region's group, note_polyphony those of one
// key, and off_mode and off_time say how a stopped region fades (spec). A
// limit below 1 isn't one, and the mode is fast, taking 6 ms, unless said
// (sfizz).
func TestVoiceLimits(t *testing.T) {
inst := parseText(t, `<group> polyphony=4 note_polyphony=2 off_mode=normal
<region> sample=a.wav
<region> sample=b.wav off_mode=time off_time=0.25 polyphony=1
<region> sample=c.wav polyphony=0 note_polyphony=-3 off_mode=bogus off_time=-1
<region> sample=d.wav`)
a, b, c, d := inst.Regions[0], inst.Regions[1], inst.Regions[2], inst.Regions[3]
if a.Polyphony == nil || *a.Polyphony != 4 || a.NotePolyphony == nil || *a.NotePolyphony != 2 || a.OffMode != "normal" || a.OffTime != 0.006 {
t.Errorf("a %+v", a)
}
if b.Polyphony == nil || *b.Polyphony != 1 || b.OffMode != "time" || b.OffTime != 0.25 {
t.Errorf("b %+v", b)
}
if c.Polyphony != nil || c.NotePolyphony != nil || c.OffMode != "fast" || c.OffTime != 0.006 {
t.Errorf("c %+v", c)
}
if d.Polyphony == nil || *d.Polyphony != 4 {
t.Errorf("d %+v", d)
}
plain := parseText(t, `<region> sample=a.wav`).Regions[0]
if plain.Polyphony != nil || plain.NotePolyphony != nil || plain.OffMode != "fast" || plain.OffTime != 0.006 {
t.Errorf("a region with none %+v", plain)
}
if len(inst.Unread) != 0 {
t.Errorf("unread %v", inst.Unread)
}
}
+57
View File
@@ -0,0 +1,57 @@
<region> region_label=01 lokey=021 hikey=024 pitch_keycenter=023 ampeg_release=0.6 sample=FF B-1.$EXT
<region> region_label=02 lokey=025 hikey=027 pitch_keycenter=027 ampeg_release=0.5 sample=FF D#0.$EXT
<region> region_label=03 lokey=028 hikey=030 pitch_keycenter=029 ampeg_release=0.4 sample=FF F0.$EXT
<region> region_label=04 lokey=031 hikey=032 pitch_keycenter=031 ampeg_release=0.3 sample=FF G0.$EXT
<region> region_label=05 lokey=033 hikey=034 pitch_keycenter=033 ampeg_release=0.2 sample=FF A0.$EXT
<region> region_label=06 lokey=035 hikey=035 pitch_keycenter=035 ampeg_release=0.1 sample=FF B0.$EXT
<region> region_label=07 lokey=036 hikey=037 pitch_keycenter=037 sample=FF C#1.$EXT
<region> region_label=08 lokey=038 hikey=039 pitch_keycenter=038 sample=FF D1.$EXT
<region> region_label=09 lokey=040 hikey=040 pitch_keycenter=040 sample=FF E1.$EXT
<region> region_label=10 lokey=041 hikey=041 pitch_keycenter=041 sample=FF F1.$EXT
<region> region_label=11 lokey=042 hikey=044 pitch_keycenter=043 sample=FF G1.$EXT offset=100
<region> region_label=12 lokey=045 hikey=046 pitch_keycenter=045 sample=FF A1.$EXT
<region> region_label=13 lokey=047 hikey=047 pitch_keycenter=047 sample=FF B1.$EXT
<region> region_label=14 lokey=048 hikey=049 pitch_keycenter=048 sample=FF C2.$EXT
<region> region_label=15 lokey=050 hikey=050 pitch_keycenter=050 sample=FF D2.$EXT
<region> region_label=16 lokey=051 hikey=052 pitch_keycenter=052 sample=FF E2.$EXT
<region> region_label=17 lokey=053 hikey=054 pitch_keycenter=053 sample=FF F2.$EXT
<region> region_label=18 lokey=055 hikey=055 pitch_keycenter=055 sample=FF G2.$EXT
<region> region_label=19 lokey=056 hikey=056 pitch_keycenter=056 sample=FF G#2.$EXT
<region> region_label=20 lokey=057 hikey=057 pitch_keycenter=057 sample=FF A2.$EXT
<region> region_label=21 lokey=058 hikey=058 pitch_keycenter=058 sample=FF A#2.$EXT
<region> region_label=22 lokey=059 hikey=059 pitch_keycenter=059 sample=FF B2.$EXT
<region> region_label=23 lokey=060 hikey=061 pitch_keycenter=060 sample=FF C3.$EXT offset=325
<region> region_label=24 lokey=062 hikey=063 pitch_keycenter=062 sample=FF D3.$EXT
<region> region_label=25 lokey=064 hikey=064 pitch_keycenter=064 sample=FF E3.$EXT
<region> region_label=26 lokey=065 hikey=066 pitch_keycenter=065 sample=FF F3.$EXT
<region> region_label=27 lokey=067 hikey=068 pitch_keycenter=067 sample=FF G3.$EXT
<region> region_label=28 lokey=069 hikey=069 pitch_keycenter=069 sample=FF A3.$EXT
<region> region_label=29 lokey=070 hikey=071 pitch_keycenter=071 sample=FF B3.$EXT
<region> region_label=30 lokey=072 hikey=073 pitch_keycenter=072 sample=FF C4.$EXT
<region> region_label=31 lokey=074 hikey=075 pitch_keycenter=074 sample=FF D4.$EXT
<region> region_label=32 lokey=076 hikey=076 pitch_keycenter=076 sample=FF E4.$EXT
<region> region_label=33 lokey=077 hikey=078 pitch_keycenter=077 sample=FF F4.$EXT
<region> region_label=34 lokey=079 hikey=079 pitch_keycenter=079 sample=FF G4.$EXT
<region> region_label=35 lokey=080 hikey=080 pitch_keycenter=080 sample=FF G#4.$EXT
<region> region_label=36 lokey=081 hikey=081 pitch_keycenter=081 sample=FF A4.$EXT
<region> region_label=37 lokey=082 hikey=082 pitch_keycenter=082 sample=FF A#4.$EXT
<region> region_label=38 lokey=083 hikey=083 pitch_keycenter=083 sample=FF B4.$EXT
<region> region_label=39 lokey=084 hikey=085 pitch_keycenter=085 ampeg_release=0.2 sample=FF C#5.$EXT
<region> region_label=40 lokey=086 hikey=087 pitch_keycenter=086 ampeg_release=0.4 sample=FF D5.$EXT
<region> region_label=41 lokey=088 hikey=088 pitch_keycenter=088 ampeg_release=0.5 sample=FF E5.$EXT
<region> region_label=42 lokey=089 hikey=090 pitch_keycenter=089 ampeg_release=0.6 sample=FF F5.$EXT
<region> region_label=43 lokey=091 hikey=092 pitch_keycenter=091 ampeg_release=10 sample=FF G5.$EXT
<region> region_label=44 lokey=093 hikey=094 pitch_keycenter=093 ampeg_release=10 sample=FF A5.$EXT
<region> region_label=45 lokey=095 hikey=095 pitch_keycenter=095 ampeg_release=10 sample=Mf B5.$EXT
<region> region_label=46 lokey=096 hikey=097 pitch_keycenter=096 ampeg_release=10 sample=Mf C6.$EXT
<region> region_label=47 lokey=098 hikey=098 pitch_keycenter=097 ampeg_release=10 sample=Mf C#6.$EXT
<region> region_label=48 lokey=099 hikey=099 pitch_keycenter=098 ampeg_release=10 sample=Mf D6.$EXT
<region> region_label=49 lokey=100 hikey=100 pitch_keycenter=099 ampeg_release=10 sample=Mf D#6.$EXT
<region> region_label=50 lokey=101 hikey=101 pitch_keycenter=100 ampeg_release=10 sample=Mf E6.$EXT
<region> region_label=51 lokey=102 hikey=102 pitch_keycenter=102 ampeg_release=10 sample=Mf F#6.$EXT
<region> region_label=52 lokey=103 hikey=103 pitch_keycenter=103 ampeg_release=10 sample=Mf G6.$EXT
<region> region_label=53 lokey=104 hikey=104 pitch_keycenter=104 ampeg_release=10 sample=Mf G#6.$EXT
<region> region_label=54 lokey=105 hikey=105 pitch_keycenter=105 ampeg_release=10 sample=Mf A6.$EXT
<region> region_label=55 lokey=106 hikey=106 pitch_keycenter=106 ampeg_release=10 sample=Mf A#6.$EXT
<region> region_label=56 lokey=107 hikey=107 pitch_keycenter=107 ampeg_release=10 sample=Mf B6.$EXT
<region> region_label=57 lokey=108 hikey=108 pitch_keycenter=108 ampeg_release=10 sample=Mf C7.$EXT
+62
View File
@@ -0,0 +1,62 @@
<region> region_label=01 lokey=021 hikey=024 pitch_keycenter=023 ampeg_release=0.6 sample=Mf B-1.$EXT
<region> region_label=02 lokey=025 hikey=027 pitch_keycenter=027 ampeg_release=0.5 sample=Mf D#0.$EXT
<region> region_label=03 lokey=028 hikey=030 pitch_keycenter=029 ampeg_release=0.4 sample=Mf F0.$EXT
<region> region_label=04 lokey=031 hikey=032 pitch_keycenter=031 ampeg_release=0.3 sample=Mf G0.$EXT
<region> region_label=05 lokey=033 hikey=034 pitch_keycenter=033 ampeg_release=0.2 sample=Mf A0.$EXT
<region> region_label=06 lokey=035 hikey=035 pitch_keycenter=035 ampeg_release=0.1 sample=Mf B0.$EXT
<region> region_label=07 lokey=036 hikey=037 pitch_keycenter=037 sample=MF C#1.$EXT
<region> region_label=08 lokey=038 hikey=039 pitch_keycenter=038 sample=MF D1.$EXT
<region> region_label=09 lokey=040 hikey=040 pitch_keycenter=040 sample=MF E1.$EXT
<region> region_label=10 lokey=041 hikey=041 pitch_keycenter=041 sample=MF F1.$EXT
<region> region_label=11 lokey=042 hikey=044 pitch_keycenter=043 sample=MF G1.$EXT
<region> region_label=12 lokey=045 hikey=046 pitch_keycenter=045 sample=MF A1.$EXT
<region> region_label=13 lokey=047 hikey=047 pitch_keycenter=047 sample=MF B1.$EXT
<region> region_label=14 lokey=048 hikey=049 pitch_keycenter=048 sample=MF C2.$EXT
<region> region_label=15 lokey=050 hikey=050 pitch_keycenter=050 sample=MF D2.$EXT
<region> region_label=16 lokey=051 hikey=052 pitch_keycenter=052 sample=MF E2.$EXT
<region> region_label=17 lokey=053 hikey=054 pitch_keycenter=053 sample=MF F2.$EXT
<region> region_label=18 lokey=055 hikey=055 pitch_keycenter=055 sample=MF G2.$EXT
<region> region_label=19 lokey=056 hikey=056 pitch_keycenter=056 sample=MF G#2.$EXT
<region> region_label=20 lokey=057 hikey=057 pitch_keycenter=057 sample=MF A2.$EXT
<region> region_label=21 lokey=058 hikey=058 pitch_keycenter=058 sample=MF A#2.$EXT
<region> region_label=22 lokey=059 hikey=059 pitch_keycenter=059 sample=MF B2.$EXT
<region> region_label=23 lokey=060 hikey=061 pitch_keycenter=060 sample=MF C3.$EXT
<region> region_label=24 lokey=062 hikey=063 pitch_keycenter=062 sample=MF D3.$EXT
<region> region_label=25 lokey=064 hikey=064 pitch_keycenter=064 sample=MF E3.$EXT
<region> region_label=26 lokey=065 hikey=066 pitch_keycenter=065 sample=MF F3.$EXT
<region> region_label=27 lokey=067 hikey=068 pitch_keycenter=067 sample=MF G3.$EXT
<region> region_label=28 lokey=069 hikey=069 pitch_keycenter=069 sample=MF A3.$EXT
<region> region_label=29 lokey=070 hikey=071 pitch_keycenter=071 sample=MF B3.$EXT
<region> region_label=30 lokey=072 hikey=073 pitch_keycenter=072 sample=MF C4.$EXT
<region> region_label=31 lokey=074 hikey=075 pitch_keycenter=074 sample=Mf D4.$EXT
<region> region_label=32 lokey=076 hikey=076 pitch_keycenter=076 sample=Mf E4.$EXT
<region> region_label=33 lokey=077 hikey=078 pitch_keycenter=077 sample=Mf F4.$EXT
<region> region_label=34 lokey=079 hikey=079 pitch_keycenter=079 sample=Mf G4.$EXT
<region> region_label=35 lokey=080 hikey=080 pitch_keycenter=080 sample=Mf G#4.$EXT
<region> region_label=36 lokey=081 hikey=081 pitch_keycenter=081 sample=Mf A4.$EXT
<region> region_label=37 lokey=082 hikey=082 pitch_keycenter=082 sample=Mf A#4.$EXT
<region> region_label=38 lokey=083 hikey=083 pitch_keycenter=083 sample=Mf B4.$EXT
<region> region_label=39 lokey=084 hikey=085 pitch_keycenter=085 ampeg_release=0.1 sample=Mf C#5.$EXT
<region> region_label=40 lokey=086 hikey=086 pitch_keycenter=086 ampeg_release=0.2 sample=Mf D5.$EXT
<region> region_label=41 lokey=087 hikey=087 pitch_keycenter=087 ampeg_release=0.3 sample=Mf D#5.$EXT
<region> region_label=42 lokey=088 hikey=088 pitch_keycenter=088 ampeg_release=0.4 sample=Mf E5.$EXT
<region> region_label=43 lokey=089 hikey=089 pitch_keycenter=089 ampeg_release=0.5 sample=Mf F5.$EXT
<region> region_label=44 lokey=090 hikey=090 pitch_keycenter=090 ampeg_release=0.6 sample=Mf F#5.$EXT
<region> region_label=45 lokey=091 hikey=091 pitch_keycenter=091 ampeg_release=10 sample=Mf G5.$EXT
<region> region_label=46 lokey=092 hikey=092 pitch_keycenter=092 ampeg_release=10 sample=Mf G#5.$EXT
<region> region_label=47 lokey=093 hikey=093 pitch_keycenter=093 ampeg_release=10 sample=Mf A5.$EXT
<region> region_label=48 lokey=094 hikey=094 pitch_keycenter=094 ampeg_release=10 sample=Mf A#5.$EXT
<region> region_label=49 lokey=095 hikey=095 pitch_keycenter=095 ampeg_release=10 sample=Mf B5.$EXT
<region> region_label=50 lokey=096 hikey=096 pitch_keycenter=096 ampeg_release=10 sample=Mf C6.$EXT
<region> region_label=51 lokey=097 hikey=097 pitch_keycenter=097 ampeg_release=10 sample=Mf C#6.$EXT
<region> region_label=52 lokey=098 hikey=098 pitch_keycenter=098 ampeg_release=10 sample=Mf D6.$EXT
<region> region_label=53 lokey=099 hikey=099 pitch_keycenter=099 ampeg_release=10 sample=Mf D#6.$EXT
<region> region_label=54 lokey=100 hikey=100 pitch_keycenter=100 ampeg_release=10 sample=Mf E6.$EXT
<region> region_label=55 lokey=101 hikey=101 pitch_keycenter=101 ampeg_release=10 sample=Mf F6.$EXT
<region> region_label=56 lokey=102 hikey=102 pitch_keycenter=102 ampeg_release=10 sample=Mf F#6.$EXT
<region> region_label=57 lokey=103 hikey=103 pitch_keycenter=103 ampeg_release=10 sample=Mf G6.$EXT
<region> region_label=58 lokey=104 hikey=104 pitch_keycenter=104 ampeg_release=10 sample=Mf G#6.$EXT
<region> region_label=59 lokey=105 hikey=105 pitch_keycenter=105 ampeg_release=10 sample=Mf A6.$EXT
<region> region_label=60 lokey=106 hikey=106 pitch_keycenter=106 ampeg_release=10 sample=Mf A#6.$EXT
<region> region_label=61 lokey=107 hikey=107 pitch_keycenter=107 ampeg_release=10 sample=Mf B6.$EXT
<region> region_label=62 lokey=108 hikey=108 pitch_keycenter=108 ampeg_release=10 sample=Mf C7.$EXT
+62
View File
@@ -0,0 +1,62 @@
<region> region_label=01 lokey=021 hikey=024 pitch_keycenter=023 ampeg_release=0.6 sample=Mp B-1.$EXT
<region> region_label=02 lokey=025 hikey=027 pitch_keycenter=027 ampeg_release=0.5 sample=Mp D#0.$EXT
<region> region_label=03 lokey=028 hikey=030 pitch_keycenter=029 ampeg_release=0.4 sample=Mp F0.$EXT
<region> region_label=04 lokey=031 hikey=032 pitch_keycenter=031 ampeg_release=0.3 sample=Mp G0.$EXT
<region> region_label=05 lokey=033 hikey=034 pitch_keycenter=033 ampeg_release=0.2 sample=Mp A0.$EXT
<region> region_label=06 lokey=035 hikey=035 pitch_keycenter=035 ampeg_release=0.1 sample=Mp B0.$EXT
<region> region_label=07 lokey=036 hikey=037 pitch_keycenter=037 sample=Mp C#1.$EXT
<region> region_label=08 lokey=038 hikey=039 pitch_keycenter=038 sample=Mp D1.$EXT
<region> region_label=09 lokey=040 hikey=040 pitch_keycenter=040 sample=Mp E1.$EXT
<region> region_label=10 lokey=041 hikey=041 pitch_keycenter=041 sample=Mp F1.$EXT
<region> region_label=11 lokey=042 hikey=044 pitch_keycenter=043 sample=Mp G1.$EXT
<region> region_label=12 lokey=045 hikey=046 pitch_keycenter=045 sample=Mp A1.$EXT
<region> region_label=13 lokey=047 hikey=047 pitch_keycenter=047 sample=Mp B1.$EXT
<region> region_label=14 lokey=048 hikey=049 pitch_keycenter=048 sample=Mp C2.$EXT
<region> region_label=15 lokey=050 hikey=050 pitch_keycenter=050 sample=Mp D2.$EXT
<region> region_label=16 lokey=051 hikey=052 pitch_keycenter=052 sample=Mp E2.$EXT
<region> region_label=17 lokey=053 hikey=054 pitch_keycenter=053 sample=Mp F2.$EXT
<region> region_label=18 lokey=055 hikey=055 pitch_keycenter=055 sample=Mp G2.$EXT
<region> region_label=19 lokey=056 hikey=056 pitch_keycenter=056 sample=Mp G#2.$EXT
<region> region_label=20 lokey=057 hikey=057 pitch_keycenter=057 sample=Mp A2.$EXT
<region> region_label=21 lokey=058 hikey=058 pitch_keycenter=058 sample=Mp A#2.$EXT
<region> region_label=22 lokey=059 hikey=059 pitch_keycenter=059 sample=Mp B2.$EXT
<region> region_label=23 lokey=060 hikey=061 pitch_keycenter=060 sample=Mp C3.$EXT
<region> region_label=24 lokey=062 hikey=063 pitch_keycenter=062 sample=Mp D3.$EXT offset=11
<region> region_label=25 lokey=064 hikey=064 pitch_keycenter=064 sample=Mp E3.$EXT
<region> region_label=26 lokey=065 hikey=066 pitch_keycenter=065 sample=Mp F3.$EXT
<region> region_label=27 lokey=067 hikey=068 pitch_keycenter=067 sample=Mp G3.$EXT
<region> region_label=28 lokey=069 hikey=069 pitch_keycenter=069 sample=Mp A3.$EXT
<region> region_label=29 lokey=070 hikey=071 pitch_keycenter=071 sample=Mp B3.$EXT
<region> region_label=30 lokey=072 hikey=073 pitch_keycenter=072 sample=Mp C4.$EXT
<region> region_label=31 lokey=074 hikey=075 pitch_keycenter=074 sample=Mp D4.$EXT
<region> region_label=32 lokey=076 hikey=076 pitch_keycenter=076 sample=Mp E4.$EXT
<region> region_label=33 lokey=077 hikey=078 pitch_keycenter=077 sample=Mp F4.$EXT
<region> region_label=34 lokey=079 hikey=079 pitch_keycenter=079 sample=Mp G4.$EXT
<region> region_label=35 lokey=080 hikey=080 pitch_keycenter=080 sample=Mp G#4.$EXT
<region> region_label=36 lokey=081 hikey=081 pitch_keycenter=081 sample=Mp A4.$EXT
<region> region_label=37 lokey=082 hikey=082 pitch_keycenter=082 sample=Mp A#4.$EXT
<region> region_label=38 lokey=083 hikey=083 pitch_keycenter=083 sample=Mp B4.$EXT
<region> region_label=39 lokey=084 hikey=085 pitch_keycenter=085 ampeg_release=0.1 sample=Mp C#5.$EXT
<region> region_label=40 lokey=086 hikey=086 pitch_keycenter=086 ampeg_release=0.2 sample=Mp D5.$EXT
<region> region_label=41 lokey=087 hikey=087 pitch_keycenter=087 ampeg_release=0.3 sample=Mp D#5.$EXT
<region> region_label=42 lokey=088 hikey=088 pitch_keycenter=088 ampeg_release=0.4 sample=Mp E5.$EXT
<region> region_label=43 lokey=089 hikey=089 pitch_keycenter=089 ampeg_release=0.5 sample=Mp F5.$EXT
<region> region_label=44 lokey=090 hikey=090 pitch_keycenter=090 ampeg_release=0.6 sample=Mp F#5.$EXT
<region> region_label=45 lokey=091 hikey=091 pitch_keycenter=091 ampeg_release=10 sample=Mp G5.$EXT
<region> region_label=46 lokey=092 hikey=092 pitch_keycenter=092 ampeg_release=10 sample=Mp G#5.$EXT
<region> region_label=47 lokey=093 hikey=093 pitch_keycenter=093 ampeg_release=10 sample=Mp A5.$EXT
<region> region_label=48 lokey=094 hikey=094 pitch_keycenter=094 ampeg_release=10 sample=Mp A#5.$EXT
<region> region_label=49 lokey=095 hikey=095 pitch_keycenter=095 ampeg_release=10 sample=Mp B5.$EXT
<region> region_label=50 lokey=096 hikey=096 pitch_keycenter=096 ampeg_release=10 sample=Mp C6.$EXT
<region> region_label=51 lokey=097 hikey=097 pitch_keycenter=097 ampeg_release=10 sample=Mp C#6.$EXT
<region> region_label=52 lokey=098 hikey=098 pitch_keycenter=098 ampeg_release=10 sample=Mp D6.$EXT
<region> region_label=53 lokey=099 hikey=099 pitch_keycenter=099 ampeg_release=10 sample=Mp D#6.$EXT
<region> region_label=54 lokey=100 hikey=100 pitch_keycenter=100 ampeg_release=10 sample=PP E6.$EXT
<region> region_label=55 lokey=101 hikey=101 pitch_keycenter=101 ampeg_release=10 sample=Mp F6.$EXT
<region> region_label=56 lokey=102 hikey=102 pitch_keycenter=102 ampeg_release=10 sample=Mp F#6.$EXT
<region> region_label=57 lokey=103 hikey=103 pitch_keycenter=103 ampeg_release=10 sample=Mp G6.$EXT
<region> region_label=58 lokey=104 hikey=104 pitch_keycenter=104 ampeg_release=10 sample=Mp G#6.$EXT
<region> region_label=59 lokey=105 hikey=105 pitch_keycenter=105 ampeg_release=10 sample=Mp A6.$EXT
<region> region_label=60 lokey=106 hikey=106 pitch_keycenter=106 ampeg_release=10 sample=Mp A#6.$EXT
<region> region_label=61 lokey=107 hikey=107 pitch_keycenter=107 ampeg_release=10 sample=PP B6.$EXT
<region> region_label=62 lokey=108 hikey=108 pitch_keycenter=108 ampeg_release=10 sample=PP C7.$EXT
+61
View File
@@ -0,0 +1,61 @@
<region> region_label=01 lokey=021 hikey=024 pitch_keycenter=023 ampeg_release=0.6 sample=PP B-1.$EXT
<region> region_label=02 lokey=025 hikey=027 pitch_keycenter=027 ampeg_release=0.5 sample=PP D#0.$EXT
<region> region_label=03 lokey=028 hikey=030 pitch_keycenter=029 ampeg_release=0.4 sample=PP F0.$EXT
<region> region_label=04 lokey=031 hikey=032 pitch_keycenter=031 ampeg_release=0.3 sample=PP G0.$EXT
<region> region_label=05 lokey=033 hikey=034 pitch_keycenter=033 ampeg_release=0.2 sample=PP A0.$EXT
<region> region_label=06 lokey=035 hikey=035 pitch_keycenter=035 ampeg_release=0.1 sample=PP B0.$EXT offset=618
<region> region_label=07 lokey=036 hikey=037 pitch_keycenter=037 sample=PP C#1.$EXT volume=1
<region> region_label=08 lokey=038 hikey=039 pitch_keycenter=038 sample=PP D1.$EXT offset=1046
<region> region_label=09 lokey=040 hikey=040 pitch_keycenter=040 sample=PP E1.$EXT
<region> region_label=10 lokey=041 hikey=041 pitch_keycenter=041 sample=PP F1.$EXT
<region> region_label=11 lokey=042 hikey=044 pitch_keycenter=043 sample=PP G1.$EXT
<region> region_label=12 lokey=045 hikey=046 pitch_keycenter=045 sample=PP A1.$EXT
<region> region_label=13 lokey=047 hikey=047 pitch_keycenter=047 sample=PP B1.$EXT
<region> region_label=14 lokey=048 hikey=049 pitch_keycenter=048 sample=PP C2.$EXT
<region> region_label=15 lokey=050 hikey=050 pitch_keycenter=050 sample=PP D2.$EXT
<region> region_label=16 lokey=051 hikey=052 pitch_keycenter=052 sample=PP E2.$EXT
<region> region_label=17 lokey=053 hikey=054 pitch_keycenter=053 sample=PP F2.$EXT
<region> region_label=18 lokey=055 hikey=055 pitch_keycenter=055 sample=PP G2.$EXT
<region> region_label=19 lokey=056 hikey=056 pitch_keycenter=056 sample=PP G#2.$EXT
<region> region_label=20 lokey=057 hikey=057 pitch_keycenter=057 sample=PP A2.$EXT
<region> region_label=21 lokey=058 hikey=058 pitch_keycenter=058 sample=PP A#2.$EXT
<region> region_label=22 lokey=059 hikey=059 pitch_keycenter=059 sample=PP B2.$EXT
<region> region_label=23 lokey=060 hikey=061 pitch_keycenter=060 sample=PP C3.$EXT
<region> region_label=24 lokey=062 hikey=063 pitch_keycenter=062 sample=PP D3.$EXT
<region> region_label=25 lokey=064 hikey=064 pitch_keycenter=064 sample=PP E3.$EXT
<region> region_label=26 lokey=065 hikey=066 pitch_keycenter=065 sample=PP F3.$EXT
<region> region_label=27 lokey=067 hikey=068 pitch_keycenter=067 sample=PP G3.$EXT
<region> region_label=28 lokey=069 hikey=069 pitch_keycenter=069 sample=PP A3.$EXT
<region> region_label=29 lokey=070 hikey=071 pitch_keycenter=071 sample=PP B3.$EXT
<region> region_label=30 lokey=072 hikey=073 pitch_keycenter=072 sample=PP C4.$EXT
<region> region_label=31 lokey=074 hikey=075 pitch_keycenter=074 sample=PP D4.$EXT
<region> region_label=32 lokey=076 hikey=076 pitch_keycenter=076 sample=PP E4.$EXT
<region> region_label=33 lokey=077 hikey=078 pitch_keycenter=077 sample=PP F4.$EXT
<region> region_label=34 lokey=079 hikey=079 pitch_keycenter=079 sample=PP G4.$EXT
<region> region_label=35 lokey=080 hikey=080 pitch_keycenter=080 sample=PP G#4.$EXT
<region> region_label=36 lokey=081 hikey=081 pitch_keycenter=081 sample=PP A4.$EXT
<region> region_label=37 lokey=082 hikey=082 pitch_keycenter=082 sample=PP A#4.$EXT
<region> region_label=38 lokey=083 hikey=083 pitch_keycenter=083 sample=PP B4.$EXT
<region> region_label=39 lokey=084 hikey=085 pitch_keycenter=085 ampeg_release=0.1 sample=PP C#5.$EXT
<region> region_label=40 lokey=086 hikey=086 pitch_keycenter=086 ampeg_release=0.2 sample=PP D5.$EXT
<region> region_label=41 lokey=087 hikey=087 pitch_keycenter=087 ampeg_release=0.3 sample=PP D#5.$EXT
<region> region_label=42 lokey=088 hikey=089 pitch_keycenter=089 ampeg_release=0.4 sample=PP F5.$EXT
<region> region_label=43 lokey=090 hikey=090 pitch_keycenter=090 ampeg_release=0.6 sample=PP F#5.$EXT pan=-40
<region> region_label=44 lokey=091 hikey=091 pitch_keycenter=091 ampeg_release=10 sample=PP G5.$EXT pan=-30 offset=135
<region> region_label=45 lokey=092 hikey=092 pitch_keycenter=092 ampeg_release=10 sample=PP G#5.$EXT pan=-30
<region> region_label=46 lokey=093 hikey=093 pitch_keycenter=093 ampeg_release=10 sample=PP A5.$EXT pan=-45
<region> region_label=47 lokey=094 hikey=094 pitch_keycenter=094 ampeg_release=10 sample=PP A#5.$EXT pan=-45
<region> region_label=48 lokey=095 hikey=095 pitch_keycenter=095 ampeg_release=10 sample=PP B5.$EXT offset=324
<region> region_label=49 lokey=096 hikey=096 pitch_keycenter=096 ampeg_release=10 sample=PP C6.$EXT offset=57
<region> region_label=50 lokey=097 hikey=097 pitch_keycenter=097 ampeg_release=10 sample=PP C#6.$EXT offset=265
<region> region_label=51 lokey=098 hikey=098 pitch_keycenter=098 ampeg_release=10 sample=PP D6.$EXT
<region> region_label=52 lokey=099 hikey=099 pitch_keycenter=099 ampeg_release=10 sample=PP D#6.$EXT
<region> region_label=53 lokey=100 hikey=100 pitch_keycenter=100 ampeg_release=10 sample=PP E6.$EXT
<region> region_label=54 lokey=101 hikey=101 pitch_keycenter=101 ampeg_release=10 sample=PP F6.$EXT
<region> region_label=55 lokey=102 hikey=102 pitch_keycenter=102 ampeg_release=10 sample=PP F#6.$EXT
<region> region_label=56 lokey=103 hikey=103 pitch_keycenter=103 ampeg_release=10 sample=PP G6.$EXT
<region> region_label=57 lokey=104 hikey=104 pitch_keycenter=104 ampeg_release=10 sample=PP G#6.$EXT
<region> region_label=58 lokey=105 hikey=105 pitch_keycenter=105 ampeg_release=10 sample=PP A6.$EXT offset=146
<region> region_label=59 lokey=106 hikey=106 pitch_keycenter=106 ampeg_release=10 sample=PP A#6.$EXT
<region> region_label=60 lokey=107 hikey=107 pitch_keycenter=107 ampeg_release=10 sample=PP B6.$EXT
<region> region_label=61 lokey=108 hikey=108 pitch_keycenter=108 ampeg_release=10 sample=PP C7.$EXT
+60
View File
@@ -0,0 +1,60 @@
group_volume=-11
ampeg_attack=0.1
<region> lokey=021 hikey=022 pitch_keycenter=033 sample=PP A0.$EXT
<region> lokey=023 hikey=023 pitch_keycenter=035 sample=PP B0.$EXT offset=618
<region> lokey=024 hikey=025 pitch_keycenter=037 sample=PP C#1.$EXT
<region> lokey=026 hikey=027 pitch_keycenter=038 sample=PP D1.$EXT offset=1046
<region> lokey=028 hikey=028 pitch_keycenter=040 sample=PP E1.$EXT
<region> lokey=029 hikey=029 pitch_keycenter=041 sample=PP F1.$EXT
<region> lokey=030 hikey=032 pitch_keycenter=043 sample=PP G1.$EXT
<region> lokey=033 hikey=034 pitch_keycenter=045 sample=PP A1.$EXT
<region> lokey=035 hikey=035 pitch_keycenter=047 sample=PP B1.$EXT
<region> lokey=036 hikey=037 pitch_keycenter=048 sample=PP C2.$EXT
<region> lokey=038 hikey=038 pitch_keycenter=050 sample=PP D2.$EXT
<region> lokey=039 hikey=040 pitch_keycenter=052 sample=PP E2.$EXT
<region> lokey=041 hikey=042 pitch_keycenter=053 sample=PP F2.$EXT
<region> lokey=043 hikey=043 pitch_keycenter=055 sample=PP G2.$EXT
<region> lokey=044 hikey=044 pitch_keycenter=056 sample=PP G#2.$EXT
<region> lokey=045 hikey=045 pitch_keycenter=057 sample=PP A2.$EXT
<region> lokey=046 hikey=046 pitch_keycenter=058 sample=PP A#2.$EXT
<region> lokey=047 hikey=047 pitch_keycenter=059 sample=PP B2.$EXT
<region> lokey=048 hikey=049 pitch_keycenter=060 sample=PP C3.$EXT
<region> lokey=050 hikey=051 pitch_keycenter=062 sample=PP D3.$EXT
<region> lokey=052 hikey=052 pitch_keycenter=064 sample=PP E3.$EXT
<region> lokey=053 hikey=054 pitch_keycenter=065 sample=PP F3.$EXT
<region> lokey=055 hikey=056 pitch_keycenter=067 sample=PP G3.$EXT
<region> lokey=057 hikey=057 pitch_keycenter=069 sample=PP A3.$EXT
<region> lokey=058 hikey=059 pitch_keycenter=071 sample=PP B3.$EXT
<region> lokey=060 hikey=061 pitch_keycenter=072 sample=PP C4.$EXT
<region> lokey=062 hikey=063 pitch_keycenter=074 sample=PP D4.$EXT
<region> lokey=064 hikey=064 pitch_keycenter=076 sample=PP E4.$EXT
<region> lokey=065 hikey=066 pitch_keycenter=077 sample=PP F4.$EXT
<region> lokey=067 hikey=067 pitch_keycenter=079 sample=PP G4.$EXT
<region> lokey=068 hikey=068 pitch_keycenter=080 sample=PP G#4.$EXT
<region> lokey=069 hikey=069 pitch_keycenter=081 sample=PP A4.$EXT
<region> lokey=070 hikey=070 pitch_keycenter=082 sample=PP A#4.$EXT
<region> lokey=071 hikey=071 pitch_keycenter=083 sample=PP B4.$EXT
<region> lokey=072 hikey=073 pitch_keycenter=085 sample=PP C#5.$EXT
<region> lokey=074 hikey=074 pitch_keycenter=086 sample=PP D5.$EXT
<region> lokey=075 hikey=075 pitch_keycenter=087 sample=PP D#5.$EXT
<region> lokey=076 hikey=077 pitch_keycenter=089 sample=PP F5.$EXT
<region> lokey=078 hikey=078 pitch_keycenter=090 sample=PP F#5.$EXT pan=-40
<region> lokey=079 hikey=079 pitch_keycenter=091 sample=PP G5.$EXT pan=-30 offset=135
<region> lokey=080 hikey=080 pitch_keycenter=092 sample=PP G#5.$EXT pan=-30
<region> lokey=081 hikey=081 pitch_keycenter=093 sample=PP A5.$EXT pan=-45
<region> lokey=082 hikey=082 pitch_keycenter=094 sample=PP A#5.$EXT pan=-45
<region> lokey=083 hikey=083 pitch_keycenter=095 sample=PP B5.$EXT offset=324
<region> lokey=084 hikey=084 pitch_keycenter=096 sample=PP C6.$EXT offset=57 tune=-5
<region> lokey=085 hikey=085 pitch_keycenter=097 sample=PP C#6.$EXT offset=265 tune=-5
<region> lokey=086 hikey=086 pitch_keycenter=098 sample=PP D6.$EXT tune=-10
<region> lokey=087 hikey=087 pitch_keycenter=099 sample=PP D#6.$EXT tune=-5
<region> lokey=088 hikey=088 pitch_keycenter=100 sample=PP E6.$EXT tune=-10
<region> lokey=089 hikey=089 pitch_keycenter=101 sample=PP F6.$EXT tune=-10
<region> lokey=090 hikey=090 pitch_keycenter=102 sample=PP F#6.$EXT tune=-20
<region> lokey=091 hikey=091 pitch_keycenter=103 sample=PP G6.$EXT tune=-20
<region> lokey=092 hikey=092 pitch_keycenter=104 sample=PP G#6.$EXT tune=-25
<region> lokey=093 hikey=093 pitch_keycenter=105 sample=PP A6.$EXT offset=146 tune=-20
<region> lokey=094 hikey=094 pitch_keycenter=106 sample=PP A#6.$EXT tune=-25
<region> lokey=095 hikey=095 pitch_keycenter=107 sample=PP B6.$EXT tune=-25
<region> lokey=096 hikey=096 pitch_keycenter=108 sample=PP C7.$EXT tune=-20
+9
View File
@@ -0,0 +1,9 @@
# Splendid Grand Piano (SFZ text only)
These files are the SFZ mapping of the Splendid Grand Piano, used as a test
fixture for the SFZ parser. The samples are not included.
- Source: [sfzinstruments/SplendidGrandPiano](https://github.com/sfzinstruments/SplendidGrandPiano),
commit `1c595d827b7fd7f0be3134aaed0f90b3662a09cf` (6 May 2024), unchanged.
- Samples: public domain, released by AKAI.
- SFZ mapping: kinwie. String resonance and half-pedalling: Peter Eastman.
+124
View File
@@ -0,0 +1,124 @@
// --------------------------------------
// SFZ format v2 with ARIA extensions
// --------------------------------------
// Splendid Grand Piano
// Public Domain by AKAI
// --------------------------------------
// converted by kinwie
// string resonance by P.Eastman
// half-pedalling added by P.Eastman
// --------------------------------------
//midi cc
#define $RES 70
#define $RELEASE 72
#define $VELTRACK 99
//file-folder
#define $EXT flac
#define $DIR Data
//////////////////////////////////////////////////////////
<control>
default_path=Samples/
label_cc7=Vol
label_cc10=Pan
label_cc64=Sus.Pedal
label_cc$RES=Resonance
label_cc$RELEASE=Release
label_cc$VELTRACK=Veltrack
set_cc7=100
set_hdcc10=0.5
set_hdcc$RES=0.5
set_hdcc$RELEASE=0.35
set_hdcc$VELTRACK=1
//*******************************************************
<global>
amplitude_oncc7=100
amplitude_curvecc7=4
pan_oncc10=100
pan_curvecc10=1
ampeg_attack=0.0005
ampeg_hold=8
ampeg_hold_oncc133=-6
ampeg_decay=80
ampeg_decay_oncc133=-60
ampeg_sustain=0
ampeg_release_oncc$RELEASE=2
amp_veltrack_oncc$VELTRACK=-100
amp_veltrack_curvecc$VELTRACK=2
note_polyphony=1
off_time=0.5
// The following are to implement half pedaling.
// Adapted from https://vi-control.net/community/threads/sfz-half-pedaling.116007/#post-4943326
sustain_cc=90 //re-route default sustain pedal to CC90
ampeg_dynamic=1 //allow envelope to update on CC64 change
ampeg_release_shape=-6 //set the sustain curve dropoff curvature
ampeg_releasecc64=15 //make maximum release time 15 seconds
ampeg_release_curvecc64=11 //use the curve_index 11
// Curve for half pedal
<curve>curve_index=11
v000=0
v032=0
v042=.1
v064=.3
v072=.4
v073=1
v127=1
//===================================
<group>
group=1
locc64=65
locc$RES=1
amplitude_oncc$RES=200
#include "$DIR/Res.txt"
<group>
lovel=1
hivel=40
cutoff=1000
group_volume=0
#define $DYN PP
group_label=P$DYN
#include "$DIR/$DYN.txt"
<group>
lovel=41
hivel=67
group_volume=0
#define $DYN PP
group_label=$DYN
#include "$DIR/$DYN.txt"
<group>
lovel=68
hivel=84
group_volume=0
#define $DYN MP
group_label=$DYN
#include "$DIR/$DYN.txt"
<group>
lovel=85
hivel=100
group_volume=0
#define $DYN MF
group_label=$DYN
#include "$DIR/$DYN.txt"
<group>
lovel=101
hivel=127
group_volume=0
#define $DYN FF
group_label=$DYN
#include "$DIR/$DYN.txt"
+197
View File
@@ -0,0 +1,197 @@
package sfz
import (
"fmt"
"slices"
"strings"
)
// Validate returns the problems in the document, in the order the files are
// read. It reports what is wrong with the text and with values the format
// describes, and never fails on an opcode it doesn't know.
func (d *Document) Validate() []Problem {
v := &validator{defines: map[string]string{}}
v.problems = append(v.problems, d.problems...)
v.file(d.Root)
v.endHeader()
return v.problems
}
// opcodeAt is an opcode read in a header.
type opcodeAt struct {
value float64
at *Node
file string
}
type validator struct {
defines map[string]string
problems []Problem
// inHeader is whether a header has been read.
inHeader bool
// numbers are the numeric values of the opcodes of the header being read,
// by name.
numbers map[string]opcodeAt
}
func (v *validator) add(file string, n *Node, sev Severity, code, msg string) {
v.problems = append(v.problems, Problem{File: file, Line: n.Line, Col: n.Col, Severity: sev, Code: code, Msg: msg})
}
func (v *validator) file(f *File) {
for _, n := range f.Nodes {
switch n.Kind {
case KindDefine:
v.undefined(f, n, n.Value)
v.defines[n.Name] = strings.TrimSpace(substitute(v.defines, n.Value))
case KindInclude:
v.undefined(f, n, n.Value)
if n.File != nil {
v.file(n.File)
}
case KindHeader:
v.header(f, n, n.Name)
case KindOpcode, KindText:
v.undefined(f, n, n.Raw)
text := n.Raw
if strings.Contains(text, "$") {
// A variable's value can hold opcodes and headers, so the
// text it makes is read again.
text = substitute(v.defines, text)
}
v.read(f, n, text)
}
}
}
// read checks the headers and opcodes that text holds, which stands where n
// does.
func (v *validator) read(f *File, n *Node, text string) {
for _, m := range lex(text) {
switch m.Kind {
case KindHeader:
v.header(f, n, m.Name)
case KindOpcode:
v.opcode(f, n, m.Name, m.Value)
case KindText:
if strings.Contains(m.Raw, "$") {
continue
}
v.add(f.Path, n, SeverityWarning, "text.unreadable", fmt.Sprintf("can't read %q", strings.TrimSpace(m.Raw)))
}
}
}
func (v *validator) header(f *File, n *Node, name string) {
v.endHeader()
v.inHeader = true
v.numbers = map[string]opcodeAt{}
if _, ok := LookupHeader(name); !ok {
v.add(f.Path, n, SeverityInfo, "header.unknown", fmt.Sprintf("<%s> isn't a header of the format", name))
}
}
// endHeader checks the ranges of the header that has just ended: a lo opcode
// above its hi opcode.
func (v *validator) endHeader() {
names := make([]string, 0, len(v.numbers))
for name := range v.numbers {
names = append(names, name)
}
slices.Sort(names)
for _, name := range names {
rest, ok := strings.CutPrefix(name, "lo")
if !ok {
continue
}
hi, ok := v.numbers["hi"+rest]
if lo := v.numbers[name]; ok && lo.value > hi.value {
v.add(lo.file, lo.at, SeverityWarning, "range.inverted", fmt.Sprintf("%s is above hi%s", name, rest))
}
}
v.numbers = nil
}
func (v *validator) opcode(f *File, n *Node, name, value string) {
if !v.inHeader {
v.add(f.Path, n, SeverityInfo, "opcode.no-header", fmt.Sprintf("%s is before any header", name))
v.inHeader = true
v.numbers = map[string]opcodeAt{}
}
if strings.Contains(name, "$") {
return
}
info, ok := Lookup(name)
if !ok {
v.add(f.Path, n, SeverityInfo, "opcode.unknown", fmt.Sprintf("%s isn't an opcode of the format", name))
return
}
if info.Deprecated {
v.add(f.Path, n, SeverityInfo, "opcode.deprecated", fmt.Sprintf("%s is deprecated", name))
}
if strings.Contains(value, "$") {
return
}
v.value(f, n, name, value, info)
}
// value checks a value against what the format says about its opcode.
func (v *validator) value(f *File, n *Node, name, value string, info OpcodeInfo) {
switch info.Type {
case TypeInteger, TypeFloat:
var x float64
var ok bool
if info.Note {
var note int
note, ok = parseNote(value)
x = float64(note)
if strings.EqualFold(value, "sample") && name == "pitch_keycenter" {
return
}
} else {
x, ok = parseNumber(value)
}
if !ok {
v.add(f.Path, n, SeverityWarning, "value.type", fmt.Sprintf("%s=%s isn't a number", name, value))
return
}
if info.Type == TypeInteger && !info.Note && x != float64(int64(x)) {
v.add(f.Path, n, SeverityInfo, "value.type", fmt.Sprintf("%s=%s isn't a whole number", name, value))
}
if info.Min != nil && x < *info.Min || info.Max != nil && x > *info.Max {
v.add(f.Path, n, SeverityWarning, "value.range", fmt.Sprintf("%s=%s is outside %s", name, value, bounds(info)))
}
v.numbers[name] = opcodeAt{value: x, at: n, file: f.Path}
case TypeString:
if len(info.Options) == 0 {
return
}
for _, o := range info.Options {
if strings.EqualFold(o, strings.TrimSpace(value)) {
return
}
}
v.add(f.Path, n, SeverityWarning, "value.option", fmt.Sprintf("%s=%s isn't one of %s", name, value, strings.Join(info.Options, ", ")))
}
}
// bounds describes the range an opcode's value may take.
func bounds(info OpcodeInfo) string {
lo, hi := "-∞", "∞"
if info.Min != nil {
lo = fmt.Sprint(*info.Min)
}
if info.Max != nil {
hi = fmt.Sprint(*info.Max)
}
return lo + " to " + hi
}
// undefined reports the variables in text that haven't been defined.
func (v *validator) undefined(f *File, n *Node, text string) {
for _, run := range variableRE.FindAllString(text, -1) {
if substitute(v.defines, run) == run {
v.add(f.Path, n, SeverityWarning, "define.undefined", fmt.Sprintf("%s isn't defined", run))
}
}
}
+115
View File
@@ -0,0 +1,115 @@
package sfz
import (
"math"
"regexp"
"sort"
"strconv"
"strings"
)
// noteRE reads a note name such as c4, C#0 or eb-1. Middle C is c4, MIDI
// note 60.
var noteRE = regexp.MustCompile(`^([A-Ga-g])([#b]?)(-?[0-9]+)$`)
// semitones are the notes' places in the octave from C.
var semitones = map[byte]int{'c': 0, 'd': 2, 'e': 4, 'f': 5, 'g': 7, 'a': 9, 'b': 11}
// parseNote reads a MIDI note number or a note name. It reports false if the
// value is neither.
func parseNote(v string) (int, bool) {
v = strings.TrimSpace(v)
if n, err := strconv.Atoi(v); err == nil {
return n, true
}
m := noteRE.FindStringSubmatch(v)
if m == nil {
return 0, false
}
octave, _ := strconv.Atoi(m[3])
n := (octave+1)*12 + semitones[strings.ToLower(m[1])[0]]
switch m[2] {
case "#":
n++
case "b":
n--
}
return n, true
}
// parseNumber reads a number, and reports false if the value isn't one.
func parseNumber(v string) (float64, bool) {
f, err := strconv.ParseFloat(strings.TrimSpace(v), 64)
if err != nil || math.IsNaN(f) || math.IsInf(f, 0) {
return 0, false
}
return f, true
}
// curve maps a controller's value, from 0 to 1, to how much of a
// modulation's depth applies.
type curve func(x float64) float64
// builtinCurves are the curves SFZ players define, by index.
var builtinCurves = map[int]curve{
0: func(x float64) float64 { return x },
1: func(x float64) float64 { return 2*x - 1 },
2: func(x float64) float64 { return 1 - x },
3: func(x float64) float64 { return 1 - 2*x },
4: func(x float64) float64 { return x * x },
5: func(x float64) float64 { return math.Sqrt(x) },
6: func(x float64) float64 { return math.Sqrt(1 - x) },
}
// pointRE reads a <curve> point, such as v064, whose number is the
// controller value from 0 to 127.
var pointRE = regexp.MustCompile(`^v([0-9]{1,3})$`)
// readCurves returns the instrument's curves: the built-in ones, and those of
// its <curve> headers, which pass through their points in straight lines, and
// the points of the custom ones.
// A curve that doesn't set v000 or v127 starts at 0 or ends at 1.
func readCurves(defs []Opcodes) (map[int]curve, map[int][]CurveStop) {
curves := make(map[int]curve, len(builtinCurves)+len(defs))
stops := map[int][]CurveStop{}
for i, c := range builtinCurves {
curves[i] = c
}
for _, def := range defs {
index, err := strconv.Atoi(def["curve_index"])
if err != nil {
continue
}
points := map[int]float64{0: 0, 127: 1}
for name, v := range def {
m := pointRE.FindStringSubmatch(name)
if m == nil {
continue
}
at, _ := strconv.Atoi(m[1])
if y, ok := parseNumber(v); ok && at <= 127 {
points[at] = y
}
}
xs := make([]int, 0, len(points))
for x := range points {
xs = append(xs, x)
}
sort.Ints(xs)
for _, x := range xs {
stops[index] = append(stops[index], CurveStop{At: x, Value: points[x]})
}
curves[index] = func(x float64) float64 {
at := x * 127
for i := 1; i < len(xs); i++ {
if at <= float64(xs[i]) {
x0, x1 := float64(xs[i-1]), float64(xs[i])
y0, y1 := points[xs[i-1]], points[xs[i]]
return y0 + (y1-y0)*(at-x0)/(x1-x0)
}
}
return points[xs[len(xs)-1]]
}
}
return curves, stops
}