modules, plugins, primitives, and MIDIPlugin
Posted by
dabrowsa@indiana.edu on
May 12, 2007; 2:12am
URL: https://forum.world.st/modules-plugins-primitives-and-MIDIPlugin-tp134208.html
Can someone briefly explain how MIDIPlugin is supposed to work?
In the code for SimpleMIDIPort I see the following method.
> primMIDIOpenPort: portNum readSemaIndex: readSemaIndex
> interfaceClockRate: interfaceClockRate "Open the given MIDI port. If
> non-zero, readSemaIndex specifies the index in the external objects
> array of a semaphore to be signalled when incoming MIDI data is
> available. Not all platforms support signalling the read semaphore.
> InterfaceClockRate specifies the clock rate of the external MIDI
> interface adaptor on Macintosh computers; it is ignored on other
> platforms."
>
> <primitive: 'primitiveMIDIOpenPort' module: 'MIDIPlugin'> self
> primitiveFailed.
I'm guessing that the line "<primitive: 'primitiveMIDIOpenPort' module:
'MIDIPlugin'> self" is call to something external to the current squeak
image.
When I try to execute the primMIDIOpenPort method I get a
"primitivefailed" error message. Is this because my current image can't
find the external resource?
I'm running Ubuntu 7.04, and in the Squeak directory there is file
called "SqueakPlugin.image". I tried copying that to same directory
with my squeak image file, but it doesn't help. Am I supposed to
somehow load the plugin into my image before invoking the method?
Or do I have to compile my own VM with the MIDIPlugin source code to get
this working?
_______________________________________________
SqueakAudio mailing list
[hidden email]
http://www.create.ucsb.edu/mailman/listinfo/squeakaudio