Remote REPL session for Norns Maiden.
npm install -g marden-remote-repl
-
maiden-remote-repl
starts the remote repl, user input is sent to Norns, and messages are sent back to the CLI -
maiden-remote-repl send [msg]
sendsmsg
as a one-off, useful for reloading script:'maiden-remote-repl send "norns.script.load("code/APP/APP.lua")'
- you can specify the norns url with
--host
, for example:maiden-remote-repl --host fates.local
You can combine maiden-remote-repl send
with nodemon
and rsync
to get live-reload experience:
- create
dev-sync.sh
(assuming you're working onAPP.lua
):rsync -azP . --exclude .git --delete we@norns.local:/home/we/dust/code/APP maiden-remote-repl send 'norns.script.load("code/APP/APP.lua")'
- start file watching session, for example:
nodemon -e lua -x ./dev-sync.sh
Now, on every file change to lua the code is sent to Norns, and the script is restarted.