class Haematite::Voice
- Haematite::Voice
- Reference
- Object
Overview
An individual voice that is currently active/being played by the synthesizer.
Defined in:
haematite/voice.crConstructors
-
.new(synth : Synthesizer, filterMode : FilterMode = DEFAULT_VOICE_FILTER, chanFilterMode : FilterMode = DEFAULT_VOICE_FILTER)
Creates a new
Voice
instance.
Instance Method Summary
-
#block : Array(Float64)
The rendered data for this voice.
- #chanFilterMode : FilterMode
-
#channel : Int32
The channel this voice is playing on.
-
#filterMode : FilterMode
Describes what kind of lowpass filter is used for the voice.
-
#finish
Requests that the voice move into its release cycle.
-
#key : Int32
The note/MIDI key number this voice is playing.
-
#kill
Immediately silences the voice.
-
#process : Bool
"Runs" the voice.
-
#start(pair : RegionPair, channel : Int32, key : Int32, velocity : Int32)
Starts playing the voice.
-
#velocity : Int32
The velocity of the key press of this voice.
Constructor Detail
def self.new(synth : Synthesizer, filterMode : FilterMode = DEFAULT_VOICE_FILTER, chanFilterMode : FilterMode = DEFAULT_VOICE_FILTER)
#
Creates a new Voice
instance.
Instance Method Detail
def filterMode : FilterMode
#
Describes what kind of lowpass filter is used for the voice.
Note that the SoundFont standard specifies that the filter should be a 12db (2-pole) filter, but Haematite allows you to use other filters as well.
def start(pair : RegionPair, channel : Int32, key : Int32, velocity : Int32)
#
Starts playing the voice.