Forum Rule: Always post complete source code & details to reproduce any issue!
Page 2 of 2 FirstFirst 1 2
Results 26 to 32 of 32

Thread: FIR filter with Teensy 4 + audio adapter

  1. #26
    Senior Member
    Join Date
    May 2015
    Location
    USA
    Posts
    1,094
    Here is the code, provided without any support - it will require changes. Your correction impulse response needs to be converted to a C array of floats.
    Attached Files Attached Files

  2. #27
    Thank you!

  3. #28
    Senior Member
    Join Date
    May 2019
    Posts
    133
    Thanks for sharing that. Will go through that code with great interest..

  4. #29
    Hi Jonr,

    Just got around to finally sorting out the code, everything is fine apart from the fact it is missing, or can't find biquad.c, any ideas? Perhaps it's something that wasn't usually in the libraries?
    Yet again, thank you for providing this!

  5. #30
    Senior Member
    Join Date
    May 2015
    Location
    USA
    Posts
    1,094
    I'd just remove the biquad calls (you don't need filters on top of a convolution filter), but here it is anyway:

    biquad.c
    biquad.h

  6. #31
    Ah, thank you, I thought it needed the biquads for the convolution. Cheers!

  7. #32
    Hi again Jonr,

    I have disabled everything usb-audio and biquad related as well as changing the audio input and output to i2s types, however I am still getting errors and can't for the life of me figure out where they are coming from. I know you have helped me so much already, so I feel bad asking for further help, but I can't find the solution myself. I was hoping that maybe you could look over my code, maybe I commented something I shouldn't have, or I missed something that I should have commented out and haven't. Not sure I'm able to put in attachments so I did a google drive link https://drive.google.com/drive/folde...c3?usp=sharing if you are ok with giving it a look over of course.

    Many thanks,
    Elliott Dyson

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •