Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Implementing a flanger in MATLAB

  1. Jun 15, 2010 #1
    Hello everyone,

    I've been experimenting in MATLAB, attempting to create a flanger type effect. I would assume that the flanger is already included in a toolbox but I would like to create one on my own for personal satisfaction. I've been reading up on flanger operation but I've had trouble recreating the effect. I know that the flanger takes the input signal and adds a delayed version of the same signal producing the output. The delay varies, creating the effect.

    I'm still pretty new to MATLAB and I finally was able to get my computer to produce a tone based on a sinusoid. My flanger still doesn't work though. I created two variables to hold the input signal and the delayed input signal. I added these two signals together and stored them in another variable. When I played the new signal, It just sounded like the original input signal with no audible differences. I realize that I delayed the second signal by a fixed but not varying amount. I still thought I would get some sort of echo effect. Here is a link that discusses the flanger for those not familiar: http://en.wikipedia.org/wiki/Flanging" [Broken]

    Can anyone offer any insight, advice or tips? Also, any links to info/tutorials on working with audio inside MATLAB would be appreciated.

    Also, atm I can't seem to find my code that I had used. I will post later if I can find it.

    Thanks for your time.
    Last edited by a moderator: May 4, 2017
  2. jcsd
  3. Jun 16, 2010 #2
    It won't sound like a flanger until the first few cacellation notches come down around 500 hz or so which means a couple milliseconds or more of delay between the signals.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook