class PF::Instrument

Direct Known Subclasses

Defined in:

audio/instrument.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(envelope : PF::Envelope, wave : Float64, Float64 -> Float64) #

[View source]

Instance Method Detail

def envelope : Envelope #

[View source]
def envelope=(envelope : Envelope) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def off(note_id : UInt32, time : Float64) #

[View source]
def on(hertz : Float64, time : Float64) #

[View source]
def sounds : Array(Sound) #

[View source]
def volume : Float64 #

[View source]
def volume=(volume : Float64) #

[View source]
def wave : Sound::Wave #

[View source]
def wave=(wave : Sound::Wave) #

[View source]