MIDI events contain a MIDI message and a corresponding time-stamp expressed in ticks, and can represent the MIDI event information stored in a MIDI file or a Sequence object. The duration of a tick is specified by the timing information contained in the MIDI file or Sequence object.
In Java Sound, MidiEvent objects are typically contained in a Track, and Tracks are likewise contained in a Sequence.
MIDI events contain a MIDI message and a corresponding time-stamp expressed in ticks, and can represent the MIDI event information stored in a MIDI file or a Sequence object. The duration of a tick is specified by the timing information contained in the MIDI file or Sequence object. In Java Sound, MidiEvent objects are typically contained in a Track, and Tracks are likewise contained in a Sequence.
(->midi-event message tick)
Constructor.
Constructs a new MidiEvent.
message - the MIDI message contained in the event - javax.sound.midi.MidiMessage
tick - the time-stamp for the event, in MIDI ticks - long
Constructor. Constructs a new MidiEvent. message - the MIDI message contained in the event - `javax.sound.midi.MidiMessage` tick - the time-stamp for the event, in MIDI ticks - `long`
(get-message this)
Obtains the MIDI message contained in the event.
returns: the MIDI message - javax.sound.midi.MidiMessage
Obtains the MIDI message contained in the event. returns: the MIDI message - `javax.sound.midi.MidiMessage`
(get-tick this)
Obtains the time-stamp for the event, in MIDI ticks
returns: the time-stamp for the event, in MIDI ticks - long
Obtains the time-stamp for the event, in MIDI ticks returns: the time-stamp for the event, in MIDI ticks - `long`
(set-tick this tick)
Sets the time-stamp for the event, in MIDI ticks
tick - the new time-stamp, in MIDI ticks - long
Sets the time-stamp for the event, in MIDI ticks tick - the new time-stamp, in MIDI ticks - `long`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close