Enum sofiza::Header[][src]

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

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

impl Debug for Header[src]

impl PartialEq<Header> for Header[src]

impl StructuralPartialEq for Header[src]

Auto Trait Implementations

impl RefUnwindSafe for Header

impl Send for Header

impl Sync for Header

impl Unpin for Header

impl UnwindSafe for Header

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.