electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
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 
Live streaming at radio.electro-music.com

  host / artist show at your time

poster

Please visit the chat
 Forum index » Clavia Nord Modular » G2 Building Blocks
Chamberlin Multimode Filter
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [14 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1141
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Tue Aug 04, 2015 2:34 pm    Post subject: Chamberlin Multimode Filter
Subject description: Chamberlin filter topology
Reply with quote  Mark this post and the followings unread

Hi chaps,

Skimming through some old DSP papers, I came across this filter design which intrigued me in its simplicity, so I cooked it up on the G2 demo.

It tracks quite well and is amazingly stable -not perfect, but way better then any other G2 DIY filter circuit I've come across so far.

It will self-oscillate at max resonance if you ping it, and has a nice musical sound in my opinion.

Has a little demo step-sequencer thingie attached to it.

Just FWIW.

cheers,
t
UPDATE: I noticed that the resonance has to be negatively biased to completely remove the boost at a setting of zero. New version uploaded. (I threw gain compensation in there as well.)


ChamberlinFiltTK.pch2
 Description:
Chamberlin multimode filter topology (UPDATE: with reso biasing)

Download
 Filename:  ChamberlinFiltTK.pch2
 Filesize:  2.39 KB
 Downloaded:  533 Time(s)


Last edited by Tim Kleinert on Wed Aug 05, 2015 3:50 am; edited 2 times in total
Back to top
View user's profile Send private message
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1141
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Wed Aug 05, 2015 2:23 am    Post subject: Reply with quote  Mark this post and the followings unread

Addendum:

I liked the sound of this filter topology a lot, so I cooked up a 24dB multi-mode version out of two cascaded stages. I added resonance gain compensation to avoid clipping and reduced the resonance range just a smidgen to prevent (very subtle) stability issues in the uppermost cut-off range. So it won't self-oscillate anymore when pinged, but it surely still can howl. Twisted Evil

DSP usage of the filter-circuit:
8.6% cycles ( Shocked cheap! Cool )
17.2% memory

What can I say... me likey. I'm really fascinated and impressed how such a good digital filter (sound, stability, tracking, features) can be built so cheaply. Hal Chamberlin is the man! Hail the Master

UPDATE: I noticed that the resonance has to be negatively biased to completely remove the boost at a setting of zero. New version uploaded.


Chamberlin24dBTK.pch2
 Description:
Two cascaded Chamberlin topology 12dB filter stages for a 24dB multi-mode filter. (UPDATE: With reso biasing)

Download
 Filename:  Chamberlin24dBTK.pch2
 Filesize:  2.92 KB
 Downloaded:  517 Time(s)

Back to top
View user's profile Send private message
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1141
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Wed Aug 05, 2015 3:52 am    Post subject: Reply with quote  Mark this post and the followings unread

Addendum 2: (sorry... Laughing )

I noticed that the resonance has to be negatively biased to completely remove the boost at a setting of zero. New versions uploaded above.

And last but not least: Just discovered that these designs can take very hot signals and will overdrive quite gracefully. Sounds fantastic. Cool
Back to top
View user's profile Send private message
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 22318
Location: The Netherlands, Enschede
Audio files: 212
G2 patch files: 319

PostPosted: Wed Aug 05, 2015 4:31 am    Post subject: Reply with quote  Mark this post and the followings unread

Interesting!

Do you have a reference to the paper for me? I googled a bit of course ... but was not clear to me what to use ...

_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1141
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Wed Aug 05, 2015 4:49 am    Post subject: Reply with quote  Mark this post and the followings unread

Blue Hell wrote:
Interesting!

Do you have a reference to the paper for me? I googled a bit of course ... but was not clear to me what to use ...


It's treated extensively in the "Effect Design Part 1" by Jon Dattorro. The digital circuit is on page 676 below, Fig.18.

https://ccrma.stanford.edu/~dattorro/EffectDesignPart1.pdf

It's only two Z-1 additions (integrators), two subtractions (negative feedback loops) and three multiplications! Shocked Laughing

(You'll obviously need lin->expo conversion for the cut-off coefficient if you want it to track properly. On the G2 the LevelScaler module does this neatly.)

I think it's absolutely genius! Smile
Back to top
View user's profile Send private message
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1141
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Wed Aug 05, 2015 6:56 am    Post subject: Reply with quote  Mark this post and the followings unread

Another take on this subject:

I compared the 12dB circuit to the stock G2 multi-mode filter, and they can be tweaked to match up quite convincingly. Might well be that the G2 module is based on the same design.

However the filter cutoff frequency response (eg. when modulated with fast envelopes) is different, the DIY version somehow appearing to be more snappy and bonky. It also has obvious benefits like resonance modulation (the G2 module doesn't Confused ) and adjustable gain compensation -plus something else: Smile

When futzing around with the patch, I discovered that if you reduce the negative loop-back coming from the second integrator (the LP output), the filter goes into a nice sort of low-end drive, getting progressively more grungy in a "non-digital sounding" way. It however totally wretches the behavior of the entire circuit Twisted Evil : Resonance starts to drown out, the overall cut-off frequency response drops (which however makes it warmer-sounding as it gets grungier), and the different filter modes less pronounced. As unorthodox and probably "wrong" as it is, I think it's totally cool, so I implemented it in this version (which also has two more filter modes I totally forgot in the first version: notch and peak).

Also, the resonance bias and response coefficients have a tad more range (just before the whole thing gets ugly Laughing ).

cheers,
-t

Addendum: Cranking up the aforementioned "grunge" control and feeding the filter with a pure sine oscillator clearly shows a buildup of odd harmonic distortion. Sweeping up the sine oscillator (or any other) however doesn't result in any kind of aliasing within the filter. Seems as if those integrators keep everything in check. Cool

I like this feature so much that I optimized the gain compensation to deal with the interaction between resonance and "grunge" settings.

Therefore, new version uploaded.


ChambFiltGrungTK.pch2
 Description:
Chamberlin 12dB filter topology; all 5 filter modes, plus a totally unorthodox drive/grunge control.

Download
 Filename:  ChambFiltGrungTK.pch2
 Filesize:  2.89 KB
 Downloaded:  577 Time(s)


Last edited by Tim Kleinert on Wed Aug 05, 2015 8:26 am; edited 2 times in total
Back to top
View user's profile Send private message
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 22318
Location: The Netherlands, Enschede
Audio files: 212
G2 patch files: 319

PostPosted: Wed Aug 05, 2015 7:59 am    Post subject: Reply with quote  Mark this post and the followings unread

Tim Kleinert wrote:
It's treated extensively in the "Effect Design Part 1" by Jon Dattorro. The digital circuit is on page 676 below, Fig.18.


Thanks, got the printer working on that now :-)

_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1141
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Wed Aug 05, 2015 8:31 am    Post subject: Reply with quote  Mark this post and the followings unread

Blue Hell wrote:
Tim Kleinert wrote:
It's treated extensively in the "Effect Design Part 1" by Jon Dattorro. The digital circuit is on page 676 below, Fig.18.


Thanks, got the printer working on that now Smile

Those are all great papers, alternating the über-complex math stuff with simple diagrams even a halfwit like me Laughing can understand.
Back to top
View user's profile Send private message
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 22318
Location: The Netherlands, Enschede
Audio files: 212
G2 patch files: 319

PostPosted: Wed Aug 05, 2015 1:29 pm    Post subject: Reply with quote  Mark this post and the followings unread

There is some more nice stuff in it, yes, and parts II and III seem worthwhile too Smile

The filter seems to be an SVF .. but the implementation I had before uses three multiplications (for the basic filter function that is) and a bit of a different order ... also see http://www.musicdsp.org/showone.php?id=142 and http://www.musicdsp.org/archive.php?classid=3#92 - I currently use the latter. Anyway, that would explain the similarity to the Clavia multi-mode filter too.

There was another remark in the article ... about at high frequency settings the filter no longer working as a filter ... didn't the Clavia filter have this issue too?

Which brings me to : for an SVF to be stable Fc should be limited to about 1/6 * sample_rate .. ah .. ok .. the paper says pi/2 .. which would be 1/4 * sample_rate (or you over-sample, as in that 2nd link above) .. ah and best use not above pi/3 .. ok same thing.

Anyway .. was wondering if it could be useful as a per-grain filter in a granulator thingie .. for now I just made an implementation ... will evaluate it later.

Thanks Tim Smile

_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
varice



Joined: Dec 29, 2004
Posts: 902
Location: Northeastern shore of Toledo Bend
Audio files: 29
G2 patch files: 53

PostPosted: Wed Aug 05, 2015 4:54 pm    Post subject: Reply with quote  Mark this post and the followings unread

Blue Hell wrote:
...There was another remark in the article ... about at high frequency settings the filter no longer working as a filter ... didn't the Clavia filter have this issue too?...

Yes, the FltLP module has this problem. Tim first mentioned it in this topic:

http://www.electro-music.com/forum/topic-63843.html&postorder=asc

Tim Kleinert wrote:
...An interesting observation: In my original experimentation with IIR filters, I noticed that the stock G2 filters do nothing in the most upper frequency range settings. Shocked I mean, they simply stop working altogether, regardless of slope setting. Oh well.

_________________
varice
Back to top
View user's profile Send private message
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1141
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Wed Aug 05, 2015 5:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

varice wrote:

Yes, the FltLP module has this problem. Tim first mentioned it in this topic:

http://www.electro-music.com/forum/topic-63843.html&postorder=asc


Yes, but strangely the FltHP doesn't. I suspect it's just a scaling error.

Blue Hell wrote:
Thanks Tim Smile

You're very welcome. Those Dattorro papers are a goldmine.

I have to sheepishly admit that I didn't read all to deep into the mathematical descriptions as my math skills are quite limited. I just saw that simple circuit diagram and thought "Wait a minute, I can patch this in a breeze". And it worked right off the bat, which amazed me because very often these kind of things, uh, don't. Laughing
Back to top
View user's profile Send private message
redmar



Joined: Aug 06, 2012
Posts: 26
Location: Bologna, Italy
G2 patch files: 4

PostPosted: Tue Aug 25, 2015 3:43 am    Post subject: Reply with quote  Mark this post and the followings unread

Hi Tim,
this filter design sounds just great...also, the grunge control has a nice feel, I bet it sound even nicer in a mix. Just one thing, what's the purpose of the high logic signal from the clock active out to the cutoff mixer? Should I add the same amount of bias in a classic architecture synth patch?
As always, thanks for sharing your g2 skills with us..
Back to top
View user's profile Send private message
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1141
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Tue Aug 25, 2015 4:08 am    Post subject: Reply with quote  Mark this post and the followings unread

redmar wrote:
Just one thing, what's the purpose of the high logic signal from the clock active out to the cutoff mixer? Should I add the same amount of bias in a classic architecture synth patch?

I just used the clock active output as a freebie +64 constant in that little demo thingy in order to get things to sound as I wanted there -just quick'n'dirty patching. Smile It's of no relevance.

I built exponential tracking into the filter. It will respond in the usual fashion to modulations. Even the tuning isn't all that bad.
Back to top
View user's profile Send private message
redmar



Joined: Aug 06, 2012
Posts: 26
Location: Bologna, Italy
G2 patch files: 4

PostPosted: Tue Aug 25, 2015 6:35 am    Post subject: Reply with quote  Mark this post and the followings unread

Great...thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [14 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » Clavia Nord Modular » G2 Building Blocks
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
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


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