mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Revised Examples + fixed WhiteNoise Bug
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user