Anti-aliasing filters in audio

Discussion in 'Software' started by towerdefense, Aug 24, 2023.

  1. towerdefense

    towerdefense Guest

    Newfangled audio has added an "anti-aliasing" filter to Saturate, which, I quote "removes aliasing artifacts better than oversampling"

    However, they use oversampling in conjunction with the filter so testing it on its own seems to be impossible.

    The first thing I thought of when I saw this was airwindows' UnBox, which uses an averaging filter to essentially leave the high-frequencies undistorted, thus all-but eliminating aliasing.

    The method airwindows uses is very good. When distorting, high-end harmonics generally aren't very pleasant anyways, so you get a very nice "fat" sound of the midrange harmonics without any harshness, but afaik this also means that the high frequencies essentially aren't processed at all by the nonlinear algorithm. So, for example, a de-esser or exciter wouldn't be an applicable use for this tech.

    I'm not sure what method Newfangled uses, or if it's comparable to airwindows at all.

    Invigorate seems to also use anti-aliasing according to their manual, but also has oversampling so testing it out is very difficult. Having oversampling on "low" has a very noticeable, gentle lowpass that seems much softer than your average oversampling filter, but on "max" it looks standard to me.

    In image processing, anti-aliasing filters are extremely common nowadays, perhaps surpassing raw oversampling (or MSAA, which is selective oversampling on geometry edges), however in audio, oversampling is far more common.

    I'm curious as to any other examples of anti-aliasing "filters" or methods to avoid it that aren't just simply "not processing the high-end", which is what Newfangled audio has supposedly achieved.
     
    • Interesting Interesting x 2
    • List
  2.  
  3. ItsFine

    ItsFine Rock Star

    Joined:
    Apr 22, 2023
    Messages:
    584
    Likes Received:
    349
    • Agree Agree x 1
    • Interesting Interesting x 1
    • List
  4. towerdefense

    towerdefense Guest

    Oversampling almost always has a lowpass filter; I highly doubt by "anti-aliasing filter" they're referring to adding a lowpass filter.
    Newfangled Saturate already had oversampling before this, and unless someone can prove that there isn't a lowpass filter in previous versions with oversampling on then that all but confirms they aren't referring to the lowpass filter as the "anti-aliasing" filter.

    Moreover, the Newfangled website explicitly differentiates oversampling & "anti-aliasing"
     
  5. triggerflipper

    triggerflipper Audiosexual

    Joined:
    Jan 4, 2021
    Messages:
    1,350
    Likes Received:
    818
    Location:
    trump tower
    I may be wrong, but afaik you don't need to distort high frequencies to get harmonics in the upper range.
    You can get extreme aliasing above 15khz with just a sine wave at 20hz if you distort it enough.

    But I may be wrong.
    Or I may be working for an oversampling company.
    I guess we'll never know.
     
  6. Sinus Well

    Sinus Well Audiosexual

    Joined:
    Jul 24, 2019
    Messages:
    2,113
    Likes Received:
    1,624
    Location:
    Sanatorium
    I don't use this clipper, but if newfangled actually does bandlimiting without oversampling, then it must be a very (very!) steep filter. Keep in mind that the benefit of anti-aliasing does not come without a cost. You are just exchanging harmonic reflection at nyquist for filter distortion, which affects your impulse and phase response (ringing and smearing). The best antialiasing (in terms of audio integrity) is still working at a higher project sample rate.
     
    • Agree Agree x 3
    • Like Like x 1
    • List
  7. towerdefense

    towerdefense Guest

    The logic is that higher frequencies will alias more than lower ones, so you're eliminating most of the problem by leaving the highest frequencies untouched. That's generally how anti-aliasing filters work in image processing and in airwindows' case; working smarter not harder, but overall weaker in eliminating aliasing.
     
  8. triggerflipper

    triggerflipper Audiosexual

    Joined:
    Jan 4, 2021
    Messages:
    1,350
    Likes Received:
    818
    Location:
    trump tower
    Is this true? Or is it just that intermodulation is much more audible in high frequencies?

    I'm really asking, I haven't been able to keep this knowledge inside my head even though I watched Dan Worrall's videos a billion times.
     
  9. towerdefense

    towerdefense Guest

    Another plugin I forgot is Apulsoft's apShaper which uses "antiderivative antialiasing" as well as oversampling. Think this is the key!

    https://ccrma.stanford.edu/~jatin/Notebooks/adaa.html
    Alt link: https://scribe.rip/@jatinchowdhury1...for-antiderivative-anti-aliasing-d5847167f510

    [​IMG]
    This paper recommends using it in combination with oversampling, which is likely why you only see it in plugins as such. (I'm just gonna assume this is what newfangled audio uses)
    I haven't read the whole paper, just skimmed through to make sure this is right. Have no idea how they do it but the results seem good.
     
    • Interesting Interesting x 2
    • Like Like x 1
    • List
  10. Sinus Well

    Sinus Well Audiosexual

    Joined:
    Jul 24, 2019
    Messages:
    2,113
    Likes Received:
    1,624
    Location:
    Sanatorium
    What do you mean by "leaving the highest frequencies untouched"? At 48kHz sample rate, anything above 4kHz already produces aliasing with f6.

    Edit: Ahh... got it. Thanks!
     
    Last edited: Aug 24, 2023
  11. Stevie Dude

    Stevie Dude Audiosexual

    Joined:
    Dec 29, 2020
    Messages:
    2,449
    Likes Received:
    2,197
    Location:
    Near Nyquist
    this is what we need, not another saturation plugin
     
  12. Xupito

    Xupito Audiosexual

    Joined:
    Jan 21, 2012
    Messages:
    7,292
    Likes Received:
    4,028
    Location:
    Europe
    You beat me to it. I read this article a while ago. Left me with my brain melted but this guy, the famous Chowdurry DSP developer, is a damn genius.
     
    • Like Like x 2
    • Agree Agree x 1
    • List
  13. xorome

    xorome Audiosexual

    Joined:
    Sep 28, 2021
    Messages:
    1,176
    Likes Received:
    860
    It's important to note that this isn't a filter. Anti-aliasing doesn't make use of filters, unlike oversampling - where filtering at least once is required.

    ADAA has been around since 2015, but very companies have implemented it (Melda, Newfangled, Chowdhury DSP come to mind).
     
    • Like Like x 2
    • Agree Agree x 1
    • List
  14. No Avenger

    No Avenger Audiosexual

    Joined:
    Jul 19, 2017
    Messages:
    9,127
    Likes Received:
    6,367
    Location:
    Europe
    To the tech nerds here, isn't that how downsampling is applied?

    That's correct, but then you have to add a lot of harmonics and with high level (to make them audible) and they're all based on the low freq sound part, not the mid and high freqs and this produces a different result.

    Ditto. [​IMG]

    Does anyone know the reason for this?
     
  15. triggerflipper

    triggerflipper Audiosexual

    Joined:
    Jan 4, 2021
    Messages:
    1,350
    Likes Received:
    818
    Location:
    trump tower
    I'm not sure I get it. Do you mean that, say, if I saturate the hell out of a bass part that it adds tons of harmonics in higher freqs, and then I try to raise the loudness (in whichever way) of the original unsaturated high freqs, it will also raise the added harmonics, thus getting a completely different sound from, say, applying saturation to the overall signal?

    Sounds pretty basic and I feel dumb for even asking it lol.

    EDIT : Ah ok, I think I understand. Distorting high frequencies adds different harmonics than adding higher harmonics by distorting lower frequencies.

    Now I feel even dumber :trashing:
     
  16. ItsFine

    ItsFine Rock Star

    Joined:
    Apr 22, 2023
    Messages:
    584
    Likes Received:
    349
    Did you even READ the link i posted ?

    "Aliasing, once introduced, exists below Nyquist - the aliasing is reflections in to the audible spectrum. So it can't be removed by filtering, you have to prevent (reduce) it from existing in the first place."

    Read this sentence several times until you really understand it.

    That's why they oversample first AND filter oversampled signal.
    You can't filter aliasing afterward : it is already "folded" into audible Nyquist frequency, along the original signal.
    Nothing can filter it out now.
     
  17. xorome

    xorome Audiosexual

    Joined:
    Sep 28, 2021
    Messages:
    1,176
    Likes Received:
    860
    Yes, exactly. Importantly, most oversampling methods also use a lowpass in the upsampling stage. Not to actually filter out anything, but to generate interpolated samples.

    It's "difficult" if you don't know math. It's hard to overstate just how little original DSP code is used in plugin development - goes for most big name companies too. Everyone borrows from the same 30 year old code by R. B-Johnson, "The Art of VA Filter Design" by V. Zavalishin, or, more recently, the SVF filters that Andy Simper from Cytomic worked out.

    Even many of the modes in Valhalla Vintage Verb are lifted from various papers on reverb theory (some linked on Valhalla blog). That's fine though. The Valhalla DSP guy is super clever and has plenty original spins on reverbs.

    Ultimately, 93% of plugin developers are really just waiting for somebody else to serve them the math and code on a platter so they can spend more on advertising and GUIs :rofl:
     
    • Like Like x 1
    • Agree Agree x 1
    • List
  18. No Avenger

    No Avenger Audiosexual

    Joined:
    Jul 19, 2017
    Messages:
    9,127
    Likes Received:
    6,367
    Location:
    Europe
    :yes:
     
  19. No Avenger

    No Avenger Audiosexual

    Joined:
    Jul 19, 2017
    Messages:
    9,127
    Likes Received:
    6,367
    Location:
    Europe
    It'd be helpful if you could specify who exactly you're referring to. :winker:
     
  20. ItsFine

    ItsFine Rock Star

    Joined:
    Apr 22, 2023
    Messages:
    584
    Likes Received:
    349
    OP of course :wink:

    @towerdefense
    "Oversampling almost always has a lowpass filter;"

    NOT at all
    Oversampling consist in using an higher internal samplerate
    Nothing to do with filter

    Ok i'm out, i already lost too many time :like:
     
  21. Sinus Well

    Sinus Well Audiosexual

    Joined:
    Jul 24, 2019
    Messages:
    2,113
    Likes Received:
    1,624
    Location:
    Sanatorium
Loading...
Similar Threads - Anti aliasing filters Forum Date
Recreating Antimatter Sound how to make "that" sound Aug 4, 2024
Whispers of Desire: The Ultimate Romantic Seduction Soundtrack Education Jul 29, 2024
Antimalware Service Executable in windows 11 pro PC Apr 14, 2024
should antipsychotics be banned for their use on people with asperger? Lounge Feb 9, 2024
Antivirus problem with motu m4 Soundgear Dec 6, 2023
Loading...