repl

repl

access & interact norns’ REPLs (both maiden/matron & supercolider) from norns itself.

screenshot

this lil util can work both as a script or as a mod.

it’s kinda experimental, but right now i could see 2 use-cases:

  • debugging a launched script (when runing as a mod)
  • live coding music on the go w/ just a keyboard (flash crash has several examples of using norns’ lua as the entrypoint)

ideally it could be nice to add the possibility to edit files:

  • as a scratch buffer for trying out things (and live coding!)
  • to code & debug any script on-the-go (à la PICO-8)

Requirements

norns is enough to consult the REPL outputs but a keyboard is necessary to send commands.

the mod requires 221214.

Documentation

  • 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
  • Alt + directional arrows: scroll UP/DOWN/LEFT/RIGHT
  • standard Unix/Emacs bindings (Ctrl+A, Ctrl+E, Ctrl+W, Ctrl+K, Ctrl+Y, Ctrl+L) work

Acknowledments

inspired by PICO-8, flash crash, @infinitedigitsinternorns & dust2dust lib, @xmacexsetup

Download

in maiden:

;install https://github.com/p3r7/repl

24 Likes

It’s a synthesizer! It’s a microcomputer! It’s a server! What is it?!? Whatever it is, I love norns <3

8 Likes