SuperCollider Forum
May 23, 2013, 12:14:18 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: The SuperCollider forum is currently experiencing a rash of spambot registrations. New user requests may not be approved quickly as a result -- and if your email address looks like spam, it might not be approved at all. We are working to improve the security of the registration process, and to provide alternate means to contact the administrators to get a new account. Thanks for your patience.
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: why the pop?  (Read 5068 times)
0 Members and 1 Guest are viewing this topic.
dockthepod
Newbie
*

Karma: 0
Posts: 13


View Profile
« on: June 04, 2006, 12:44:55 AM »

Why do I get a loud pop/click at end of this sound? 

Code:
SynthDef( \noise, {
var env = EnvGen.kr(Env.perc, timeScale: 0.5, doneAction: 2);
var noise = LPF.ar(WhiteNoise.ar, 10000 * env, 0.2) * env;
Out.ar(0, [noise, noise])
}).send(s);
Logged
daf
Jr. Member
**

Karma: 0
Posts: 57


View Profile
« Reply #1 on: June 04, 2006, 05:57:56 AM »

because the LPF cutoff is going all the way down to 0, which it doesn't like (pop)
add a slight offset like 0.1 to the cutoff and it should be fine.
Logged
dockthepod
Newbie
*

Karma: 0
Posts: 13


View Profile
« Reply #2 on: June 04, 2006, 11:17:15 AM »

thanks!  that was driving me nuts.
Logged
joshp
AdminGroup
Full Member
*

Karma: 5
Posts: 121



View Profile WWW
« Reply #3 on: June 04, 2006, 09:14:55 PM »

Also... you should envelope the output of the LPF. Filters are often made with digital delays, which means that even if you envelope the input, there may still be sound for a few more samples of output (especially if they have any sort of feedback), so always safer to envelope the output to make sure you zero it out before stopping it.

Josh
Logged
dockthepod
Newbie
*

Karma: 0
Posts: 13


View Profile
« Reply #4 on: June 05, 2006, 07:37:35 PM »

I am enveloping it, aren't I?
Logged
joshp
AdminGroup
Full Member
*

Karma: 5
Posts: 121



View Profile WWW
« Reply #5 on: June 05, 2006, 08:11:56 PM »

Sorry... didn't see the second * env...

Josh
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!