Re: [hatari-devel] MIDI support for Windows & OSX (with PortMidi)

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]



On 4 Oct 2017, at 01:26, Simon Iten <itensimon@xxxxxxxxx> wrote:

ok…

after another unplug and replug of the midi-interface and another restart of hatari (with midi emulation enabled in the settings as before) it now shows up on the macbook without installed portmidi! great.

don’t know why the heck i would need 2 restarts of hatari, but it works now.

i can access the preferences menu on osx in two ways, via osd or via application menu. could it be that only one works? i tried both and maybe that triggers the bug as well?
to be more precise, now both osd and from menu show my interface. but i tried both when they were not working and they look sligthly different. the menu preferences still has the writing to file for midi in addition to the portmidi stuff while the osd only has the portmidi selection.



On 4 Oct 2017, at 01:12, Simon Iten <itensimon@xxxxxxxxx> wrote:


On 4 Oct 2017, at 00:57, Eero Tamminen <oak@xxxxxxxxxxxxxx> wrote:

Hi,

On 10/04/2017 01:50 AM, Simon Iten wrote:
just to confirm, i tried it on another macbook (also 10.12.6) and without the manual install of port midi it does not work. (i can not choose my interface from the menu)

Do you have MIDI enabled when you do that?
yes, it still only has off in the dropdown menu...

(The code has bug that it lists the MIDI interfaces only if you booted emulation with MIDI enabled.  Rebooting emulation should get them visible.  I have fix for that, but are facing other other issues.)


On 3 Oct 2017, at 14:03, Simon Iten <itensimon@xxxxxxxxx> wrote:

when i tried without installing portmidi, the new midi device selector popped up, but i could not select my interface. after i installed portmidi and rebooted, the device (fastlane-usb by motu) showed up.

so it seems the dynamic library fails to load here.

I think Hatari would fail to start if library it uses cannot be loaded.

It seems more likely that the (older?) portmidi version included with the build for some reason doesn't support something required for your MIDI interface.


i think it should be the same version since i also used portmidi from homebrew, as troed did for building.

- Eero

On 3 Oct 2017, at 13:51, Troed Sångberg <troed@xxxxxxxxxxx <mailto:troed@xxxxxxxxxxx>> wrote:

Thanks for testing! But .. did you need to install portmidi as well? What happened if you didn't?

(My build includes the portmidi dynamic library)

regards,
Troed


Sent from ProtonMail mobile



-------- Original Message --------
On Oct 3, 2017, 13:47, Simon Iten < itensimon@xxxxxxxxx <mailto:itensimon@xxxxxxxxx>> wrote:

hey,

home early :-)

it works here after an install of portmidi on 10.12.6. at first glance seems much more stable with sysex data then my hatari build on linux with the same interface. horray!! this is great. will have to test further...

thanks

simon

On 2 Oct 2017, at 15:14, Troed Sångberg <troed@xxxxxxxxxxx <mailto:troed@xxxxxxxxxxx>> wrote:

patch applied and built for macOS: https://troed.ddns.net/f/54ddaa46c16b4c47b878/ <https://troed.ddns.net/f/54ddaa46c16b4c47b878/>

However, I have not followed the instructions at all ... :P I installed portmidi using Macports to get a universal dylib, like I do with all other non-standard libraries. CoreAudio and CoreMIDI are osx default frameworks so those should exist on end user systems and thus I have not added them to the Hatari binary either.

I have no MIDI equipment to test with myself. If there's a Mac user on the list who has, please try to above binary and let me know what happens.

(Since I didn't do this in a separate build environment my nightly builds will from tonight also get this functionality)

regards,
Troed



-------- Original Message --------
Subject: [hatari-devel] MIDI support for Windows & OSX (with PortMidi)
Local Time: October 1, 2017 11:57 PM
UTC Time: October 1, 2017 9:57 PM
From: oak@xxxxxxxxxxxxxx <mailto:oak@xxxxxxxxxxxxxx>
To: hatari-devel@xxxxxxxxxxxxxxxxxxx <mailto:hatari-devel@xxxxxxxxxxxxxxxxxxx>

Hi,

I got from Jari Kleimola code for adding portmidi library support for
Hatari, which means getting Hatari MIDI working also on OSX and Windows
in addition to Linux.

Attached is patch from him with few bug fixes & CMake stuff from me
(those were needed to make it work also on Linux, so that I could test it).


I would appreciate if somebody with a MIDI device or SW synthetizer
using Windows and/or OSX could test whether it makes MIDI work on their
setup.


Attached are also Jari"s instructions on getting portmidi building on
OSX (he didn"t use CMake for building, but XCode).


- Eero

PS. Jari has also some questions about jitter he"s seeing in MIDI output:
http://www.atari-forum.com/viewtopic.php?f=51&t=32344 <http://www.atari-forum.com/viewtopic.php?f=51&t=32344>




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/