[ANN] OSC for Squeak
Markus Gaelli
gaelli at emergent.de
Tue Mar 29 20:41:49 UTC 2005
Hi folks,
besides the client I also implemented now most of the server
functionality for OSC in Squeak, a fancy and free Smalltalk Environment
with lots of cool people and developments, definitely interesting also
for you arty guys on osc-dev.
Check out for example http://www.opencroquet.org
1.) Doc
This version is for Smalltalk-Developers. If I come around I like to
create an EToyish Interface (see: http://www.squeakland.org) for it.
For now you have to fire up a squeak image, then open SqueakMap Package
Loader -> OSC, then program Smalltalk...
1.)a OSC-Client:
(OSCMessage for: {'/foo' . 1000 . -1 . 'hello' . 1.234 . 5.678})
sendTo: '10.0.1.2' port: 5017
1.) b OSC-Server:
(OSCServer listenOnPort: yourPort) inspect
Have a look in the messageQueue of the server, you can get the next
message from there via nextOrNil (it is a SharedQueue)
See also the tests.
2.) Limitations:
- Blobs are not passed yet, also no support for bundles yet.
- One test is not running due to bizarre floating point arithmetic:
#('/foo' 1000 -1 'hello' 1.233999967575073 5.67799997329712) is
certainly not #('/foo' 1000 -1 'hello' 1.234 5.678)
Hope nobody needs too precise floats...
Cheers,
Markus
More information about the Squeak-dev
mailing list
|