shithub: leaf

Download patch

ref: a13347033a4fb16b68b4291587640855746e7412
parent: 3857bca195cc72156c8fa7c64dda78299b8f8054
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Mar 7 07:53:29 EST 2023

no need to be so quiet

--- a/leaf/plan9_example.c
+++ b/leaf/plan9_example.c
@@ -1,3 +1,4 @@
+/* mk && ./plan9_example | audio/pcmconv -i f32c2r44100 > /dev/audio */
 #include "leaf.h"
 #include <bio.h>
 
@@ -31,9 +32,7 @@
 		float f[2];
 		tCycle_setFreq(&cycle2, 3 + 2*tCycle_tick(&cycle3));
 		tCycle_setFreq(&cycle, 800 + 400*tCycle_tick(&cycle2));
-		tDattorroReverb_tickStereo(&reverb, tCycle_tick(&cycle)/10.0f, f);
-		f[0] /= 2.0f;
-		f[1] /= 2.0f;
+		tDattorroReverb_tickStereo(&reverb, tCycle_tick(&cycle), f);
 		Bwrite(&out, f, sizeof(f));
 	}