Module
Snack
In: rbSnack/tkSnack.rb

In order to use Snack, it must first be initialized using the initializeSnack method

Methods

exeTkCmd, filter, getOpenFile, getSaveFile, initializeSnack, sendTkCmd, sound, versions,
Classes and Modules

Module Snack::Audio
Module Snack::Mixer

Included modules

Config
Public Instance methods
initializeSnack(root) src

Initialize so that snack may be used. Must be initialize before Snack can be used. Requires a valid TkRoot

exeTkCmd( cmd, options ) src

A helper method for this api. Generally, the end user will not use this method.

sendTkCmd(*cmds) src

A helper method for this api. Generally, the end user will not use this method.

getOpenFile(options=nil) src

Creates an open file dialog for selecting which file to load The advantage to this over Tk.getOpenFile is that it defaults to files of known sound formats.

getSaveFile(options=nil) src

Creates an save file dialog for selecting which file to save The advantage to this over Tk.getSaveFile is that it defaults to files of known sound formats.

sound(options=nil) src

A sound object factory. Exactly the same as Sound.new

filter( type, *args) src

A filter object factory. Valid values for type are

composition
Returns a new CompositionFilter
echo
Returns a new EchoFilter,
generator
Returns a new GeneratorFilter
formant
Returns a new FormantFilter
iir
Returns a new IIRFilter
fir
Returns a new FIRFilter
map
Returns a new MapFilter
reverb
Returns a new ReverbFilter

See Filter

versions() src

Returns the version of rbSnack and Snack