Class
GeneratorFilter
In: rbSnack/tkSnack.rb
Parent: Filter

GeneratorFilter is used to generator some standard waveforms. It is a subclass of Filter

Methods

new, upDate,
Public Class methods
new(frequency, amplitude=nil, shapeValue=nil, shapeType=nil, total=nil) src

Takes as parameters

frequency
is in Mh
amplitude
is between 0 and 32767
shapeValue
is between 0.0 and 1.0
shapeType
is one of "rectangle", "triangle", "sine", "noise", "sampled"
ntot
is the number of samples to generate (-1 indicates to go forever)
Public Instance methods
upDate(frequency, amplitude=nil, shapeValue=nil, shapeType=nil, total=nil) src

Updates the Frequency, Amplitude, shapeValue, shapeType, total

frequency
is in Mh
amplitude
is between 0 and 32767
shapeValue
is between 0.0 and 1.0
shapeType
is one of "rectangle", "triangle", "sine", "noise", "sampled"
ntot
is the number of samples to generate (-1 indicates to go forever)