shithub: neindaw

Download patch

ref: a68874bd0c571dfff06ee6ee3d9b2c5d8c283008
parent: 84b8c6bb8409ba6d693f0080af2e2eaccfa3a718
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Dec 30 08:40:36 EST 2019

readme: a more interesting example

--- a/README.md
+++ b/README.md
@@ -27,17 +27,16 @@
 # raise frequency to 160Hz
 % echo 160 > K*/a/f*/ctl
 
-# toggle the gate, we need to compute once in between for it to actually be processed
-# then listen to the sound
-% echo 0 > 'Kick Drum/control/gate/ctl' && \
-	dd -if data -of /dev/null -count 1 -quiet 1 && \
-	echo 1 > 'Kick Drum/control/gate/ctl' && \
-	audio/pcmconv -i f32c2r44100 -l 128000 < data > /dev/audio
+# pipe sound to /dev/audio in background
+% audio/pcmconv -i f32c2r44100 < data > /dev/audio &
 
-# increase the delay of A oscillator
-% echo 0.2 > 'Kick Drum/a/delay/ctl'
+# start toggling the gate to get the kicks
+% while() { echo 1 > K*/control/gate/ctl && sleep 0.2 && echo 0 > K*/control/gate/ctl } &
 
-# now you can repeat the listen command to hear the difference
+# set B oscillator parameters and enable it
+% echo 600 > K*/b/frequency/ctl
+% echo 0.001 > K*/b/attack/ctl
+% echo 1 > K*/control/b*/ctl
 ```
 
 ## Description