MIDI::Opus 0.81 review
DownloadMIDI::Opus are functions and methods for MIDI opuses. SYNOPSIS use MIDI; # uses MIDI::Opus et al foreach $one (@ARGV) {
|
|
MIDI::Opus are functions and methods for MIDI opuses.
SYNOPSIS
use MIDI; # uses MIDI::Opus et al
foreach $one (@ARGV) {
my $opus = MIDI::Opus->new({ 'from_file' => $one, 'no_parse' => 1 });
print "$one has ", scalar( $opus->tracks ) " tracksn";
}
exit;
MIDI::Opus provides a constructor and methods for objects representing a MIDI opus (AKA "song"). It is part of the MIDI suite.
An opus object has three attributes: a format (0 for MIDI Format 0), a tick parameter (parameter "division" in MIDI::Filespec), and a list of tracks objects that are the real content of that opus.
Be aware that options specified for the encoding or decoding of an opus may not be documented in this module's documentation, as they may be (and, in fact, generally are) options just passed down to the decoder/encoder in MIDI::Event -- so see MIDI::Event for an explanation of most of them, actually.
Requirements:
Perl
MIDI::Opus 0.81 keywords