Quoting John Richards <[hidden email]>:
> 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) > > > John Hi John, I am not an expert in this area, but I did get MIDI-in working on Windows. I think you'll need a physical MIDI input device, e.g. if you can borrow a USB (piano) keyboard, or something like a MIDISport box. Squeak just sees what the system sees. I don't believe you'll be able to automagically conjure up a port. If you evaluate SimpleMIDIPort midiIsSupported, you should get true on Windows, and false on OSX and Linux. So you'll only be able to do MIDI-in on Windows, for the moment. Craig Latta was planning to port to these OSs- see this thread: http://www.nabble.com/MIDI-support-td13476203.html#a15745241 Craig, any news? Cheers, ...Stan _______________________________________________ SqueakAudio mailing list [hidden email] http://lists.create.ucsb.edu/mailman/listinfo/squeakaudio |
The physical device and midi/usb interface are present and working (verified by other software on the system which sees them). So my problem seems to be not knowing how to bind them to a new midi port so it can be used by Squeak. John
Quoting John Richards <[hidden email]>: > 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) > > > John Hi John, I am not an expert in this area, but I did get MIDI-in working on Windows. I think you'll need a physical MIDI input device, e.g. if you can borrow a USB (piano) keyboard, or something like a MIDISport box. Squeak just sees what the system sees. I don't believe you'll be able to automagically conjure up a port. If you evaluate SimpleMIDIPort midiIsSupported, you should get true on Windows, and false on OSX and Linux. So you'll only be able to do MIDI-in on Windows, for the moment. Craig Latta was planning to port to these OSs- see this thread: http://www.nabble.com/MIDI-support-td13476203.html#a15745241 Craig, any news? Cheers, ...Stan _______________________________________________ SqueakAudio mailing list [hidden email] http://lists.create.ucsb.edu/mailman/listinfo/squeakaudio _______________________________________________ SqueakAudio mailing list [hidden email] http://lists.create.ucsb.edu/mailman/listinfo/squeakaudio |
Hi John, just fired up my Windows partition to try again. I evaluated MIDISynth>>example This pops a menu, in which my device is listed: USB Audio Device (in) When I select that, the keyboard plays. Here's the example code: example "Here's one way to run the MIDI synth. It will get a nice Morphic UI later. Click the mouse to stop running it. (Mac users note: be sure you have MIDI interface adaptor plugged in, or Squeak will hang waiting for the external clock signal.)." "MIDISynth example" | portNum synth | portNum := SimpleMIDIPort inputPortNumFromUser. portNum ifNil: [^ self]. SoundPlayer useShortBuffer. synth := MIDISynth new midiPort: (SimpleMIDIPort openOnPortNumber: portNum). synth midiParser ignoreCommand: 224. "filter out pitch bends" 1 to: 16 do: [:i | (synth channel: i) instrument: (AbstractSound soundNamed: 'oboe1')]. 1 to: 16 do: [:ch | synth volumeForChannel: ch put: 0.2]. synth processMIDIUntilMouseDown. SoundPlayer shutDown; initialize. "revert to normal buffer size" Hope this helps, ...Stan |
In reply to this post by Stan Shepherd
> Craig Latta was planning to port to these OSs- see this thread: > http://www.nabble.com/MIDI-support-td13476203.html#a15745241 > > Craig, any news? I'm planning a 2008-06-20 (solstice) release of Spoon[1], featuring a module system, and a 2008-09-22 (equinox) release of Quoth[2], which I plan to deploy using that module system and which includes my MIDI work. Sooner if I win the lottery... that would free up another 40 hours a week. :) thanks, -C [1] http://netjam.org/spoon [2] http://netjam.org/quoth -- Craig Latta improvisational musical informaticist www.netjam.org Smalltalkers do: [:it | All with: Class, (And love: it)] _______________________________________________ SqueakAudio mailing list [hidden email] http://lists.create.ucsb.edu/mailman/listinfo/squeakaudio |
Free forum by Nabble | Edit this page |