MATLAB: More than one frequencies

audiovibrato

I am trying to understand how multiple tone-frequencies work. I'd like to find the boundary where it still sounds like two tones and where it sounds like only one tone.
I'm trying to understand how I set a constant frequency to each of the sounds.
I'd like them to play atleast one minute, to hear how close are they to sound like one tone.

Best Answer

Multiply the two tones (modulate the 440 Hz with the 400 Hz) to get the ‘beat’ effect you want:
sound(s, Fs) % Produce Tone As Sound1
pause(1.5)
sound(s1, Fs) % Produce Tone As Sound2
pause(1.5)
sound(s.*s1, Fs) % Modulate To Produce Desired ‘Beat’ Effect
.