We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Ess filters (Read 1064 times)
Ess filters
Jan 3rd, 2007, 1:05am
 
I've been trying to figure out why filtering an AudioStream and putting the result into a looping AudioChannel was creating clicks in the filtered audio. I would seem that when the filter is applied to a chunk of samples the signal is faded in. Is this something that was written into the filter class or is it inherent to digital filters?
Re: Ess filters
Reply #1 - Jan 18th, 2007, 9:11pm
 
I would need to see a more specific example to try and figure out what is going on. K
Re: Ess filters
Reply #2 - Jan 28th, 2007, 9:42am
 
I was trying someting similar. The idea was to make a filter that reacts on the movement of the mouse.

But try it out and the sound starts to click and then a distorted sound...

The sample is a very small loop of 0.7s, 44kHz, stereo.

Cheers,

Michiel


import krister.Ess.*;

AudioChannel myChannel;
HighPass myHighPass;

void setup() {
 size(256,200);
 rectMode(CENTER);
 noStroke();
 fill(256,256,256,200);

 Ess.start(this);

 myChannel=new AudioChannel("../cut.wav");
 myChannel.play(Ess.FOREVER);
}

void draw() {
 background(70,70,70);
 rect(mouseX,mouseY,10,10);
}

void mouseMoved(){
 myHighPass=new HighPass(mouseX,-20,19);
 myHighPass.filter(myChannel);
}

public void stop() {
 Ess.stop();
 super.stop();
}
Page Index Toggle Pages: 1