class Haematite::Lfo

Overview

A low-frequency oscillator.

Defined in:

haematite/lfo.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(synth : Synthesizer) #

Creates a new LFO instance.


Instance Method Detail

def process #

"Runs" the LFO.


def start(delay : Float64, frequency : Float64) #

Starts the LFO at the given frequency. delay is the initial delay before the LFO "kicks in".


def startModulation(region : InstrumentRegion, key : Int32, velocity : Int32) #

Starts an LFO for use as instrument modulation.


def startModulation(region : RegionPair, key : Int32, velocity : Int32) #

Starts an LFO for use as instrument modulation.


def startVibrato(region : InstrumentRegion, key : Int32, velocity : Int32) #

Starts an LFO for use as instrument vibrato.


def startVibrato(region : RegionPair, key : Int32, velocity : Int32) #

Starts an LFO for use as instrument vibrato.


def value : Float64 #

The current value of the LFO