Skip to content

Commit

Permalink
Add midiPacketList property
Browse files Browse the repository at this point in the history
  • Loading branch information
cemolcay committed Mar 8, 2018
1 parent 3bd93b6 commit b7c73aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/MIDIEventKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ public struct MIDIEvent {
packet.data.2 = event.dataBytes.data2
return packet
}

/// Returns a MIDIPacketList packed with itself.
public var midiPacketList: MIDIPacketList {
return MIDIPacketList(numPackets: 1, packet: midiPacket)
}
}

// MARK: - MIDI Channel Voice Events
Expand Down

0 comments on commit b7c73aa

Please sign in to comment.