Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SSS148 on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sound clip modulation

Status
Not open for further replies.

JonnyMcK

Electrical
Jul 11, 2005
12
Hello everyone,

I want to modulate a sample of audio with a square wave in Matlab. Any tips on how I could go about it?

Thanks
 
Replies continue below

Recommended for you

I'd like to help, but I'm not sure I understand your question. Are you trying to use a square wave as your carrier? If so, how would you like to modulate it: amplitude or frequency (or other)?
 
I'd either like to frequency modulate it, or simply add the two signals together in a way that I can plot the result and record it to a .wav file.

The main difficulty I'm having is reading the audio in a way that I can perform a simple addition of the two signals.
 
Maybe I'm missing something here, but it sounds like you just need to wavread() the file, add your (suitably scaled) square wave to it and then wavwrite() it back out again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor