Expand description
A Region is the basic component of an instrument. An instrument is defined by one or more regions.
A region starts with the
Following the
Opcodes within a region can appear in any order, and they have to be separated by one or more spaces or tabulation controls. Opcodes can appear in separated lines within a region.
All Input Controls defined in a region act using the AND boolean operator. Consequently, all conditions must be matched for the region to play.
Fields
group: Option<usize>
The opcodes of this group are applied and will override the defaults.
opcodes: HashMap<String, Opcode>
This list of opcodes will override both the default and inherited opcodes.
Implementations
sourceimpl Region
impl Region
sourcepub fn with_group(group: usize) -> Self
pub fn with_group(group: usize) -> Self
New region with some group.
sourcepub fn add_opcode(&mut self, opcode: &Opcode)
pub fn add_opcode(&mut self, opcode: &Opcode)
Add an opcode to this Region