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

Oversampling Toolkit (Revisited)

DSP related issues, mathematics, processing and techniques

Re: Oversampling Toolkit (Revisited)

Postby MyCo » Sun Dec 21, 2014 8:42 pm

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.
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: Oversampling Toolkit (Revisited)

Postby adamszabo » Sun Dec 21, 2014 9:03 pm

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)

Postby MyCo » Sun Dec 21, 2014 9:35 pm

I'll make an update. It'll take a bit, because there are 24 modules to do it on :mrgreen:
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: Oversampling Toolkit (Revisited)

Postby MyCo » Mon Dec 22, 2014 1:29 am

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.
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: Oversampling Toolkit (Revisited)

Postby Tronic » Mon Dec 22, 2014 5:10 am

great work :)
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)

Postby MyCo » Mon Dec 22, 2014 10:19 am

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
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: Oversampling Toolkit (Revisited)

Postby martinvicanek » Mon Dec 22, 2014 11:43 am

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.
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: Oversampling Toolkit (Revisited)

Postby MyCo » Mon Dec 22, 2014 1:58 pm

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.
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: Oversampling Toolkit (Revisited)

Postby martinvicanek » Mon Dec 22, 2014 3:41 pm

Exactly!
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: Oversampling Toolkit (Revisited)

Postby Tronic » Mon Dec 22, 2014 5:08 pm

Ok here the Polyphase IIR filter coefficient calculator :twisted:

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

PreviousNext

Return to DSP

Who is online

Users browsing this forum: No registered users and 33 guests