(file under stupid repl tricks)
i’m guessing that by now many of you have discovered the repl at the bottom of the maiden window.
but did you know you can use it to access and control the engine (and other cool stuff)?
for example, type:
engine.list_commands()
to see the commands supported by your script’s engine. for example, for “TestSine”:
--- engine commands ---
amp (f)
hz (f)
from there you can, if like “TestSine” your engine supports it, lower the volume like so:
engine.amp(0.05)
alternatively you can mess with output volume via norns itself. for example, type this
norns.audio.output_level(-100)
and audio goes quiet.
it’s also great way to quickly play with drawing on the screen.
screen.clear()
<ok>
screen.update()
<ok>
screen.move(64, 40)
<ok>
screen.text("hi")
<ok>
screen.update()
<ok>
and you can even execute commands in the os!
util.os_capture("df -hl | grep '/dev/root' | awk '{print $4}'")
good times!
