MIDI in/out in QEMU

About Qemu-system-ppc, a PPC Mac emulator for Windows, macOS and Linux that can run Mac OS 9.0 up to Mac OS X 10.5

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
Bon_Glung
Student Driver
Posts: 21
Joined: Wed Aug 29, 2012 5:23 am

MIDI in/out in QEMU

Post by Bon_Glung »

The latest build of QEMU is really exciting to use OS 9.2 again with good audio performance. I rarely use Sheepshaver now. My Atari ST Emulators also work very well. I prefer NoSTalgia .65 for most compatible functionality here.

I have been able to instal OMS to work with Quicktime 5 Instruments and an old DAW (Muzys) to compose and play midi and audio tracks. Some old VST plugins work well in this environment. Even my old MIDI projects running in NoSTalgia with Master Tracks Pro sequencer produce sound in Quicktime Music Instruments!

But I can't figure out midi data in/out to my external Casio CZ1000 keyboard. Back in the day, OMS used to connect via the printer or modem port using external serial midi box that won't plug into my Late 2009 iMac.

I use an Edirol UM=1 usb midi interface that works well with Garageband etc in Sierra (with modern driver). Is there a way to link the Sierra Audio/MIDI Setup to QEMU? Something in the Networking maybe?

This might be a bit esoteric or advanced at this stage of development. Other musicians might be interested.
iMac 21.5-inch, Late 2009, 3.06 GHz Intel Core 2 Duo, 8 GB RAM. OS X 10.12.6
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: MIDI in/out in QEMU

Post by Cat_7 »

I'm not sure whether Mac OS 9.2 will recognise usb devices connected to the host, but qemu does support usb-pass-trough when you know the vendor and product id of the usb device.

This should look something like this on the command line.
-device usb-host,vendorid=0x16b2,productid=0x1001

Best,
Cat_7
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: MIDI in/out in QEMU

Post by adespoton »

QEMU can also write serial out to a bluetooth device; might it be possible to link bluetooth serial to a virtual modem port on OS 9? This will let you patch directly into Audo/MIDI Setup, which in turn will let you mix MIDI between the host and guest OSes and any connected devices. However, I'm not sure whether you'll get an acceptable clock sync for OMS that way.
grebben
Space Cadet
Posts: 3
Joined: Mon Jun 29, 2009 8:08 pm
Location: Rochester, NY

Re: MIDI in/out in QEMU

Post by grebben »

Bon_Glung: I'm still experiencing glitchy audio that freezes QEMU after a minute or so, how did you achieve good audio performance?

I'd love to be able to work with external MIDI gear too, but at this point working with audio & MIDI in the box would be a great step up from Sheepshaver.

BTW, I'm using 'Qemu_(20171215)_-_PPC_-_Mac_OS_9.2.2.rar' from Macintosh Repository, and added audio using -device usb-audio.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: MIDI in/out in QEMU

Post by Cat_7 »

Hi,

To get decent audio behaviour in 9.1/9.2 you should get one of the experimental screamer builds dated 24-12-2017. You then do not need -device usb-audio in the command line.
You can still use the hard disk image you downloaded.

See here:
viewtopic.php?f=34&t=9028
or here:
viewtopic.php?f=34&t=8848&p=52102#p52102

Best,
Cat_7
Bon_Glung
Student Driver
Posts: 21
Joined: Wed Aug 29, 2012 5:23 am

Re: MIDI in/out in QEMU

Post by Bon_Glung »

Hello grebben,

Back in the day OS9 machines struggled to manage complex audio/midi schemes. Midi only worked better.

Muzys was the only sequencer that worked for me on a Performa 6030 and later iMac G5, with up to 8 audio tracks (but try for less). This was discontinued in 2003. You might find a woking demo version on old Computer Music magazine CDs. I had an early version of Cakewalk that had 4 audio tracks but proprietary plugins. You might find an old version of Cubase or Vision at Macintosh Garden. I haven't been able to get any version of Pro Tools working yet.

I'm using the new QEMU version from 24-04-2018 these days. It works well for me. See Cat_7's reply, the second link.

Other than that, instal OMS as usual. There is a bit of setup to do. One of the options is to set Quicktime instruments as the player for simple midi outputs. QT4 works well too. So, if QT5 won't run smoothly go back to QT4.

I was able to find an OS9 version driver for the Edirol UM-1 from a Japanese site, but there was something wrong with it, and it wouldn't instal. (sniff)

