Discussion:
[haskell-art] hosc-0.14 help
Thom Jordan
2013-07-19 20:02:34 UTC
Permalink
Greetings All,

Would there be some basic example code of how to use hosc-0.14 ? I have
some old code that I wrote a few years ago which doesn't work anymore. It
uses a previous version of hosc (when we used to need to import
Sound.OpenSoundControl instead of Sound.OSC, etc..).

I've been trying to figure it out and to also find some example code online
but no luck so far. I would say that I'm an intermediate Haskell
programmer who's a little rusty, but understands a wide range of the
language and its possibilities.

Thanks,
Thom Jordan
Georgia Tech Center for Music Technology
Rohan Drape
2013-07-20 03:22:17 UTC
Permalink
There are two main changes in 0.14:

- the 'Datum' types were made a little more
disciplined, ie. Int32 instead of Int etc. There
are some additional functions to try and make the
type translations less painful.

- the 'File Descriptor' transport isn't exported by
default and instead there's a monadic transport
model

"Sound.OSC.FD" is more or less the old "Sound.OpenSoundControl"
Post by Thom Jordan
Would there be some basic example code of how to use hosc-0.14 ?
Perhaps see:

http://rd.slavepianos.org/sw/hsc3/Sound/SC3/Server/Transport/Monad.hs

for the 'Monad' interface, and:

http://rd.slavepianos.org/sw/midi-osc/help/midi-osc.help.hs

for the 'FD' interface, in that case managing multiple
sockets.

If there are any particular codes that don't seem to
translate let me know and I'll try to help out.

Best,
Rohan

Loading...