FIR filter EQ or low pass?

Discussion in 'Effects and the DSP' started by FoLLgoTT, Feb 28, 2005.

  1. FoLLgoTT

    FoLLgoTT New Member

    Joined:
    Feb 28, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    I searched for thi, but I couldn't find it. Is there a low pass realized with a FIR filter in kxproject? I'm asking, because I could couple my subwoofer without group delays to the main speakers.
     
  2. Tiger M

    Tiger M kX user

    Joined:
    Apr 14, 2004
    Messages:
    851
    Likes Received:
    0
    Trophy Points:
    0
    There is a lowpas, but it's not FIR, it's IIR.
     
  3. Soeren_B

    Soeren_B kX Project DSP Engineer

    Joined:
    Dec 12, 2002
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    0
    You can, however, quite easily build your own FIR filter using a series of macmv instructions - one for each tap. The z variables are the delay line and the coefficients are the 0xnnnnnnnn values. You can calculate them from a C++ control panel or design a static filter that has hardcoded coefficients (use on of the many FIR design tools available online).

    /Soeren


    i
    nput in;
    output out;
    static z1=0
    static zn=0 ; (define z statics to match the number (n) of sampledelays/taps)

    macs 0 , 0 , 0 , 0 ; this clears the accumulator before you start to add numbers to it ;-)
    macmv zn , z1 , zn , 0xnnnnnnnn ;Coefficient for delay number zn

    ;...<more macmv lines goes in here if you have more FIR taps>

    macmv z1 , in , z1 , 0xnnnnnnnn ;
    Coefficient for delay number z1
    macs out , accum , 0 , 0 ;Fetch the accumulator at send it to out
    end
     
  4. FoLLgoTT

    FoLLgoTT New Member

    Joined:
    Feb 28, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Thanks for the answers. Sadly I'm no programmer.:tears:
     

Share This Page

visited