Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Jul 11, 2005
Messages
12
Location
NL
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
 
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

Back
Top