brucelane / Cinder-MIDI2

Alternative approach to interfacing RtMidi lib in Cinder
21 stars 10 forks source link

Not detecting in ports on Mac (Mojave OS) #18

Open couleurs opened 4 years ago

couleurs commented 4 years ago

I was revisiting an old app that used to work well with an external MIDI controller and realized the MIDI part doesn’t work on this new mac laptop I use which is on the Mojave OS.

It seems that RtMidi, which is what the Cinder-MIDI2 block is built on top of, is not detecting any ports because it is stuck in dummy mode although it should be in MacOS mode. Digging through the code, more specifically RtMidi.h, it seems that depends on the CINDER_MAC preprocessor macro being set properly which seems to happen in configure.cmake.

Any idea why something could go wrong here? Could it maybe be due to build order and the midi block not being built before that variable is properly set? Anything that could have regressed because of Mojave? Things were working fine on my old mac which was on the previous OS.

For what it’s worth I just tested things with python-rtmidi and in that case it does return available ports so it does seem related to something with my Cinder app.

Thanks!

brucelane commented 4 years ago

hi @couleurs , sorry I was too busy lately. I use this block mainly on windows, I maintain this repo but I'm not the original coder. I am open to PRs. Have you found a solution?

couleurs commented 4 years ago

Thanks for your response @brucelane :) I found a workaround but it's not super clean and I need to look a little deeper for a solution that might be worth a PR.