Silence 10 second audio at an interval

Using Nyquist scripts in Audacity.
Post and download new plug-ins.

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

Silence 10 second audio at an interval

Permanent link to this post Posted by picstruck » Wed Feb 28, 2018 5:32 am

I was wondering if it's possible to silence audio at set intervals.

For example:
I want to silence 10 seconds of audio every 10 seconds, so seconds 1-10 will be silenced, then 11-20 will remain normal, then 21-30 will be silenced and so forth.

I found this code http://forum.audacityteam.org/viewtopic.php?p=230362#p230362 that is sort of what I want except that the code doesn't silence the 10 seconds of audio, it just adds it in between.
picstruck
 
Posts: 2
Joined: Wed Feb 28, 2018 5:11 am
Operating System: Windows 10

Re: Silence 10 second audio at an interval

Permanent link to this post Posted by steve » Wed Feb 28, 2018 6:03 pm

I've moved this topic to the "Nyquist" forum board, as the task may easily be accomplished with a Nyquist script.
See here for how to apply a Nyquist script using the "Nyquist Prompt" effect: http://manual.audacityteam.org/man/nyquist_prompt.html

and here is the code:
Code: Select all
;version 4
(setf hz 0.05)
(let ((sq-wave (osc-pulse hz 0)))
  (mult 0.5 (sum 1 sq-wave) *track*))
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 47007
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Silence 10 second audio at an interval

Permanent link to this post Posted by Trebor » Wed Feb 28, 2018 8:50 pm

steve wrote:
Code: Select all
;version 4
(setf hz 0.05)
(let ((sq-wave (osc-pulse hz 0)))
  (mult 0.5 (sum 1 sq-wave) *track*))

For me that does not produce even intervals : the first one is half the duration of the rest ...

first interval is half.png
first interval is half.png (41.21 KiB) Viewed 537 times

The TremVib.ny plugin can do the job ...

TremVib plugin settings.png
TremVib plugin settings.png (10.77 KiB) Viewed 537 times
Trebor
 
Posts: 4480
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows Vista

Re: Silence 10 second audio at an interval

Permanent link to this post Posted by steve » Wed Feb 28, 2018 9:34 pm

Trebor wrote:For me that does not produce even intervals

Depends on whether the "intervals" are the sound or the gaps ;)
Changing the starting phase would add quite a bit of complexity to the code, but you could easily set your audio selection to start at 5.0 seconds.

Yes, TremVib.ny will also do it.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 47007
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Silence 10 second audio at an interval

Permanent link to this post Posted by picstruck » Thu Mar 01, 2018 1:33 am

Thank you very much, both the Nyquist code and the Tremolo/Vibrato plugin did exactly what I wanted to do. :D
picstruck
 
Posts: 2
Joined: Wed Feb 28, 2018 5:11 am
Operating System: Windows 10


Return to Nyquist



Who is online

Users browsing this forum: No registered users and 2 guests