modules, plugins, primitives, and MIDIPlugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

modules, plugins, primitives, and MIDIPlugin

dabrowsa@indiana.edu
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?

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

dabrowsa.vcf (222 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: modules, plugins, primitives, and MIDIPlugin

Bert Freudenberg

On May 11, 2007, at 18:18 , Andrew Dabrowski wrote:

> 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

Until very recently the Unix VM did not support the MIDI plugin. You  
need to build the VM from the latest sources in the subversion  
repository.

http://squeakvm.org/cgi-bin/viewcvs.cgi/trunk/platforms/unix/plugins/ 
MIDIPlugin/

- Bert -


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: modules, plugins, primitives, and MIDIPlugin

Cesare Marilungo
Bert Freudenberg wrote:

>
> On May 11, 2007, at 18:18 , Andrew Dabrowski wrote:
>
>> 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
>
> Until very recently the Unix VM did not support the MIDI plugin. You
> need to build the VM from the latest sources in the subversion
> repository.
>
> http://squeakvm.org/cgi-bin/viewcvs.cgi/trunk/platforms/unix/plugins/MIDIPlugin/ 
>
>
> - Bert -
>
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>
I have built squeak from a recent svn version, and in fact I have
MIDIPlugin in my /lib/squeak/3.9-10 directory.

But how can I test it?

I can't see any midi port from alsa when squeak is running.

c.

--
http://www.cesaremarilungo.com

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: modules, plugins, primitives, and MIDIPlugin

Enno Schwass
Hello

Whats the result of -->

SimpleMIDIPort midiIsSupported

> I have built squeak from a recent svn version, and in fact I have  
> MIDIPlugin in my /lib/squeak/3.9-10 directory.
>
> But how can I test it?
>
> I can't see any midi port from alsa when squeak is running.

BTW: Under linux you probably have to load the kernel module manually.

bye
Enno
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: modules, plugins, primitives, and MIDIPlugin

Cesare Marilungo
Enno Schwass wrote:

> Hello
>
> Whats the result of -->
>
> SimpleMIDIPort midiIsSupported
>
>> I have built squeak from a recent svn version, and in fact I have
>> MIDIPlugin in my /lib/squeak/3.9-10 directory.
>>
>> But how can I test it?
>>
>> I can't see any midi port from alsa when squeak is running.
>
> BTW: Under linux you probably have to load the kernel module manually.
>
> bye
> Enno
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>
SimpleMIDIPort midiIsSupported returns true.

As I wrote in the squeakaudio list, I succesfully got midi out working with:

SimpleMIDIPort openDefault

At least, I can see the out port from outside, but I haven't tested it yet.

MIDI input, instead,seems unsupported:

SimpleMIDIPort inputPortNumFromUser returns nil.

I regularly use MIDI applications on Linux. All modules are there for sure.

c.

--
http://www.cesaremarilungo.com

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners