electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
LPF and HPF filters
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [5 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
moudi



Joined: Oct 07, 2006
Posts: 63
Location: Bern Switzerland

PostPosted: Mon Jan 08, 2007 4:58 pm    Post subject: LPF and HPF filters Reply with quote  Mark this post and the followings unread

hi folks
i'm back from a 4 week long holiday trip in greece. Smile
had a great time with a lot of chucking of course!

i came across of two different problems. this thread is dedicated for the first one, second one will follow in another thread Wink

i had the problem, that changing the Q of a filter with a joystick pad produce some ugly kind of noise (white noise or crackle?).
i made the following little testcase for reproducing it:
Code:

SinOsc s => LPF f => dac;
while(true)
{
   //set the gains very low.
   //so we can be sure nothing overdrives.
   s.gain(0.1);
   f.gain(0.1);
   s.freq(Std.rand2f(300,400));
   //with a high filter-frequency,
   //the behaviour appears more often.
   f.freq(12000);
   //if the Q is randomly changed every time,
   //a huge crackle (or white noise?) appears sometimes.
   f.Q(Std.rand2f(0.1,1));
   0.5::second => now;
}

can anybody confirm this behaviour, or is there a logical reason for this?
and... how can i avoid this?

regards
/moudi
Back to top
View user's profile Send private message Visit poster's website
kijjaz



Joined: Sep 20, 2004
Posts: 765
Location: bangkok, thailand
Audio files: 4

PostPosted: Tue Jan 09, 2007 4:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

i've just modified your patch..
so that instead of changing Q directly,
i smooth the Q value first (with another LPF)
and assign to f's Q..

it still create that same sound bursts.

i'm looking forward to hearing more about this also.

there is also another issue like this with these butterworth filters..
that has negative frequency.
it can create some kind of super-loud bursts also.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
ge



Joined: Aug 13, 2006
Posts: 108
Location: Palo Alto, CA

PostPosted: Fri Feb 02, 2007 10:23 pm    Post subject: Reply with quote  Mark this post and the followings unread

Sorry for the delay in answering this.

I think the short answer to this is that LPF/HPF/BPF/ResonZ are not meant to be used with small values of Q (<1) paired with high center or cutoff frequency. We'll need to reexamine the code and analyze the filter when things blow up.

Is there a particular reason why such a combination is desired?
Back to top
View user's profile Send private message Visit poster's website
moudi



Joined: Oct 07, 2006
Posts: 63
Location: Bern Switzerland

PostPosted: Mon Feb 05, 2007 4:35 pm    Post subject: Reply with quote  Mark this post and the followings unread

hi ge
ge wrote:
Is there a particular reason why such a combination is desired?

yes i think so. if you want that the filter takes no effect to the sound (like bypassing the sound).
for example i was used to configure a midi controller in a way, that if the knob is turned full on, the frequency of a lpf is that high, that no effect can be heard. so if you also want to control the resonance this way, it's possible that such combinations occurs.

in this specific case, i used the joystick of a gamepad to control the q.
in a neutral position of the joystick i got a 0 value for the q, and therefore this strange noises...

probably a workaround will be to just set the ugen to pass through Wink

regards
/moudi
Back to top
View user's profile Send private message Visit poster's website
ge



Joined: Aug 13, 2006
Posts: 108
Location: Palo Alto, CA

PostPosted: Wed Feb 07, 2007 10:26 am    Post subject: Reply with quote  Mark this post and the followings unread

Quote:
yes i think so. if you want that the filter takes no effect to the sound (like bypassing the sound).

This makes sense. However, the Q on LPF and HPF controls the resonance at the cutoff frequency, while not having as much effect on the rolloff in a global way (for LPF and HPF, it's still going to be around 12 dB/octave). For that reason, perhaps Q is possibly not the most clear name.

Quote:
probably a workaround will be to just set the ugen to pass through Wink

Or possibly crossfade with unfiltered version of the source?

Hope this helps.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [5 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use