If the only port you have is for output only, trying for input seems futile perhaps?
----- Original message ----- From: John Richards ajtr@us.ibm.com To: squeak-dev@lists.squeakfoundation.org Sent: Thu, 29 May 2008, 12:09:20 BST Subject: [squeak-dev] Creating/using MIDI ports with external device, how to start? I'm trying to open a midi port to receive incoming midi commands and am completely stuck (after a week of trying everything I can think of). I've confirmed that the MIDIPlugin is loaded. I've tried on both Windows XP and MacOS. The only port I have available is this:
MIDI Ports: 0: QuickTime MIDI (out)
Everything I have tried to create a new one has failed in the midi open primitive.
I suspect I'm just being dumb and there is an obvious incantation (hope so anyway).
Thanks so much for any advice you can provide.
John Attachment:
Agreed...that's why I've been trying to create a new one. For what it's worth. I can't output on the existing port either since it seems bound to the internal Mac sound generator. Oh well.
I'm on the verge of deciding this is impossible (is it really true that no one has made this work?). If so I'll try to build a primitive to access the portMidi open source code. I would REALLY like to avoid this path but no one seems to know how to do this seemingly simple thing.
John
Gary Chambers gazzaguru2@btinternet.com Sent by: squeak-dev-bounces@lists.squeakfoundation.org 05/29/08 09:06 PM Please respond to The general-purpose Squeak developers list squeak-dev@lists.squeakfoundation.org
To squeak-dev@lists.squeakfoundation.org cc
Subject Re: [squeak-dev] Creating/using MIDI ports with external device, how to start?
If the only port you have is for output only, trying for input seems futile perhaps?
----- Original message ----- From: John Richards ajtr@us.ibm.com To: squeak-dev@lists.squeakfoundation.org Sent: Thu, 29 May 2008, 12:09:20 BST Subject: [squeak-dev] Creating/using MIDI ports with external device, how to start? I'm trying to open a midi port to receive incoming midi commands and am completely stuck (after a week of trying everything I can think of). I've
confirmed that the MIDIPlugin is loaded. I've tried on both Windows XP and MacOS. The only port I have available is this:
MIDI Ports: 0: QuickTime MIDI (out)
Everything I have tried to create a new one has failed in the midi open primitive.
I suspect I'm just being dumb and there is an obvious incantation (hope so
anyway).
Thanks so much for any advice you can provide.
John Attachment:
On May 29, 2008, at 7:00 PM, John Richards wrote:
Agreed...that's why I've been trying to create a new one. For what it's worth. I can't output on the existing port either since it seems bound to the internal Mac sound generator. Oh well.
I'm on the verge of deciding this is impossible (is it really true that no one has made this work?). If so I'll try to build a primitive to access the portMidi open source code. I would REALLY like to avoid this path but no one seems to know how to do this seemingly simple thing.
John
You might look at the macintosh C code in
http://squeakvm.org/cgi-bin/viewcvs.cgi/trunk/platforms/Mac%20OS/plugins/MID...
I think MIDI ports are tied to devices, if the device doesn't exist you can't create out of air...
= = = ======================================================================== John M. McIntosh johnmci@smalltalkconsulting.com Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ========================================================================
also ask Craig Latta, he uses a Mac and has his MIDI ports working.
On Thu, May 29, 2008 at 8:35 PM, John M McIntosh johnmci@smalltalkconsulting.com wrote:
On May 29, 2008, at 7:00 PM, John Richards wrote:
Agreed...that's why I've been trying to create a new one. For what it's worth. I can't output on the existing port either since it seems bound to the internal Mac sound generator. Oh well.
I'm on the verge of deciding this is impossible (is it really true that no one has made this work?). If so I'll try to build a primitive to access the portMidi open source code. I would REALLY like to avoid this path but no one seems to know how to do this seemingly simple thing.
John
You might look at the macintosh C code in
http://squeakvm.org/cgi-bin/viewcvs.cgi/trunk/platforms/Mac%20OS/plugins/MID...
I think MIDI ports are tied to devices, if the device doesn't exist you can't create out of air...
=========================================================================== John M. McIntosh johnmci@smalltalkconsulting.com Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ===========================================================================
squeak-dev@lists.squeakfoundation.org