1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

General 2-nd order filter structure

Discussion in 'Building With Reaktor' started by destination sirius, May 28, 2014.

  1. destination sirius

    destination sirius New Member

    Messages:
    8
    Hello,

    I'm trying to make a filter from scratch.
    The formula is:
    out(t)=a0*in(t)+a1*in(t-1)+a2*in(t-2)+b1*out(t-1)+b2*out(t-2)

    Something went wrong.
    I asked for help with the way I get a0, a1, a2, b1, b2 values on some scientific forum.

    The question is about Core structure in general. Is it ok?
    filter.png
    (calculations inside macros involve only f, r and SR values)
     
    Last edited: May 28, 2014
  2. salamanderanagram

    salamanderanagram NI Product Owner

    Messages:
    3,454
    looks fine at a glance... the merge module at the end seems pointless though?

    i have a bunch of tutorials on filter design on the website in my signature, one of them contains an ensemble for testing the frequency response of a filter, if you need something like that...
     
    • Like Like x 1
  3. destination sirius

    destination sirius New Member

    Messages:
    8
    Dude, such a massive stock of good tutorials! Thank you for sharing.

    There is a good dsp filter modeller online: http://www.micromodeler.com/dsp/
    I built 2-nd order filter there and it gave me the all the values and structure:
    filter.png
    The scheme look like mine one. Then I just copied values to my core structure...:
    filter2.png
    ...connected it to white noise source and got this:
    filter 3.png
    It's definitely not the LPF designed on first screenshot.
    Could anybody point out what is wrong?
     
  4. destination sirius

    destination sirius New Member

    Messages:
    8
    the ensemble is here
     

    Attached Files:

  5. salamanderanagram

    salamanderanagram NI Product Owner

    Messages:
    3,454
    hmm, maybe you are using your spectrum analyzer wrong? hooked it up to an EzFFT analyzer and got this frequency response:

    pic1.png

    btw those are some leet coefficients...
     
  6. destination sirius

    destination sirius New Member

    Messages:
    8
    Yes, my analyzer was set the wrong way. Sorry for troubling you.
    And huge thanks for filter tutorials on your site! Very good source of useful basic examples