Finding old VSTs to use in an OS9 environment might be difficult. Old Computer Music magazine cover CDs from a Library(?) might help. DS-404 was (is) a good sampler with some nice presets.

Good luck.
iMac 21.5-inch, Late 2009, 3.06 GHz Intel Core 2 Duo, 8 GB RAM. OS X 10.12.6
jhall
Space Cadet
Posts: 1
Joined: Sun Jun 17, 2018 1:11 pm

Re: MIDI in/out in QEMU

Post by jhall »

Hi! I want to start off to say I'm really excited about the QEMU project for OS 9. I enjoy MOTUs Digital Performer 3 and Composer's Mosaic, which both work great in Sheepshaver with Quicktime but I miss the possibility to record MIDI. Since it seems Sheepshaver won't ever get USB support, I'm putting my future hopes in QEMU and I'll try and help as best I can through testing builds, etc.
Cat_7 wrote:I'm not sure whether Mac OS 9.2 will recognise usb devices connected to the host, but qemu does support usb-pass-trough when you know the vendor and product id of the usb device.

This should look something like this on the command line.
-device usb-host,vendorid=0x16b2,productid=0x1001

Best,
Cat_7
I tried this with my Edirol PCR-500, but I couldn't get it to work. That keyboard is from 2007 and I suppose it has be to one that shows up in the list of midi devices in the setup of OMS or FreeMidi.

I do also have an old Roland PC-200 MKii which is a model that shows up as an option in OS 9. But I'm not sure if a regular MIDI-USB adapter would work. I have MIDI IN in my USB Audio Device (Focusrite Scarlett 18i20) and that one doesn't work, at least.
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: MIDI in/out in QEMU

Post by adespoton »

The best info I could find was here: http://wiki.freepascal.org/Qemu_and_other_emulators where they succeeded getting MIDI I/O via USB, but had to fiddle around with the vendor ID to get it recognized for their keyboard.
Shadyday
Student Driver
Posts: 10
Joined: Wed Aug 31, 2011 12:48 pm

Re: MIDI in/out in QEMU

Post by Shadyday »

Hello,
I've just become aware of QEMU. I'm also a musician, without programming skills or deep knowledge in that area. i.e. a fairly "normal" person, so don't be too hard on me! :oops:

I've run Sheepshaver for quite a few years with a music engraving program written for Mac OS9.x It does almost everything I need, the big exception being MIDI. I know that MIDI is not supported in Sheepshaver, but it's something that I MUST have - to retire my old G5 and move onto a contemporary Mac.

Reading in this forum that there is support for MIDI in QEMU has gotten my mouth watering. However I'm not sure if I really am understanding this correctly. I went to the QEMU web site and couldn't find any (understandable to me) information. I tried downloading a Mac version from what looked like a link on this page: https://www.qemu.org/download/#macos - but nothing worked.

The question I'd love someone to answer (in as non-technical English as possible) is: "Is there a QEMU build that works in Mac OS 10.13 that supports MIDI in OS 9.x?" And if so - "Where would I start? Is there some documentation or a tutorial or other help in getting everything installed?"

Thanks for any help!
sleestack
Student Driver
Posts: 23
Joined: Tue Aug 29, 2017 5:21 pm

Re: MIDI in/out in QEMU

Post by sleestack »

This, bump. Really would be wonderful to have serial port and midi.

Serial ports for sending information to samplers and synths. Actually, for me. Serial port would work. But I'm sure others want midi
darthnvader
Mac Mechanic
Posts: 178
Joined: Sun Feb 07, 2016 4:40 pm

Re: MIDI in/out in QEMU

Post by darthnvader »

I've had mixed results with Qemu-system-ppc and USB passthrough. OS 9 just quits on an abnormal exit when trying to connect a USB 2 flash drive.

Some older USB to Midi boxes had OS 9 drivers, and may or may not work with USB passthrough and Qemu. :twisted:
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: MIDI in/out in QEMU

Post by adespoton »

Have you tried the latest qemu builds with the PMU and CUDA configurations? I found that this improved USB handling a lot. I haven't heard of anything new being done for serial A and B on the non-PMU configuration, but I thought that already worked...?
nsputnik
Student Driver
Posts: 23
Joined: Mon Apr 30, 2012 6:52 pm

Re: MIDI in/out in QEMU

Post by nsputnik »

Here are a bunch of OS9 midi drivers.
https://www.macintoshrepository.org/230 ... rt-drivers
Post Reply