shithub: neindaw

Download patch

ref: 320b41004afeb457ee608de41f5185819cce6d23
parent: 547b21bde31539b21453bfa7a9f8a13b345c7fc5
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Dec 31 07:44:30 EST 2019

increase kick drum's afreq and brelease maximum values; update example

--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@
 % echo 160 > K*/a/f*/ctl
 
 # pipe sound to /dev/audio in background, it should start kicking
-% while() { for(i in 16384 16384 32768) { audio/pcmconv -i f32c1r44100 -l $i < data } } > /dev/audio &
+% while() { for(i in 22050 22050 22050 44100 44100) { audio/pcmconv -i f32c1r44100 -l $i < data } } > /dev/audio &
 # the numbers ar how many bytes of the output should be read
 
 # gate = 1
--- a/kick_drum.dsp
+++ b/kick_drum.dsp
@@ -3,13 +3,13 @@
 declare group "synthesis";
 import("stdfaust.lib");
 
-aFreq = vslider("h:a/[0]frequency[unit:Hz]", 100, 10, 200, 5);
+aFreq = vslider("h:a/[0]frequency[unit:Hz]", 100, 10, 400, 5);
 aA = vslider("h:a/[1]attack[unit:s]", 0.001, 0.00001, 0.2, 0.001);
 aD = vslider("h:a/[2]delay[unit:s]", 0.01, 0.00001, 1.0, 0.001);
 aR = vslider("h:a/[3]release[unit:s]", 0.001, 0.00001, 1.0, 0.001);
 bA = vslider("h:b/[0]attack[unit:s]", 0.001, 0.00001, 0.2, 0.001);
 bFreq = checkbox("h:control/[1]b enable") * vslider("h:b/[1]frequency", 200, -400, 400, 5);
-bR = vslider("h:b/[2]release[unit:s]", 0.001, 0.00001, 0.2, 0.001);
+bR = vslider("h:b/[2]release[unit:s]", 0.001, 0.00001, 1, 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);