mapping to mouse movement
in
Contributed Library Questions
•
2 years ago
Hi,
how would i go about mapping the gain of the filter to the mouseY movement. i have tried putting it in draw, but no dice..
- import krister.Ess.*;
- AudioChannel myChannel;
- Notch myNotch;
- Normalize myNormalize;
- void setup() {
- size(256,200);
- // start up Ess
- Ess.start(this);
- // load "cell.aif" into a new AudioChannel
- myChannel=new AudioChannel("basskick.wav");
- // myChannel.play(Ess.FOREVER);
- // apply a notch filter
- myNotch=new Notch(1000,-40,1);
- myNotch.filter(myChannel);
- // normalize
- myNormalize=new Normalize();
- myNormalize.filter(myChannel);
- // play
- myChannel.play();
- }
- void draw() {
- }
- // we are done, clean up Ess
- public void stop() {
- Ess.stop();
- super.stop();
- }
1