NAME
MIDI::XML::Channel - Base class for deriving MIDI message classes.
SYNOPSIS
use MIDI::XML::Message;
MIDI::XML::Message->as_MidiXML($self);
DESCRIPTION
MIDI::XML::Message is the base class from which MIDI Message objects are derived. It should not generally be used directly except as shown in the classes for the individual messages.
EXPORT
None.
METHODS AND ATTRIBUTES
- $delta_time = $Obj->delta() or $Obj->delta($delta_time);
-
Returns the message time as a delta time or undef if it is an absolute time. Optionally sets the message time to the specified delta time. To avoid contradictory times, the absolute time is set to undef when a delta time is set.
- $absolute_time = $Obj->absolute() or $Obj->absolute($absolute_time);
-
Returns the message time as an absolute time or undef if it is a delta time. Optionally sets the message time to the specified absolute time. To avoid contradictory times, the delta time is set to undef when an absolute time is set.
- $time = $Obj->time();
-
Returns the message time, absolute or delta, whichever was last set.
- @xml = $Obj->as_MidiXML();
-
This method is called by the as_MusicXML methods of derived classes.
Returns an array of elements formatted according to the MidiXML DTD.
AUTHOR
Brian M. Ames, <bmames@apk.net>
SEE ALSO
COPYRIGHT and LICENSE
Copyright 2002 Brian M. Ames. This software may be used under the terms of the GPL and Artistic licenses, the same as Perl itself.