This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See: https://forums.developer.apple.com/thread/65997 | |
MIDIInputPortCreateWithBlock(midiClient, "Instrument" as CFString, &inPort, { | |
(unsafePacketList: UnsafePointer<MIDIPacketList>, pointer: UnsafeMutableRawPointer?) in | |
let packetList = unsafePacketList.pointee | |
if packetList.numPackets == 1 { | |
let packet = packetList.packet | |
if packet.length == 3 && packet.data.0 == 144 { | |
/* Note-On */ | |
let note = packet.data.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
colors: | |
# Default colors | |
primary: | |
background: '0x1e2127' | |
foreground: '0xabb2bf' | |
# Bright and dim foreground colors | |
# | |
# The dimmed foreground color is calculated automatically if it is not present. |