class Haematite::Preset
- Haematite::Preset
- Reference
- Object
Overview
A representation of a SoundFont preset.
Defined in:
haematite/preset.crConstant Summary
-
DEFAULT =
Preset.new
Class Method Summary
-
.create(infos : Array(PresetInfo), zones : Array(Zone), instruments : Array(Instrument)) : Array(Preset)
Creates an array of
Preset
instances.
Instance Method Summary
-
#bankNumber : UInt16
The bank this preset is part of.
-
#name : String
The name of the preset.
-
#patchNumber : UInt16
The patch number associated with this preset.
-
#regionArray : Array(Haematite::PresetRegion)
The regions that are covered by this preset, returned as an array.
-
#regions : Slice(PresetRegion)
The regions that are covered by this preset, returned as a read-only
Slice
. -
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
Class Method Detail
def self.create(infos : Array(PresetInfo), zones : Array(Zone), instruments : Array(Instrument)) : Array(Preset)
#
Creates an array of Preset
instances.
Instance Method Detail
def regionArray : Array(Haematite::PresetRegion)
#
The regions that are covered by this preset, returned as an array.
def regions : Slice(PresetRegion)
#
The regions that are covered by this preset, returned as a read-only
Slice
.