Mockbird
Interface Libarary and Synthesizer Setup Tool for Mockingbird-OTTO
Loading...
Searching...
No Matches
Soundscape::MelodicInstrument Struct Reference

Definition of a melodic instrument. More...

#include <sndscape.h>

Public Attributes

InstrumentLayer layers [4]
 The four layers.
 

Detailed Description

Definition of a melodic instrument.

A melodic instruments consists of up to 4 layers, each of which may be limited to apply only to a certain key or velocity range. This structure contains a fixed number of 4 layers, some of which may be disabled by clearing the layers[i].exists bit.

This structure is a plain old data (POD) object, which (except for endianess issues) is identical to the format used by the firmware.

The textual representation of a instrument consists of up to 4 lines, each describing a layer. If there are less than 4 lines, the remaining layers do not exist. An alternative single-line representation uses ; (a semicolon with at least one space on either side) instead of line breaks.

At the moment, layer parsing or formatting is not implemented in this class.


The documentation for this struct was generated from the following file: