class Haematite::Oscillator

Overview

An oscillator that is used for sample playback ("rompler").

Defined in:

haematite/oscillator.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(synth : Synthesizer) #

Creates a new Oscillator instance.


Instance Method Detail

def process(block : Array(Float64), pitch : Float64) : Bool #

"Runs" the oscillator.


def release #

Tells the oscillator to behave as if the key was released.


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.


def start(data : SoundFontPCMData, region : InstrumentRegion) #

Starts an oscillator for the given instrument.


def start(data : SoundFontPCMData, region : RegionPair) #

Starts an oscillator for the given instrument.