Modal hierarchical Menu system
use Term::Graille::Audio; # TERM::Graille's Audio module my $beep=Term::Graille::Audio->new();# create object; $beep->playSound(undef, "A#1"); # use built-in samples to play a note
Developed to use Audio in Braille Applications. Again the empahsis to try and avoid external libraries. It does neeed some things to connect with sound hardware though. Linux systems need pulseaudio utilities Winodws is as yet untested. Windows systems need Win32::Sound
my $beep=Term::Graille::Audio->new(%params)
Creates a new audio interface object; params are samples samples stored in external files may be loaded allowing different sounds to be played back. These are stored and retrieved as Storable files. This is optional, an if not supplied, Term::Graille::Audio gnerates its own sinwave sample.
samples
my $beep->saveSampleSet($name,$path)
Saves a sample set to file to directory (adds an extenison ".spl)
loads a sample set from full path, excludes the extension in the name;
my $beep->playSound($name,$soundName)
Plays a note from the samplesset ($name). If sampleset is undefined then the builtin-"default" sample set is used.
To install Term::Graille, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Term::Graille
CPAN shell
perl -MCPAN -e shell install Term::Graille
For more information on module installation, please visit the detailed CPAN module installation guide.