class Haematite::Oscillator
- Haematite::Oscillator
- Reference
- Object
Overview
An oscillator that is used for sample playback ("rompler").
Defined in:
haematite/oscillator.crConstructors
-
.new(synth : Synthesizer)
Creates a new
Oscillator
instance.
Instance Method Summary
-
#process(block : Array(Float64), pitch : Float64) : Bool
"Runs" the oscillator.
-
#release
Tells the oscillator to behave as if the key was released.
-
#start(data : SoundFontPCMData, loopMode : LoopMode, sampleRate : Int32, start : Int32, finish : Int32, startLoop : Int32, endLoop : Int32, rootKey : Int32, coarseTune : Int32, fineTune : Int32, scaleTuning : Int32)
Starts the oscillator.
-
#start(data : SoundFontPCMData, region : InstrumentRegion)
Starts an oscillator for the given instrument.
-
#start(data : SoundFontPCMData, region : RegionPair)
Starts an oscillator for the given instrument.
Constructor Detail
Instance Method Detail
def start(data : SoundFontPCMData, loopMode : LoopMode, sampleRate : Int32, start : Int32, finish : Int32, startLoop : Int32, endLoop : Int32, rootKey : Int32, coarseTune : Int32, fineTune : Int32, scaleTuning : Int32)
#
Starts the oscillator.
Starts an oscillator for the given instrument.
Starts an oscillator for the given instrument.