p3r7 / repl

access norns' repl from a script
MIT License
2 stars 1 forks source link
monome monome-norns norns norns-script websocket

repl

screenshot

access norns' repls (both maiden and supercollider) either:

instructions

using a keyboard, one can type / edit at the prompt.

additionally:

implementation details

i couldn't make cqueue & COPAS-based websocket clients work reliably within a norns script (generally sending works but registering a callback to listen for messages tends to block everything).

i resorted to using the hackish approach to use a websocket <-> OSC gateway

@infinitedigits / @schollz' dust2dust is the major source of inspiration.

please note that compiling the golang executable is a bit too intensive for norns (it slows it down to a crawl). hence i recommend compiling from a more beefy computer using:

$ env GOOS=linux GOARCH=arm go build -o repl-ws-osc-gw