pub enum Header {
    Region,
    Group,
    Control,
    Global,
    Curve,
    Effect,
    Master,
    Midi,
    Sample,
}
Expand description

SFZ files are subdivided into sections by headers.

The global/group/region or global/master/group/region hierarchy contains the opcodes which define which samples are played, when they are to be played, and how.

sfzformat.com/headers/

Variants

Region

The basic component of an instrument. An instrument is defined by one or more regions.

Group

Multiple regions can be arranged in a group. Groups allow entering common parameters for multiple regions.

  • version: v1
  • info: group

Control

The control header would be found at the beginning of the file and includes special opcodes for setting up MIDI CC controls.

Global

The global header (one per file), contains opcodes which apply to all regions in the file.

Curve

The curve headers, when used, are normally found at the end of the file, and define the curves used for shaping envelopes, parameter response etc.

  • version: v2
  • info: curve

Effect

SFZ v2 header for effects controls.

In SFZ v1 only effect1 and effect2 opcodes was available and only at ‹region› level.

From SFZ v2 this header was added together with the addition of effect3 and effect4 opcodes also to modulate the related bus. Other opcodes listed in the book are bus, type and dsp_order.

Master

The master header is an extra level added inbetween group and global for the ARIA player.

  • version: aria extension
  • info: master

Midi

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.

  • version: aria extension
  • info: midi

Sample

Allows to embed sample data directly in SFZ files (Rapture).

  • version: cakewalk extension
  • info: sample

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.