kunstmusik / blue

Blue - An Integrated Music Environment
https://blue.kunstmusik.com
GNU General Public License v2.0
130 stars 11 forks source link

PortMidi not finding any ports on M1 Mac #753

Open boonier opened 1 year ago

boonier commented 1 year ago

Observed v2.9.0 on M1 Mac. No ports are found when scanning.

image

Render Command ( /usr/local/bin/csound -+msg_color=false -+rtaudio=pa_cb -o dac4 -+rtmidi=PortMIDI -M -Q -d -m135 /var/folders/fg/wfr18hbs4gq75q7zy0_cfnwh0000gn/T/tempCsd14876293392804303132.csd )

There isn't a device for the -M in the command.

I tried this on an Intel build and it all works fine, so something specific to the ARM64 build?

Cheers

kunstmusik commented 1 year ago

I think it's somewhat functioning as expected in that you have the "MIDI IN" checkbox enabled but have an empty string for the device. That'll force the use of "-M {midiInValue}" but with an empty string set it gets added to the render command that way. I could add a check that if there's an empty string to ignore adding that to the Render command (and do the same for some other flags too).

As for why Portmidi devices aren't found on M1 I think that's a separate matter. I'll have to look into that one as I did a quick test and can see devices showing with the command line but not detected with Blue.

On Sun, Jul 30, 2023 at 5:16 AM Si Mills @.***> wrote:

Observed v2.9.0 on M1 Mac. No ports are found when scanning.

[image: image] https://user-images.githubusercontent.com/6206789/257042113-598709e9-5a02-4dfb-9e4a-2a3e8f939bff.png

Render Command ( /usr/local/bin/csound -+msg_color=false -+rtaudio=pa_cb -o dac4 -+rtmidi=PortMIDI -M -Q -d -m135 /var/folders/fg/wfr18hbs4gq75q7zy0_cfnwh0000gn/T/tempCsd14876293392804303132.csd )

There isn't a device for the -M in the command.

I tried this on an Intel build and it all works fine, so something specific to the ARM64 build?

Cheers

— Reply to this email directly, view it on GitHub https://github.com/kunstmusik/blue/issues/753, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMMA64H5UWXQFKPJGTOO6DXSYQ5FANCNFSM6AAAAAA25CCXE4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

boonier commented 11 months ago

An update to this issue.

Reinstalling Csound seems to have resolved the Portmidi issues. I think somewhere along the line Portmidi got corrupted (or deleted?...idk). But I discovered something wasn't right, when trying to run from the cli and getting no midi i/o errors

But I can now select ports in Blue.