TrackEvent.asMIDIEvent

  1. inout(MIDIEvent)* asMIDIEvent()
    struct TrackEvent
    inout return @nogc nothrow pure @safe
    inout(MIDIEvent)*
    asMIDIEvent
    ()
  2. inout(SysExEvent)* asSysExEvent()
  3. inout(MetaEvent)* asMetaEvent()

Return Value

Type: inout(MIDIEvent)*

a pointer to the underlying MIDIEvent, SysExEvent or MetaEvent if the object is of that variety; null otherwise

Note: do not reassign the TrackEvent object while still having a reference to the object in the union.

Meta