VST Effects 8192 samples delay

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.
steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: VST Effects 8192 samples delay

Post by steve » Fri Nov 02, 2012 4:52 am

If it's any help to you TheRoofInhabitant, I can give you a quick and easy way to delete the first 8192 samples from a track or selection.

A Nyquist snippet to do this is:

Code: Select all

(let ((start (/ 8192 *sound-srate*)))
  (multichan-expand #'extract-abs start (get-duration 1) s))
To use this code, select the first part of the track (at least 8192 samples, but you don't need to be at all precise), then copy and paste this code into the "Nyquist Prompt" effect. Click OK and the first 8192 samples of the selection will be deleted.
If this is useful, then I could convert this code into a plug-in effect which would be a lot more convenient as you would then be able to assign a hot-key to run the effect.
Would that be useful?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: VST Effects 8192 samples delay

Post by steve » Fri Sep 27, 2013 4:54 pm

Tagirijus wrote:1. Could you explaint your little script a bit?
"LET" is a block construct that can first set some local variables, and then run a block of code.
In this case, a variable "start" is created and given the value 8192/<sample rate> where <sample rate> is the sample rate of the selected audio track being processed.


MULTICHANEL-EXPAND is a macro that applies a function to each sound channel in turn. This is required because the function EXTRAXT-ABS only works on mono sounds. This by using MULTICHANEL-EXPAND if the sound is mono EXTRACT-ABS will be applied to that one channel, but if the sound is stereo it will be applied to each channel in turn.

EXTRACT-ABS is used to extract a portion of a sound from a longer sound. This function is used with three arguments, the start time, the end time and the sound that is to be acted on.

GET-DURATION is a handy function that can be used to return the absolute duration of a selection (in effect plug-ins).

There is more information about Nyquist scripts and plug-ins here: http://wiki.audacityteam.org/wiki/Nyqui ... _Reference
Tagirijus wrote:2. Would it be possible to write a Nquist script, which first uses a VST with parameters
Sadly no. Nyquist plug-ins are not able to launch other plug-ins.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply