Implementing a flanger in MATLAB

  • Context: MATLAB 
  • Thread starter Thread starter CE Trainee
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary
SUMMARY

The discussion focuses on creating a flanger effect in MATLAB, emphasizing the need for variable delay in the signal processing. The user has successfully generated a sinusoidal tone but struggles to achieve the desired flanging effect due to a fixed delay in the second signal. Key insights include the importance of varying the delay to produce audible differences, particularly around 500 Hz, and the necessity of understanding the flanger's operational principles. The user seeks advice and resources for further learning about audio manipulation in MATLAB.

PREREQUISITES
  • Basic understanding of MATLAB programming
  • Knowledge of digital signal processing concepts
  • Familiarity with audio signal manipulation techniques
  • Understanding of delay effects in audio processing
NEXT STEPS
  • Research variable delay implementation in MATLAB
  • Explore MATLAB's audio toolbox for built-in effects
  • Learn about the mathematical principles behind flanging
  • Investigate tutorials on audio signal processing in MATLAB
USEFUL FOR

Audio engineers, sound designers, and MATLAB users interested in creating custom audio effects and enhancing their understanding of digital signal processing.

CE Trainee
Messages
14
Reaction score
0
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"

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:
Physics news on Phys.org
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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 0 ·
Replies
0
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K