Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

How do some plugins contain so many filters?

For general discussion related FlowStone

How do some plugins contain so many filters?

Postby guyman » Wed Aug 21, 2019 5:50 pm

I've been implementing ZDF filters into a lot of my recent creations, and have many more ideas I'll soon flesh out. I've seen many plugins on the market (waves, fabfilter etc...) contain MANY FILTERS (30+) running simultaneously with NUMEROUS slope values (duplicates in chain??2x, 3x, 6x amount of filters??!) and I've seen some schematics here on the forum that utilize A LOT of filters (spogg, martin) and even after poking around I can't figure out how it is everyone but me is able to keep CPU down to nil in a schematic/vst whilst having it contain so many filters/filter chains....

Also when I start getting into guis, I find my self running 2 chains, one in mono/pack for my filters, another in poly for an impulse response for my visualizer/graph.... is this wrong? how can I max out my level of filters? should I be coding them all at once? should the redundant slope chains be done in code instead of a chain? I think I could use infinite amounts given the chance....

Any advice would be appreciated.
User avatar
guyman
 
Posts: 207
Joined: Fri Mar 02, 2018 8:27 pm

Re: How do some plugins contain so many filters?

Postby martinvicanek » Thu Aug 22, 2019 4:05 am

There are a few things you can do to cut down CPU load:
1. Updating filter parameters usually does not have to be done every sample. Use hop(16) for modulation and consider green or Ruby for static filter parameters.
2. Avoid using buit-in stream functions like pow(), sin() etc. Use these instead.
3. Pack the signal to mono4 where possible.
4. If you are willing to enter the world of assembly, optimize your code.
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: How do some plugins contain so many filters?

Postby guyman » Fri Aug 23, 2019 6:17 am

Thanks Martin.
This hop (16) thing is over my head.
User avatar
guyman
 
Posts: 207
Joined: Fri Mar 02, 2018 8:27 pm

Re: How do some plugins contain so many filters?

Postby martinvicanek » Sat Aug 24, 2019 2:20 am

guyman wrote:Thanks Martin.
This hop (16) thing is over my head.

It is simpler than what you probably think. A code like this
Code: Select all
hop(16){
// update filter parameters
}

// compute next sample

would process each sample, however the filter parameters would only be updated every 16 samples. Check the manual.
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: How do some plugins contain so many filters?

Postby guyman » Tue Aug 27, 2019 5:07 pm

ok Martin, will do.

Thanks !
User avatar
guyman
 
Posts: 207
Joined: Fri Mar 02, 2018 8:27 pm


Return to General

Who is online

Users browsing this forum: No registered users and 58 guests