Re: [hatari-devel] hatari.app MIDI support (was hatari.app from cirrus-ci)

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


Hi,

On 22.12.2023 5.42, Bob Carpenter wrote:
As I assumed, the problem had nothing to do with Hatari. It had to do with the fact that I did not set up any virtual MIDI devices on my Mac because I do not use MIDI. Once I found an article on how to set up a virtual MIDI device, I saw those devices in Hatari (after restarting Hatari).

I'm assuming one of the virtual instruments can provide sound. Midi Square is something one can easily have fun with, without being a musician:
https://www.google.com/search?q=atari+midi+square

:-)

	- Eero

Bob C

On Dec 21, 2023, at 3:52 PM, Eero Tamminen <oak@xxxxxxxxxxxxxx> wrote:

HI Bob,

On 21.12.2023 20.29, Bob Carpenter wrote:
This build works and I see the portmidi framework is included. Unfortunately, I have no idea how to make Hatari use the built-in MIDI devices in Audio MIDI setup so I do not know if the MIDI functionality is working.

It may be better to first use the SDL GUI, as that's been better tested.

In the SDL GUI "Devices" dialog, MIDI input & output options should be showing "Off", unless you've saved Hatari config with something else selected.

When you click into arrows, MIDI input & output should show something else than just "Off", *if* MIDI devices are available in the system.

Note: if MIDI devices are provided by host programs (e.g. QSynth / FluidSynth SW MIDI synthetizer), they need to be started *before* starting Hatari!


	- Eero

(If I remember correctly, PortMidi does not support re-scanning the devices once it had been initialized, so Hatari won't support it either.)

I also do not know if Thomas will be willing to simply copy your framework into Hatari.app. I am not a GitHub or cirrus-ci guru so I cannot find the YML file to see if other frameworks are being compiled. I think they are being compiled rather than simply copied into Hatari.app.
Bob C
On Dec 21, 2023, at 10:59 AM, Andreas Grabher <andreas_g86@xxxxxxxxxx> wrote:

Sorry, my fault! Forgot one of my building steps (annoyingly on my system it always links against the MacPorts version of zlib instead of the system version). This build is fixed:
https://www.dropbox.com/scl/fi/iynlnlbbie2oryjzd5biz/hatari_test.zip?rlkey=t7ct3u7i6a2grk4vulp0m4ec7&dl=0

Am 21.12.2023 um 18:07 schrieb Bob Carpenter <hatari@xxxxxxxxxx>:

Andreas,

Unfortunately, this version does not work on my Mac. I receive the following error:
Library not loaded: /opt/local/lib/libz.1.dylib

I assume this is something you installed manually on your Mac.

Bob C

On Dec 21, 2023, at 7:48 AM, Andreas Grabher <andreas_g86@xxxxxxxxxx> wrote:

I think I got it. I glued together a portmidi.framework. Please check, if this binary works and portmidi is usable:
https://www.dropbox.com/scl/fi/4g4q9vmvy9php4dhk5azn/hatari_test.zip?rlkey=t0pajef7crg2gqbaru3wv4fzg&dl=0

In case it is, I can provide the pre-built framework.


Am 21.12.2023 um 09:47 schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>:

Seems I am not able to create a working portmidi.framework. Does someone have the skills to build it?


Am 21.12.2023 um 04:59 schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>:

I‘ll try to find/compile portmidi. But it might be a bit less clean compared to what we did with SDL2 and PNG.

Am 21.12.2023 um 01:34 schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:

Hi,

On 20.12.2023 20.40, Bob Carpenter wrote:
I completely understand. Your reply gives me the opportunity to thank you for the work you have done on this even though you are not a macOS user. Since I do not use MIDI, I cannot justify the time to spend on this. If there is not someone who has the interest in working on this, a simple note should suffice letting Mac users know that portmidi is not available in 2.5.0 when it is finally released.

Especially Falcon has some pretty nice non-MIDI music programs, so I can understand not being interested in MIDI music SW, although ST has a lot of interesting MIDI programs.

(E.g. MidiSquare is an interesting one even for non-musician, as one can get somewhat interesting music just by moving mouse around a grid.)

There are also quite a few games that work faster and with better sound when music goes to MIDI though (Bad Mood, ScummVM and graphical native ST adventure games...), and even few demos.


  - Eero
Bob C
On Dec 20, 2023, at 11:20 AM, Thomas Huth <th.huth@xxxxxxxxx> wrote:

Am Wed, 20 Dec 2023 10:18:26 -0700
schrieb Bob Carpenter <hatari@xxxxxxxxxx>:

Since some Mac Hatari users try to use MIDI, it would be helpful if the portmidi framework were included.

If someone supplies me with the command line instructions how to create a
framework / usable universal library for this, I can try to add it. But I
don't have that much spare time to figure it out on my own.

As far as I know, the portaudio framework is only needed if you use the
microphone in Falcon mode.

Portaudio is not needed anymore, microphone input is available via the SDL
library since a while already.

Thomas




















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