Music::ABC::Song - Handle songs in ABC music archives
0.01
$abcfile = "Some_ABC_file.abc" ; $songnum = 6 ; $abc_obj = Music::ABC::Song->new(archivename=>$abcfile, number=>$songnum) ; some other text here...
ABC music archives (http://www.gre.ac.uk/~walshaw/abc/index.html) contain songs in the ABC format. They are a very quick way for entering music in a text format, and there are numerous publishable quality renderers for ABC music. This module encapsulates an individual song from an ABC archive, so they may more easily be managed by perl front-ends.
optional arguments: archivename=>$, number=>$, filepos=>$, key=>$, meter=>$
archivename is the name of the ABC archive number is the song number in the archive filepos is the file position pointer (as in tell) of the start of the song in the archive key is the musical key of the song type is the song type, i.e. reel, jig, waltz, ... meter is the song meter, i.e. 4/4, 3/8, C, etc.
Specify the name of the archive file, if s is given. Returns the current archive file name.
Specify a name for display to the user of the song, if s is given. Returns the current displayname.
Specify the position of the song in the archive (as in ftell), if s is given. Returns the current position.
Specify the song number in the archive, if s is given. Returns the current song number.
Specify the musical key of the song, if s is given. Returns the current key.
Specify the meter of the song, if s is given. Returns the current meter.
Specify the type (jig, waltz, ...) of the song, if s is given. Returns the current type.
Specify titles for the song (via an array reference), if s is given. Returns the array reference of current titles.
Add a single title for the song, if s is given. Returns the list of current titles.
Specify notes for the song (via an array reference), if s is given. Returns the array reference of current notes.
Add a single note for the song, if s is given. Returns the list of current notes.
Add a single line of text for the song, if s is given. Returns the list of current text lines.
Returns the scalar value of the header h, or an array reference if a multiline header. If text is given add a single header with type h for the song.
return an array reference with text summarizing the song. Optionally use html markup, if f is given and set to a value Perl condsiders to be TRUE.
Jeff Welty (jeff@redhawk.org)
None known, but you'll be sure to tell me if you find one, won't you?
Music::ABS::Archive.pm
This program is free software. You may copy or redistribute it under the same terms as Perl itself.
To install Music::ABC::Song, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Music::ABC::Song
CPAN shell
perl -MCPAN -e shell install Music::ABC::Song
For more information on module installation, please visit the detailed CPAN module installation guide.