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
Oversampling Toolkit (Revisited)
28 posts
• Page 2 of 3 • 1, 2, 3
Re: Oversampling Toolkit (Revisited)
Jesus... how couldn't I see that. It would definetely make a difference on higher order version. On the Order 12 version it would save 12 multiplication each for up/downsampling.
-
MyCo - Posts: 718
- Joined: Tue Jul 13, 2010 12:33 pm
- Location: Germany
Re: Oversampling Toolkit (Revisited)
can you guys show what you mean with this optimization? how does the "order 2" look like now?
- adamszabo
- Posts: 667
- Joined: Sun Jul 11, 2010 7:21 am
Re: Oversampling Toolkit (Revisited)
I'll make an update. It'll take a bit, because there are 24 modules to do it on
-
MyCo - Posts: 718
- Joined: Tue Jul 13, 2010 12:33 pm
- Location: Germany
Re: Oversampling Toolkit (Revisited)
OK, I've updated the download in the first post with the changes Martin suggested. In the Order 10 Version it saves about 30 cycles according to the analyzer. That's pretty huge! On the decimator test it makes a difference of 0.2% according to FlowStones status bar.
-
MyCo - Posts: 718
- Joined: Tue Jul 13, 2010 12:33 pm
- Location: Germany
Re: Oversampling Toolkit (Revisited)
great work
one question, how you have calculated the coefficient for this HBAP ?
one question, how you have calculated the coefficient for this HBAP ?
- Tronic
- Posts: 539
- Joined: Wed Dec 21, 2011 12:59 pm
Re: Oversampling Toolkit (Revisited)
They are from this file:
http://musicdsp.org/files/BandLimit.cpp
Not sure how those coeffs were generated, may be that guy built them as lowpass first and splitted them later into allpasses. I've done the inverse of that, by just merging the paralleled allpasses together, as a first try.
They phase rotate 180° at fs/4 but each with different slope. That's all that I found out.
I used my filter construction kit, to get the cascaded filter coeffs from the biquads.
viewtopic.php?f=3&t=1234
http://musicdsp.org/files/BandLimit.cpp
Not sure how those coeffs were generated, may be that guy built them as lowpass first and splitted them later into allpasses. I've done the inverse of that, by just merging the paralleled allpasses together, as a first try.
They phase rotate 180° at fs/4 but each with different slope. That's all that I found out.
I used my filter construction kit, to get the cascaded filter coeffs from the biquads.
viewtopic.php?f=3&t=1234
-
MyCo - Posts: 718
- Joined: Tue Jul 13, 2010 12:33 pm
- Location: Germany
Re: Oversampling Toolkit (Revisited)
I think the theory is very well outlined in Tapio Saramäki's lecture notes, especially pages 12 and 28. You would use Matlab to get the coefficients.
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Oversampling Toolkit (Revisited)
yeah, but the art is: Choose the filter coeffs so that the upper half band ripples are as low as possible. Designing 2 Allpass in a Lowpass arrangment isn't a big deal. Designing 12 Lowpasses so that 1 half band is nearly unaffected and the other half gets as much reduced as possible, that's the difficult part.
-
MyCo - Posts: 718
- Joined: Tue Jul 13, 2010 12:33 pm
- Location: Germany
Re: Oversampling Toolkit (Revisited)
Exactly!
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Oversampling Toolkit (Revisited)
Ok here the Polyphase IIR filter coefficient calculator
- Code: Select all
# Ruby port of http://ldesoras.free.fr/prod.html#src_hiir
# Troniclabs - 2014 #
# removed
Last edited by Tronic on Thu Nov 15, 2018 6:50 am, edited 1 time in total.
- Tronic
- Posts: 539
- Joined: Wed Dec 21, 2011 12:59 pm
28 posts
• Page 2 of 3 • 1, 2, 3
Who is online
Users browsing this forum: No registered users and 6 guests