Revised Examples + fixed WhiteNoise Bug

This commit is contained in:
wirsing
2014-07-10 18:59:37 -07:00
parent 57f9f3c7a5
commit 1a0620d23c
7 changed files with 56 additions and 18 deletions
@@ -36,13 +36,13 @@ void draw() {
soundfile.rate(map(mouseX, 0, width, 0.25, 4.0));
// Map mouseY from 0.2 to 1.0 for amplitude
soundfile.amp(map(mouseY, 0, width, 0.2, 1.0));
soundfile.amp(map(mouseY, 0, height, 0.2, 1.0));
// Map mouseY from -1.0 to 1.0 for left to right
soundfile.pan(map(mouseY, 0, width, -1.0, 1.0));
soundfile.pan(map(mouseY, 0, height, -1.0, 1.0));
// Map mouseY from 0.001 to 2.0 seconds for the delaytime
delay.time(map(mouseY, 0, width, 0.001, 2.0));
delay.time(map(mouseY, 0, height, 0.001, 2.0));
// Map mouseX from 0 to 0.8 for the delay feedback
delay.feedback(map(mouseX, 0, width, 0.0, 0.8));