#hosc-utils (sw-113)


utilities related to hosc and hosc-json. to build type:

$ cd hs; make prefix=~/opt all install

hosc-json-cat reads JSON representations of OSC packets from stdin, one per line, and forwards them in binary form to a UDP port (ie. scsynth).

$ echo '["/c_set",0,440]' | hosc-json-cat -h -p 57110

hosc-json-cgi reads a JSON OSC packet at the query parameter j and forwards over UDP.


hosc-json-console is a readline variant of hosc-json-cat, supporting history and line editing etc. It reads JSON OSC packets from stdin, one per line, and forwards them over UDP. (ie. scsynth).

hosc-json-nrt reads an SC3 non-realtime score, which is a sequence of length prefixed OSC bundles, and prints the JSON representation of each element to stdout.

$ hosc-json-nrt ~/uc/see-hearer-clearer/osc/shc-C.osc | less

hosc-json-ws is a websocket server that forwards incoming JSON OSC packets at a specified ws: port (-w) to a UDP port (-p). There are test sources (Chrome 11.0.696.57) at:

© rd, 2011–2013, gpl

haskell open sound control utilities
www-minus, html-minimalist, hsc3, hosc, hosc-json
darcs get http://rd.slavepianos.org/sw/hosc-utils [README,dir,log]
cabal install hosc-utils