class Haematite::Instrument
- Haematite::Instrument
- Reference
- Object
Overview
A representation of a SoundFont instrument.
Defined in:
haematite/instrument.crConstant Summary
-
DEFAULT =
Instrument.new()
Class Method Summary
-
.create(infos : Array(InstrumentInfo), zones : Array(Zone), samples : Array(SampleHeader)) : Array(Instrument)
Creates an array of
Instrument
instances.
Instance Method Summary
-
#name : String
The name of the instrument.
-
#regionArray : Array(Haematite::InstrumentRegion)
Returns the
InstrumentRegion
s for this instrument as anArray
. -
#regions : Slice(InstrumentRegion)
Returns the
InstrumentRegion
s for this instrument as a read-onlySlice
. -
#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(InstrumentInfo), zones : Array(Zone), samples : Array(SampleHeader)) : Array(Instrument)
#
Creates an array of Instrument
instances.
Instance Method Detail
def regionArray : Array(Haematite::InstrumentRegion)
#
Returns the InstrumentRegion
s for this instrument as an Array
.
def regions : Slice(InstrumentRegion)
#
Returns the InstrumentRegion
s for this instrument as a read-only
Slice
.