NAME

MIDI::XML::Channel - Base class for deriving classes for MIDI channel events.

SYNOPSIS

use MIDI::XML::Channel;
MIDI::XML::Channel->as_MidiXML($self);

DESCRIPTION

MIDI::XML::Channel is the base class from which MIDI Channel objects are derived.

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.

This functionality is provided by the MIDI::XML::Message base class.

$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.

This functionality is provided by the MIDI::XML::Message base class.

$time = $Obj->time();

Returns the message time, absolute or delta, whichever was last set.

This functionality is provided by the MIDI::XML::Message base class.

$channel = $Obj->channel() or $Obj->channel($channel);

Returns and optionally sets the channel number. Channel numbers are limited to the range 0-15.

@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

MIDI::Event.

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.