Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using MIKMIDI library to create a custom Bluetooth MIDI menu experience #322

Open
PasqualeTotaro opened this issue Nov 9, 2021 · 1 comment

Comments

@PasqualeTotaro
Copy link

PasqualeTotaro commented Nov 9, 2021

Hi Andrew and everybody, this is a question.

I am trying to create an App that connects to Bluetooth MIDI devices without using the default iOS Bluetooth MIDI menu. Why? Because I want to create a more visually pleasing experience for the user and handle automatic reconnection to the device.

The way I am trying to do this is by connecting the device like a normal BLE device and create a MIDI object associated to it. Then whenever the BLE MIDI service updates its characteristic (to send MIDI data) I would use the BLE call back function and stream the data through the MIDI object.

I am using MIKMIDI because it simplifies the whole process, but my question is what MIDI object shall I use?

When I sue the default iOS menu the BLE device appears as a MIDI Device, so my initial thought was to create a MIDI device with driver parameter NULL and connect a MIK MIDI Client to its endpoint to handle the BLE data.

But it fails creating the device (OSStatus -50)

I have also tried to use a MIDI External Device Class, but it has no endpoints to which connect the MIK MIDI Client.

Anybody has a better idea on how to accomplish this?

@YOrange834
Copy link

I also tried to do that, Now I abandon. I found that the system has no api to call to connect MIDI Device

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants