shithub: neindaw

ref: 79bf1a7b1c60aa3efc5c6fad853294eba8c88d2f
dir: /contrib/o/

View raw version
#!/bin/rc
rfork en
font = /lib/font/bit/vga/unicode.font
if(~ $#* 0) instr = (kick_drum piano ay)
if not instr = $*
for(i in $instr){
	daw/$i -m /n/$i || exit badarg
	cat /n/$i/clone >/dev/null
}

>/tmp/orcastart cat <<'...'
#!/bin/rc
echo resize -minx 96 > /dev/wctl
label orca
d = `{syscall -o read 0 buf 48 </dev/wctl >[2]/dev/null}
d = `{echo $d(3) $d(1) -8-p2/2+p4-p | dc}
window -r $d(3) 0 $d(1) 9000 'echo daw/cfg /n/$instr; daw/cfg /n/$instr; rc'
window -r 0 0 $d(2) 9000 'echo ''orca -p -u /fd/3 |[3] daw/piper'' /n/$instr
	orca -p -u /fd/3 |[3] daw/piper /n/$instr; rc'
...
chmod +x /tmp/orcastart

window -cd $home/orca -r 0 0 9000 9000 -m rio -i /tmp/orcastart