Calling this method when the time is absolute will not generate a warning or error but it is unlikely that the results will be satisfactory. MIDI::Event does not expect absolute times and will interpret them as delta times. Returns a MIDI::Event note_off array initialized with the values of the NoteOff object. Returns a value to be used to order events that occur at the same time. Velocities are limited to the range 0-127. Returns and optionally sets the velocity. $velocity = $Note_Off->velocity() or $Note_Off->velocity($velocity) Sets and returns the MIDI note number to the specified step and octave values assuming a 0 alter value. $note_no = $Note_Off->note($step, $octave) Step is a letter designation of the note, /A|B|C|D|E|F|G/, alter is -1 for flat, 0 for natural, and 1 for sharp, and octave is the octave, -1 to 9. Sets the MIDI note number to the specified step, alter and octave values. $note_no = $Note_Off->note($step, $alter, $octave) Note numbers are limited to the range 0-127.
Sets and returns the MIDI note number to the specified number. This functionality is provided by the MIDI::XML::Channel base class. Channel numbers are limited to the range 0-15. Returns and optionally sets the channel number. $channel = $Note_Off->channel() or $Note_Off->channel($channel) This functionality is provided by the MIDI::XML::Message base class. Returns the message time, absolute or delta, whichever was last set. To avoid contradictory times, the delta time is set to undef when an absolute time is set. Optionally sets the message time to the specified absolute time. Returns the message time as an absolute time or undef if it is a delta time. $absolute_time = $Note_Off->absolute() or $Note_Off->absolute($absolute_time) To avoid contradictory times, the absolute time is set to undef when a delta time is set. Optionally sets the message time to the specified delta time.
Returns the message time as a delta time or undef if it is an absolute time. $delta_time = $Note_Off->delta() or $Note_Off->delta($delta_time) $Note_Off = MIDI::XML::NoteOff->new($event) Ĭreates a new NoteOff object initialized with the values of a MIDI::Event note_off array. This creates a new MIDI::XML::NoteOff object. METHODS AND ATTRIBUTES $Note_Off = MIDI::XML::NoteOff->new() The classes for MIDI Note Off messages and the other six channel messages are derived from MIDI::XML::Channel. A Note Off message includes either a delta time or absolute time as implemented by MIDI::XML::Message and the MIDI Note Off event encoded in 3 bytes as follows: MIDI::XML::NoteOff is a class encapsulating MIDI Note Off messages. MIDI::XML::NoteOff - MIDI Note Off messages.