MidiPhraseEvent class
A single event within a MIDI phrase, with timing defined in beats.
This class represents a single action, such as a note on, a pitch bend, or a control change, and its timing relative to the start of the phrase.
Constructors
- MidiPhraseEvent({required MidiEvent midiEvent, required double beat, double? duration})
-
const
Properties
- beat → double
-
The beat number this event occurs on, relative to the start of the phrase.
For simultaneous events (like a chord), they share the same beat value.
final
- duration → double?
-
The duration of a note in beats. This is used only for Note On events
and is nullable for all other event types (e.g., control changes).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- midiEvent → MidiEvent
-
The MIDI message to be sent.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited