plugin that allows you to modify milliseconds from a second

Effects, Recipes, Interfacing with other software, etc.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
MatthewC1000
Posts: 4
Joined: Wed Jun 25, 2014 10:22 pm
Operating System: Please select

plugin that allows you to modify milliseconds from a second

Post by MatthewC1000 » Wed Jun 25, 2014 10:28 pm

plugin that allows you to modify milliseconds from a second example: add damage to 50-500 milliseconds every second. The damage can be anything.
Haven't seen any plugin like that.

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

Re: plugin that allows you to modify milliseconds from a sec

Post by steve » Wed Jun 25, 2014 11:38 pm

Run this code in the "Nyquist Prompt" effect to create a 50 ms burst of noise every 1 second:

Code: Select all

(setq damage-length 0.05)
(setq amount 0.5)
(setf damage (abs-env (sum (s-rest 1)(noise damage-length))))
(setq dtable (maketable damage))

(defun add-damage (sig)
  (sum sig (mult amount (hzosc 1 dtable))))

(multichan-expand #'add-damage s)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

MatthewC1000
Posts: 4
Joined: Wed Jun 25, 2014 10:22 pm
Operating System: Please select

Re: plugin that allows you to modify milliseconds from a sec

Post by MatthewC1000 » Thu Jun 26, 2014 1:07 am

whats the command for silence...

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

Re: plugin that allows you to modify milliseconds from a sec

Post by steve » Thu Jun 26, 2014 1:40 am

Try this:

Code: Select all

(setq damage-length 0.05)
(setf damage (abs-env (pwlv 0 damage-length 0 damage-length 1 1 1)))
(setq dtable (maketable damage))

(mult s (hzosc 1 dtable))
For more information about Nyquist scripts, see: http://wiki.audacityteam.org/wiki/Nyqui ... _Reference
For discussion about Nyquist programming and Nyquist plug-ins, we have a forum board here: http://forum.audacityteam.org/viewforum.php?f=39
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply