dclelland / Gong

Gong is a MIDI library for iOS and macOS.
MIT License
85 stars 16 forks source link

Midi channel change #12

Closed ramondebruyn closed 2 years ago

ramondebruyn commented 3 years ago

Thank you for this incredible library! I was able to get it working on iOS.

This may be related to the previous question, but is there a way to manually set the channel that the midi data is sent out on? In the example app, it shows as being sent on channel 0. How do I set it to send on different channel?

Thanks again for a wonderful library!

dclelland commented 2 years ago

Hi, in the example app the MIDINote is initialised like this:

let note = MIDINote(pitch: pitch)

You should be able to specify a channel like this:

let note = MIDINote(channel: 0, pitch: pitch)