Modulate sine tones.

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
GlenLivet21
Posts: 6
Joined: Mon Sep 26, 2016 6:27 pm
Operating System: Windows 7

Tone and multi tone with am and fm modulation.

Post by GlenLivet21 » Mon Sep 26, 2016 6:34 pm

Is it easily possible to generate a sine tone and then apply am and fm modulation to it? Lets say I want a 500 hz tone that vibrates between 450 and 550 hz with 5 hz fm and am. How would I go about in audacity to do this? One hour googling gave no answer.

GlenLivet21
Posts: 6
Joined: Mon Sep 26, 2016 6:27 pm
Operating System: Windows 7

Modulate sine tones.

Post by GlenLivet21 » Mon Sep 26, 2016 6:37 pm

How to fm and am modulate a sine tone?

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Modulate sine tones.

Post by steve » Mon Sep 26, 2016 6:40 pm

Modulation takes two signals. Are you wanting to modulate two sine tones, or one sine tone with some other signal?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Modulate sine tones.

Post by steve » Mon Sep 26, 2016 6:47 pm

Topics merged.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

GlenLivet21
Posts: 6
Joined: Mon Sep 26, 2016 6:27 pm
Operating System: Windows 7

Re: Modulate sine tones.

Post by GlenLivet21 » Mon Sep 26, 2016 6:55 pm

steve wrote:Modulation takes two signals. Are you wanting to modulate two sine tones, or one sine tone with some other signal?
I want to modulate one sine with another sine. Both am and fm.

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Modulate sine tones.

Post by steve » Mon Sep 26, 2016 6:55 pm

Amplitude modulation is easy. You just "multiply" the two tones. You can do this using the Nyquist Prompt effect (http://manual.audacityteam.org/man/nyquist_prompt.html).

To amplitude modulate any selected audio with, say a 5 Hz sine tone, use this code:

Code: Select all

(mult *track* (hzosc 5))
For frequency modulation, it is easiest to generate both the carrier and the message. For example:
"I want a 500 hz tone that vibrates between 450 and 550 hz with 5 hz"

Code: Select all

(hzosc (sum 500 (mult 50 (hzosc 5))))
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Modulate sine tones.

Post by steve » Mon Sep 26, 2016 6:56 pm

For AM, generating both the carrier and the message:

Code: Select all

(mult (hzosc 500)(hzosc 5))
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Modulate sine tones.

Post by steve » Mon Sep 26, 2016 6:59 pm

A slightly different (a bit more complex, but more "normal") version for AM:

Code: Select all

(mult (hzosc 500) 0.5 (sum 1 (hzosc 5)))
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply