shithub: rc

Download patch

ref: 7a5c054b933d121a42559bbc0080c9b354d5defc
parent: 47bd03ff202b601094b2d6cb333bd5e3e535944b
author: qwx <qwx@sciops.net>
date: Mon Apr 3 11:34:35 EDT 2023

fn: audio shortcuts, mini font

--- a/fn
+++ b/fn
@@ -7,6 +7,14 @@
 fn ppcm{ *=($*($#*) $* $#*) play -o /fd/1 $1 >[2]/dev/null | audio/pplay $*(2-$*($#*)) }
 # convert a wolf3d digital audio lump
 fn wpcm{ audio/pcmconv -i u8c1r7000 -o s16c2r44100 <$1 >/dev/audio }
+# indispensible
+fn W{ games/wadfs /sys/games/lib/doom/d2/doom2.wad }
+fn all2mp3{ for(i in `{walk -f | grep '\.wav$'}) 2mp3 <$i > `{echo $i | sed s/wav/mp3/} } 
+fn 2pcm{ play -o /fd/1 $* >[2]/dev/null }
+fn TD2{ audio/stretch -r 0.8909 -s }
+fn TD4{ audio/stretch -r 0.7937 -s }
+fn SU{ audio/stretch -r 1.1 }
+fn SD{ audio/stretch -r 0.9 }
 
 # play(1) auxiliaries
 # skip to next track
@@ -76,6 +84,7 @@
 #fn lnx{ linux -r $home/mroot /bin/bash -i }
 # vdir(1)
 fn ‡{ vdir $* }
+fn font{ echo -n /lib/font/bit/terminus/unicode.12m.font >/env/font }
 
 # rio
 # clear window