How to mix (add) "white noise" to the track.

Help for Audacity 2.x.x on Windows.
Forum rules
ImageThis forum is for Audacity 2.x.x 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
юра00
Posts: 324
Joined: Mon Jan 21, 2013 11:26 am
Operating System: Windows 10

How to mix (add) "white noise" to the track.

Post by юра00 » Sat Jul 14, 2018 5:52 am

Dear specialists! Tell me how to mix "white noise" to the track. You can, of course, create a "white noise", export it to a file, then import 2 tracks (the music file itself and white noise) and merge the tracks. But I would like to add white noise to the track directly after importing the music file, right in the editor, without exporting anything. Thank you!
Attachments
Capture.PNG
Capture.PNG (23.61 KiB) Viewed 204 times

юра00
Posts: 324
Joined: Mon Jan 21, 2013 11:26 am
Operating System: Windows 10

Re: How to mix (add) "white noise" to the track.

Post by юра00 » Sat Jul 14, 2018 5:56 am

Certainly, duration of white noise (not necessary) must be better equal to duration of the track.

юра00
Posts: 324
Joined: Mon Jan 21, 2013 11:26 am
Operating System: Windows 10

Re: How to mix (add) "white noise" to the track.

Post by юра00 » Sat Jul 14, 2018 9:19 am

Mr. Trebor, I don't see your reply. You've deleted it?

waxcylinder
Forum Staff
Posts: 9565
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10
Location: Manchester, UK

Re: How to mix (add) "white noise" to the track.

Post by waxcylinder » Sat Jul 14, 2018 10:07 am

1) Import your music track
2) Tracks>Add New ... (stereo or mono as appropriate)
3) Generate Noise
4) Mix&Render (permanent change) - or just Export (temporarily mixed for export)

After step 2 the new track should be "focused" - not the yellow border
and it step 3 the noise generated should be the length of the audio imported in step 1 (it did when I tested on 2.2.0 just now).

WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * * Audacity Wiki * * * * *

юра00
Posts: 324
Joined: Mon Jan 21, 2013 11:26 am
Operating System: Windows 10

Re: How to mix (add) "white noise" to the track.

Post by юра00 » Sat Jul 14, 2018 11:23 am

More or less clear. In my opinion, enough steps 1-3. True, noise is only 30 seconds, but usually more is not necessary, on the contrary, it takes 10-15 seconds, thank you!
Attachments
Capture.PNG
Capture.PNG (223.67 KiB) Viewed 176 times

Trebor
Posts: 4593
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows Vista

Re: How to mix (add) "white noise" to the track.

Post by Trebor » Sat Jul 14, 2018 9:37 pm

юра00 wrote:
Sat Jul 14, 2018 9:19 am
Mr. Trebor, I don't see your reply. You've deleted it?
This code works on mono* tracks if you paste it into nyquist prompt

Code: Select all

(sum (mult 0.1 (noise)) *track*)
0.1 is the volume of the noise, adjust to taste.
( * I don't know the code to make it work on stereo tracks)

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

Re: How to mix (add) "white noise" to the track.

Post by steve » Sun Jul 15, 2018 12:15 am

Trebor wrote:
Sat Jul 14, 2018 9:37 pm
( * I don't know the code to make it work on stereo tracks)
You need to create 2 channel noise. For example:

Code: Select all

(setf noise (mult 0.1 (noise)))
(sum *track* (vector noise noise))
Note that in this example the noise is actually mono, but we have duplicated it in a vector (an array).

If we want true stereo noise (noise in left channel is different to the noise in the right channel), then we could do it as:

Code: Select all

(setf stereo-noise
    (vector (mult 0.1 (noise))
            (mult 0.1 (noise))))

(sum *track* stereo-noise)
If we want code that can handle either mono or stereo, we could use a conditional statement and test if *track* is an array,

Code: Select all

(if (arrayp *track*)
    (sum *track*
         (mult 0.1 (vector (noise)(noise))))
    (sum *track* (mult 0.1 (noise))))
or (and I prefer this method even though it looks a little cryptic):

Code: Select all

(defun addnoise (sig amount)
  (sum sig (mult (noise) amount)))

(multichan-expand #'addnoise *track* 0.1)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

юра00
Posts: 324
Joined: Mon Jan 21, 2013 11:26 am
Operating System: Windows 10

Re: How to mix (add) "white noise" to the track.

Post by юра00 » Fri Aug 17, 2018 6:53 am

Dear waxcylinder, you have said it a little bit. It turns out that we must select the whole track before adding noise (steps 2-4). Then the length of the noise will be equal to the length of the track.

waxcylinder
Forum Staff
Posts: 9565
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10
Location: Manchester, UK

Re: How to mix (add) "white noise" to the track.

Post by waxcylinder » Fri Aug 17, 2018 2:43 pm

Oops yes, sorry that was sloppy of me :oops:

WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * * Audacity Wiki * * * * *

Post Reply