shithub: neindaw

Download patch

ref: 547b21bde31539b21453bfa7a9f8a13b345c7fc5
parent: b5ea5785224549583b12d912ae285dd11d32bff3
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Dec 31 07:25:59 EST 2019

make kick drum provide just one channel, better example

--- a/README.md
+++ b/README.md
@@ -29,7 +29,8 @@
 % echo 160 > K*/a/f*/ctl
 
 # pipe sound to /dev/audio in background, it should start kicking
-% while() { audio/pcmconv -i f32c2r44100 -l 65536 < data } > /dev/audio &
+% while() { for(i in 16384 16384 32768) { audio/pcmconv -i f32c1r44100 -l $i < data } } > /dev/audio &
+# the numbers ar how many bytes of the output should be read
 
 # gate = 1
 % echo 1 > K*/control/gate/ctl
--- a/kick_drum.dsp
+++ b/kick_drum.dsp
@@ -12,4 +12,4 @@
 bR = vslider("h:b/[2]release[unit:s]", 0.001, 0.00001, 0.2, 0.001);
 gate = button("h:control/[0]gate");
 
-process = os.hs_oscsin(aFreq + bFreq*en.ar(bA, bR, gate)) * en.adsr(aA, aD, 0.000001, aR, gate) <: _, _;
+process = os.hs_oscsin(aFreq + bFreq*en.ar(bA, bR, gate)) * en.adsr(aA, aD, 0.000001, aR, gate);