Skip to content

p3r7/repl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

repl

screenshot

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

  • as a script
  • at any time when another script is launched (repl mod)

instructions

  • E3: switch between the 2 REPLs
  • E2: scroll UP/DOWN
  • K1 + E2: scroll LEFT/RIGHT

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

additionally:

  • Enter: submit prompt to current REPL
  • directional arrows , : browse input history
  • Alt + directional arrows: scroll UP/DOWN/LEFT/RIGHT
  • standard Unix/Emacs bindings (Ctrl+P, Ctrl-N, Ctrl+A, Ctrl+E, Ctrl+W, Ctrl+K, Ctrl+Y, Ctrl+L) work

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

Releases

No releases published

Packages

No packages published