I am trying to create a method that outputs MIDI information to a virtual client using CoreMIDI. The βactionβ method is MIDIReceived, which transmits MIDI data in the form of MIDI packets to a virtual client.
Below, I created a method that takes MIDI bytes as a parameter that the method should add to the list of MIDI packets, which is then sent to the virtual client with MIDIReceived.
This does not work.
I tested this code without trying to use my own method, that is, manually entering data in mini-bytes, and it works fine.
The problem, I suppose, is that I cannot correctly pass an array of bytes to the method.
The error I get for the object message is the "expected expression".
How to pass an array of bytes to a method? (preferably without using NSData)?
As you can see, all I want to do is create an easy way to transfer MIDI data to a virtual source, but I have some problems with this.
source share