Re: [hatari-users] Question regarding Hatari and MANDALA.PRG

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


Hi,

I tried something else than Mandala with PortMidi
(Sequencer One), and that didn't work properly
with it.  PortMidi complained about invalid MIDI
event data at Sequencer program startup, after
which PortMidi connection is closed and nothing
else will go through...

Please run Hatari with "--trace midi" option and
check whether it complains about write errors.
And if yes, what error number is reported by
PortMidi write error before that?


	- Eero

On 1/29/20 11:47 PM, Eero Tamminen wrote:
Hi,

On 1/27/20 8:24 PM, Michel Tavir wrote:
Your requirements are much more extensive and complex than mine, Robert, but we're pretty much in the same unfixed fix, I see. Curious that it should be
no different so many Mac OS's apart.

Seeing that one can add attachments on this list, I'll send any screen shot
that may be requested.

But in the meanwhile — Eero, considering that you got it running with your
setup, could you please tell me what your settings are under F12, CPU
options?

Hatari defaults for ST.


And which TOS.img you are using?

EmuTOS v0.9.12 release.


Hatari is naturally built from latest Git commit.


Normally I'm using raw MIDI device connection,
not PortMidi.  This is for several reasons:
* I test also other stuff with MIDI interface
   (networking & debug output) than MIDI events[1]
* If the configured PortMidi device isn't present,
   PortMidi causes thread deadlock with libSDL
   audio thread when Hatari exits (on Linux)
* raw MIDI device can be toggled on & off at
   any time

[1] PortMidi deals only with MIDI events, not raw bytes.


But I tested now also Hatari build with PortMidi
support:
* Start Qsynth [2]
* Start Hatari with MIDI enabled
* Select "synth input port" from
   the SDL GUI MIDI output selection
* Save Hatari configuration
* Restart Hatari with Mandala
* Start Mandala playing

=> Mandala uploads the instrument selection to
    Qsynth through MIDI and MIDI playback sounds
    fine with PortMidi too.


     - Eero

[2] Version 0.5 from my Linux distro.  Qsynth
seems to be available also for Mac from here:
https://qsynth.sourceforge.io/qsynth-downloads.html

From: Robert Aries
Reply-To: <hatari-users@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 27 Jan 2020 12:21:14 -0500
To: <hatari-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [hatari-users] Re: [hatari-users] Re: [hatari-users] Question
regarding Hatari and MANDALA.PRG

I’m following this thread with some interest as I’ve always had a wish to
run my old Atari midi sequencer software (Dr T KCS/Level II) on my Mac. It’s just not happening. Hatari sees the hardware midi interface I have connected to my Mac’s USB port (MOTU Fastlane) but no midi reaches the sequencer, and
midi notes manually entered do not output from the interface.

I tried about a year ago with details in this thread:
http://www.atari-forum.com/viewtopic.php?f=51&t=35184

At that time I was using the Mac’s built-in IAC (inter-applications midi
bus) for input & output, with the same results. I got my hopes up this time
because my MOTU interface was seen by Hatari, but no joy.



On Jan 27, 2020, at 11:48 AM, Michel Tavir <tingo@xxxxxxxxxxxxx> wrote:

Re: [hatari-users] Re: [hatari-users] Re: [hatari-users] Question regarding
Hatari and MANDALA.PRG

Hello again Eero,

Here is as far as I have managed.

I found in the Utilities installed by the Mac OS (9 years ago!) an application
called Audio MIDI Setup. It opened several windows:

1. Audio Devices - Built-in Output, set to Headphones as "Source" (?)
2. Midi Studio, where I select "IAC Driver" from a default configuration
3. IAC Driver Properties - "Device is online", Ports: Bus 1, Connectors for:
Bus 1 = Midi In=1 / Midi Out=1

In Hatari 2.2.1: F12, Devices, Enable MIDI emulation, both input and output
set to "IAC Driver Bus 1"

Sounds like it should work, doesn't it? But it doesn't.

Note that:

- my Mac is fully sound-capable (also from Linux or Windows virtual machines,
for example)

- I tried using the Emu TOS etos512k.img instead of the built-in tos.img. No
difference.

- could it be that more stuff is needed on the C drive, besides the MANDALA
folder (as I remember there used to be on a TT: accessories etc.)?

- F12, Sound: I am perfectly able to record to a wav file, but at playback it
is completely "devoid" of any sound.

- there are a few glitches in my installation (mouse, saving desktop etc.), but the only one I believe might be relevant is this warning when I launch Hatari: "Can_not use the hard disk image file '/Applications/Hatari/' since its size is not a multiple of 512". Which I don't understand any more than
most settings under F12.

It seems that it all should be so easy. Apologies if it is and it's just me
being unable to figure it out.

Michel



Michel Tavir wrote on 27/01/20 00:01:

           Thank you, Eero, that clears up things. I will try to figure out
what there is of MIDI
           software for Macs of that generation (OS 10.6 Snow Leopard). In the
meanwhile if anyone
           else on this list knows about such software, I'll be happy to hear
about it.
           Michel


           
           From: Eero Tamminen
           Reply-To: <hatari-users@xxxxxxxxxxxxxxxxxxx
<x-msg://1/hatari-users@xxxxxxxxxxxxxxxxxxx> >
           Date: Mon, 27 Jan 2020 00:17:24 +0200
           To: <hatari-users@xxxxxxxxxxxxxxxxxxx
<x-msg://1/hatari-users@xxxxxxxxxxxxxxxxxxx> >
           Subject: Re: [hatari-users] Re: [hatari-users] Re: [hatari-users]
Question regarding
           Hatari and MANDALA.PRG
           Hi,
           On 1/24/20 1:17 PM, Michel Tavir wrote:
           >> I have managed to install Hatari on my MacBook Pro with Mac OS
10.6.8 Snow
           >> Leopard, and for now I can live with the few bugs I came
across. I did get
           >> MANDALA running ‹ the graphics part at least, because for some
reason I
           >> cannot get any sound at all. Yet pressing keys does result in a
click sound,
           >> so it's not like this installation of Hatari isn't
sound-capable (as was the
           >> case, as far as I could understand, with MagicMacX, which I
tried some years
           >> ago).
           Mandala sound output is through MIDI and it seems
           to work fine.
           You need a MIDI device and configure Hatari to
           use it.
           I don't have Mac, but like Linux, it might have
           some software MIDI synthetizers which you can use
           if you don't have real MIDI HW.
           Note: Hatari PortMidi code enumerates MIDI devices
           at startup, so your MIDI device needs to powered &
           connected when Hatari starts, otherwise your
           device doesn't show up in Hatari's devices dialog.
            - Eero
           PS. Hatari has supported MIDI on Linux since
           v0.45, but we got MacOS & Windows MIDI support
           (with PortMidi) only for Hatari v2.1 release.
           (Hatari devs don't Have Mac or Linux, so support
           for those platforms is through 3rd party code
           contributions, this includes the MacOS Hatari
           GUI.)



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