class Haematite::InstrumentRegion
- Haematite::InstrumentRegion
- Reference
- Object
Overview
Represents a SoundFont instrument region. Regions contain all the parameters necessary in order to synthesize a note.
Defined in:
haematite/instrument.crConstant Summary
-
DEFAULT =
InstrumentRegion.new(Instrument::DEFAULT, nil, nil, nil)
Class Method Summary
-
.create(inst : Instrument, zones : Slice(Zone), samples : Array(SampleHeader)) : Array(InstrumentRegion)
Creates an array of
InstrumentRegion
instances.
Instance Method Summary
-
#[](gt : GeneratorType) : Int16
Returns a generator parameter.
- #attackModulationEnvelope : Float64
- #attackVolumeEnvelope : Float64
- #chorusEffectsSend : Float64
- #coarseTune : Int
-
#contains?(key : Int, velocity : Int) : Bool
Returns
true
if this region covers the the given key and velocity, orfalse
otherwise. - #decayModulationEnvelope : Float64
- #decayVolumeEnvelope : Float64
- #delayModulationEnvelope : Float64
- #delayModulationLfo : Float64
- #delayVibratoLfo : Float64
- #delayVolumeEnvelope : Float64
- #endAddressOffset : Int32
- #endLoopAddressOffset : Int32
- #exclusiveClass : Int
- #fineTune : Int
- #frequencyModulationLfo : Float64
- #frequencyVibratoLfo : Float64
- #holdModulationEnvelope : Float64
- #holdVolumeEnvelope : Float64
- #initialAttenuation : Float64
- #initialFilterCutoffFrequency : Float64
- #initialFilterQ : Float64
- #keyNumberToModulationEnvelopeDecay : Int
- #keyNumberToModulationEnvelopeHold : Int
- #keyNumberToVolumeEnvelopeDecay : Int
- #keyNumberToVolumeEnvelopeHold : Int
- #keyRangeEnd : Int
- #keyRangeStart : Int
- #modulationEnvelopeToFilterCutoffFrequency : Int
- #modulationEnvelopeToPitch : Int
- #modulationLfoToFilterCutoffFrequency : Int
- #modulationLfoToPitch : Int
- #modulationLfoToVolume : Float64
- #pan : Float64
- #releaseModulationEnvelope : Float64
- #releaseVolumeEnvelope : Float64
- #reverbEffectsSend : Float64
- #rootKey : Int
-
#sample : SampleHeader | Nil
The sample data information associated with this region.
-
#sample? : SampleHeader | Nil | Nil
The sample data information associated with this region.
- #sampleEnd : Int32
- #sampleEndLoop : Int32
- #sampleModes : LoopMode
- #sampleStart : Int32
- #sampleStartLoop : Int32
- #scaleTuning : Int
-
#setParameter(param : GeneratorType, value : Int16)
Sets a generator parameter for the region.
- #startAddressOffset : Int32
- #startLoopAddressOffset : Int32
- #sustainModulationEnvelope : Float64
- #sustainVolumeEnvelope : Float64
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
- #velocityRangeEnd : Int
- #velocityRangeStart : Int
- #vibratoLfoToPitch : Int
Class Method Detail
Creates an array of InstrumentRegion
instances.
Instance Method Detail
Returns true
if this region covers the the given key and velocity, or
false
otherwise.
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>