# Nyquist

**URL:** https://forum.audacityteam.org/c/programming-and-development/nyquist/17.md

[Latest](https://forum.audacityteam.org/latest.md) · [Categories](https://forum.audacityteam.org/categories.md) · [Tags](https://forum.audacityteam.org/tags.md)

---

## [About the Nyquist category](https://forum.audacityteam.org/t/about-the-nyquist-category/123)

<div class="topic-metadata">

**Author:** [@system](https://forum.audacityteam.org/u/system)\
**Replies:** 0

</div>

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

---

## [Installing Nyquist Plug-ins](https://forum.audacityteam.org/t/installing-nyquist-plug-ins/62380)

<div class="topic-metadata">

**Author:** [@steve](https://forum.audacityteam.org/u/steve)\
**Replies:** 0\
**Last updated:** [August 15, 2021, 10:42am UTC](https://forum.audacityteam.org/t/installing-nyquist-plug-ins/62380 "2021-08-15T10:42:43Z")

</div>

Nyquist plug-ins are plain text files with “.NY” as the filename extension rather than the usual “.TXT” extension. Nyquist plug-ins only work in Audacity. You cannot “run” a plug-in directly, it must be “installed” in…

---

## [NY:ALL \[Update in Audacity 3.0.0\]](https://forum.audacityteam.org/t/ny-all-update-in-audacity-3-0-0/60841)

<div class="topic-metadata">

**Author:** [@steve](https://forum.audacityteam.org/u/steve)\
**Replies:** 0\
**Last updated:** [March 22, 2021, 10:28am UTC](https://forum.audacityteam.org/t/ny-all-update-in-audacity-3-0-0/60841 "2021-03-22T10:28:39Z")

</div>

In the past it has been common to use NY:ALL when a big integer is required. For example, when a command requires a limit for the number of samples. (snd-length sound maxlen) In Audacity 3.0.0, the Nyquist library has …

---

## [Posting and copying code to/from the forum](https://forum.audacityteam.org/t/posting-and-copying-code-to-from-the-forum/35698)

<div class="topic-metadata">

**Author:** [@steve](https://forum.audacityteam.org/u/steve)\
**Replies:** 1\
**Last updated:** [August 24, 2024, 12:09pm UTC](https://forum.audacityteam.org/t/posting-and-copying-code-to-from-the-forum/35698 "2024-08-24T12:09:54Z")

</div>

When posting code to the forum, please use the “Code” tags. This can be done by clicking the “Code” button that is above the message composing box, or by manually typing the “code tags” around the code. In the message …

---

## [Manuals and reference material](https://forum.audacityteam.org/t/manuals-and-reference-material/32817)

<div class="topic-metadata">

**Author:** [@steve](https://forum.audacityteam.org/u/steve)\
**Replies:** 0\
**Last updated:** [January 29, 2014, 3:29pm UTC](https://forum.audacityteam.org/t/manuals-and-reference-material/32817 "2014-01-29T15:29:07Z")

</div>

Nyquist in the Audacity manual: https://manual.audacityteam.org/man/nyquist.html A brief guide to using Nyquist in Audacity: Nyquist in Audacity (including how to turn Nyquist code into an Audacity plug-in): https://w…

---

## [Conventions for Nyquist Plug-ins](https://forum.audacityteam.org/t/conventions-for-nyquist-plug-ins/16324)

<div class="topic-metadata">

**Author:** [@Gale\_Andrews](https://forum.audacityteam.org/u/Gale_Andrews)\
**Replies:** 23\
**Last updated:** [August 11, 2019, 3:21pm UTC](https://forum.audacityteam.org/t/conventions-for-nyquist-plug-ins/16324 "2019-08-11T15:21:36Z")

</div>

Steve and I discussed off Forum about having a Wiki page (probably linked to off Nyquist Audio Programming ) that listed the GUI and code conventions expected in plug-ins listed on Download Nyquist Plug-ins and in Nyquis…

---

## [Nyquist Wish List](https://forum.audacityteam.org/t/nyquist-wish-list/15530)

<div class="topic-metadata">

**Author:** [@steve](https://forum.audacityteam.org/u/steve)\
**Replies:** 40\
**Last updated:** [February 17, 2020, 9:33am UTC](https://forum.audacityteam.org/t/nyquist-wish-list/15530 "2020-02-17T09:33:28Z")

</div>

Links to topics requesting new features or other enhancements to Audacity-Nyquist. HTML links https://forum.audacityteam.org/t/wish-list-html-links/15153/1 \[Update: Nyquist plug-ins can now have a Help button that ope…

---

## [Envelope follower / ducker](https://forum.audacityteam.org/t/envelope-follower-ducker/47090)

<div class="topic-metadata">

**Author:** [@steve](https://forum.audacityteam.org/u/steve)\
**Replies:** 20\
**Last updated:** [October 28, 2026, 4:37pm UTC](https://forum.audacityteam.org/t/envelope-follower-ducker/47090 "2026-10-28T16:37:46Z")

</div>

Following on from this topic https://forum.audacityteam.org/t/noise-gate-with-a-sidechain/45569/9 a question was asked about creating an effect that does the opposite of an envelope follower. Here’s the plug-in, which …

---

## [Mix and render audacity beta 4](https://forum.audacityteam.org/t/mix-and-render-audacity-beta-4/153479)

<div class="topic-metadata">

**Author:** [@ASHERICONIC](https://forum.audacityteam.org/u/ASHERICONIC)\
**Replies:** 9\
**Last updated:** [September 28, 2026, 1:06pm UTC](https://forum.audacityteam.org/t/mix-and-render-audacity-beta-4/153479 "2026-09-28T13:06:42Z")

</div>

I am unable to mix and render tracks here.I can only select all, but when i do there is no mix and render option in Tracks available. I can’t select select more than one individual track either

---

## [ChatGPT just wrote Nyquist code that fixes wrap-around clipping](https://forum.audacityteam.org/t/chatgpt-just-wrote-nyquist-code-that-fixes-wrap-around-clipping/153838)

<div class="topic-metadata">

**Author:** [@Trebor](https://forum.audacityteam.org/u/Trebor)\
**Replies:** 6\
**Last updated:** [September 6, 2026, 8:52am UTC](https://forum.audacityteam.org/t/chatgpt-just-wrote-nyquist-code-that-fixes-wrap-around-clipping/153838 "2026-09-06T08:52:14Z")

</div>

I knew unwrapping was possible, but would not have been able to produce Nyquist code to do it. Before-after … Be afraid, be very afraid.

---

## [Tanh waveshaper plugin (via ChatGPT)](https://forum.audacityteam.org/t/tanh-waveshaper-plugin-via-chatgpt/153908)

<div class="topic-metadata">

**Author:** [@Trebor](https://forum.audacityteam.org/u/Trebor)\
**Replies:** 0\
**Last updated:** [September 5, 2026, 8:29pm UTC](https://forum.audacityteam.org/t/tanh-waveshaper-plugin-via-chatgpt/153908 "2026-09-05T20:29:08Z")

</div>

Its effect is similar to legacy leveller, but much less noisy: it only generates first 4 odd harmonics. Tanh-waveshaper.NY (456 Bytes) It’s in Nyquist Version 3, (works in Audacity 2.4.2)

---

## [Seamless loop with nyquist prompts](https://forum.audacityteam.org/t/seamless-loop-with-nyquist-prompts/153848)

<div class="topic-metadata">

**Author:** [@ibocanylz](https://forum.audacityteam.org/u/ibocanylz)\
**Replies:** 1\
**Last updated:** [September 3, 2026, 6:46pm UTC](https://forum.audacityteam.org/t/seamless-loop-with-nyquist-prompts/153848 "2026-09-03T18:46:14Z")

</div>

hi there Is it possible to seamlessly loop custom police sirens created using Nyquist prompts?

---

## [Generate Time Track with Nyquist or Python](https://forum.audacityteam.org/t/generate-time-track-with-nyquist-or-python/54778)

<div class="topic-metadata">

**Author:** [@Sircular](https://forum.audacityteam.org/u/Sircular)\
**Replies:** 4\
**Last updated:** [August 15, 2026, 11:31am UTC](https://forum.audacityteam.org/t/generate-time-track-with-nyquist-or-python/54778 "2026-08-15T11:31:35Z")

</div>

I’m posting this in the Nyquist board because it seems to be where this functionality might live, but please move it to the scripting board if it is more appropriate. I would like to be able to generate a “Rhythm skew” …

---

## [Create Label for Each Clip in Track](https://forum.audacityteam.org/t/create-label-for-each-clip-in-track/46338)

<div class="topic-metadata">

**Author:** [@anthonyt](https://forum.audacityteam.org/u/anthonyt)\
**Replies:** 8\
**Last updated:** [June 14, 2026, 8:22pm UTC](https://forum.audacityteam.org/t/create-label-for-each-clip-in-track/46338 "2026-06-14T20:22:31Z")

</div>

I’m looking for a plug-in that will create a label for each clip on a particular track. For example, on track one, I have split the .wav into five pieces. Clicking on the menu item for this hypothetical plug-in it should…

---

## [Tone Generators: Siren](https://forum.audacityteam.org/t/tone-generators-siren/40272)

<div class="topic-metadata">

**Author:** [@Annabelle3985](https://forum.audacityteam.org/u/Annabelle3985)\
**Replies:** 49\
**Last updated:** [April 26, 2026, 3:08pm UTC](https://forum.audacityteam.org/t/tone-generators-siren/40272 "2026-04-26T15:08:21Z")

</div>

I know this might sound strange but, I wonder if there’s a way for me to make a noise generator that generates the common siren tones, wail, yelp, phaser/piercer (hyperyelp), Horn, and hi-lo? If there is, what would be t…

---

## [Updated "Export Clips" plug-in](https://forum.audacityteam.org/t/updated-export-clips-plug-in/137605)

<div class="topic-metadata">

**Author:** [@steve](https://forum.audacityteam.org/u/steve)\
**Replies:** 4\
**Last updated:** [March 24, 2026, 5:19pm UTC](https://forum.audacityteam.org/t/updated-export-clips-plug-in/137605 "2026-03-24T17:19:22Z")

</div>

I’ve received a number of requests for an update to my Export Clips plug-in. The specific feature being requested, is for it to use the names of the clips for the exported files. Until recently this was not possible beca…

---

## [Can somebody please convert the following macro to a clean Nyquist only script?](https://forum.audacityteam.org/t/can-somebody-please-convert-the-following-macro-to-a-clean-nyquist-only-script/150481)

<div class="topic-metadata">

**Author:** [@heavensprominence](https://forum.audacityteam.org/u/heavensprominence)\
**Replies:** 0\
**Last updated:** [December 15, 2025, 6:36am UTC](https://forum.audacityteam.org/t/can-somebody-please-convert-the-following-macro-to-a-clean-nyquist-only-script/150481 "2025-12-15T06:36:00Z")

</div>

NyquistPrompt:Command="(setf repeats 10000) ; Number of repeats\\n(setf delay 0.0001)\\n\\n(defun normalize (sig)\\n (setf max-samples 100000000)\\n (if (soundp sig)\\n (setf factor (/ 1.0 (peak sig max-samples)))\\n …

---

## [I made a Nyquist version of TB\_Time machine](https://forum.audacityteam.org/t/i-made-a-nyquist-version-of-tb-time-machine/150474)

<div class="topic-metadata">

**Author:** [@XXRMXX96661](https://forum.audacityteam.org/u/XXRMXX96661)\
**Replies:** 0\
**Last updated:** [December 14, 2025, 12:49pm UTC](https://forum.audacityteam.org/t/i-made-a-nyquist-version-of-tb-time-machine/150474 "2025-12-14T12:49:04Z")

</div>

I made a Nyquist version of TB\_Time machine it took me like 4 hours because i was new to nyquist programming language it was complex to me but it did it here’s the code: ;nyquist plug-in ;type process ;name “BitCrusher”…

---

## [New Plugins: "Smart Master" and "Range EQ"](https://forum.audacityteam.org/t/new-plugins-smart-master-and-range-eq/150224)

<div class="topic-metadata">

**Author:** [@Yaron\_Koresh](https://forum.audacityteam.org/u/Yaron_Koresh)\
**Replies:** 1\
**Last updated:** [December 1, 2025, 3:38pm UTC](https://forum.audacityteam.org/t/new-plugins-smart-master-and-range-eq/150224 "2025-12-01T15:38:32Z")

</div>

Hi, I would be happy to share with you, two new Nyquist plugins, and submit them for review/inclusion in the library. Smart Master is a mastering plugin, with multiband compressor/expander, spectral profiles, and looka…

---

## [Lowpass filter type](https://forum.audacityteam.org/t/lowpass-filter-type/150088)

<div class="topic-metadata">

**Author:** [@GIG](https://forum.audacityteam.org/u/GIG)\
**Replies:** 4\
**Last updated:** [November 18, 2025, 3:43pm UTC](https://forum.audacityteam.org/t/lowpass-filter-type/150088 "2025-11-18T15:43:55Z")

</div>

Good evening, I’m trying to find out which loww-pass type is applied when I choose roll-off 12 db. I see in the Nyquist plug-in it’s calling lowpass2 function, but can’t find the function script anywhere. Does anyone ha…

---

## [GLITS Tones in Ausacity](https://forum.audacityteam.org/t/glits-tones-in-ausacity/37134)

<div class="topic-metadata">

**Author:** [@neallmclaren](https://forum.audacityteam.org/u/neallmclaren)\
**Replies:** 3\
**Last updated:** [August 11, 2025, 9:48pm UTC](https://forum.audacityteam.org/t/glits-tones-in-ausacity/37134 "2025-08-11T21:48:51Z")

</div>

Is it possible for someone to tell me what code I’d need to make a set of GLITS tones for broadcast audio as I’m sure there’s a way it can be done more easily using Nyquist code. The spec is located herehttp://en.wi…

---

## [Preset populate controls?](https://forum.audacityteam.org/t/preset-populate-controls/45095)

<div class="topic-metadata">

**Author:** [@dmonty](https://forum.audacityteam.org/u/dmonty)\
**Replies:** 6\
**Last updated:** [May 24, 2025, 8:21pm UTC](https://forum.audacityteam.org/t/preset-populate-controls/45095 "2025-05-24T20:21:29Z")

</div>

I want to populate a bunch of saves for a generator plugin. Is there way to populate a bunch of saves for a generator plugin? Is it possible to have a “choice” control populate other control fields on the Nyquist plugi…

---

## [Macro creates a new label track for each label](https://forum.audacityteam.org/t/macro-creates-a-new-label-track-for-each-label/136562)

<div class="topic-metadata">

**Author:** [@Samse26](https://forum.audacityteam.org/u/Samse26)\
**Replies:** 5\
**Last updated:** [April 13, 2025, 2:20pm UTC](https://forum.audacityteam.org/t/macro-creates-a-new-label-track-for-each-label/136562 "2025-04-13T14:20:38Z")

</div>

About a year ago I posted a related request, which unfortunately didn’t get any replies. Since a Nyquist command is involved, I try again in this category - hoping to bring this to the attention of some seasoned Nyquist…

---

## [Amplify shortcut +2](https://forum.audacityteam.org/t/amplify-shortcut-2/135168)

<div class="topic-metadata">

**Author:** [@mikeadair](https://forum.audacityteam.org/u/mikeadair)\
**Replies:** 2\
**Last updated:** [March 27, 2025, 11:21am UTC](https://forum.audacityteam.org/t/amplify-shortcut-2/135168 "2025-03-27T11:21:41Z")

</div>

I used to have a shortcut key (CTRL+) that would amplify selected sound by 2db and another for -2. This was very useful. I’ve lost it and struggled to make a new one. Do you ahve one? Please share

---

## [Trying to generate a track using Fourier series](https://forum.audacityteam.org/t/trying-to-generate-a-track-using-fourier-series/134744)

<div class="topic-metadata">

**Author:** [@Adiaphoros](https://forum.audacityteam.org/u/Adiaphoros)\
**Replies:** 2\
**Last updated:** [March 23, 2025, 7:27am UTC](https://forum.audacityteam.org/t/trying-to-generate-a-track-using-fourier-series/134744 "2025-03-23T07:27:02Z")

</div>

I’m trying to generate a track with a wave defined by this Fourier series: with this code: (defvar frequency 440) (defvar amplitude 1) (defvar return (s-rest 0)) ( dotimes (i 5) (\* frequency 2) (/ amplitude 2) (…

---

## [Inverse the audio selection from the Nyquist console](https://forum.audacityteam.org/t/inverse-the-audio-selection-from-the-nyquist-console/133096)

<div class="topic-metadata">

**Author:** [@felico](https://forum.audacityteam.org/u/felico)\
**Replies:** 7\
**Last updated:** [March 7, 2025, 7:13am UTC](https://forum.audacityteam.org/t/inverse-the-audio-selection-from-the-nyquist-console/133096 "2025-03-07T07:13:38Z")

</div>

Hello, I’m new in the forum, and I try to learn nyquist language. I use Audacity version 3.7.1 and I’m on Windows. I would just like to reverse the selected audio from the Nyquist console. Could someone give me the c…

---

## [Replace stereo track with the left channel using Nyquist not the interface of Audacity](https://forum.audacityteam.org/t/replace-stereo-track-with-the-left-channel-using-nyquist-not-the-interface-of-audacity/133007)

<div class="topic-metadata">

**Author:** [@Fred43](https://forum.audacityteam.org/u/Fred43)\
**Replies:** 6\
**Last updated:** [March 3, 2025, 8:35pm UTC](https://forum.audacityteam.org/t/replace-stereo-track-with-the-left-channel-using-nyquist-not-the-interface-of-audacity/133007 "2025-03-03T20:35:00Z")

</div>

I have a stereo track and I want to replace it with track 0 (the left channel). That is, in the end, I want the stereo track to be replaced with a mono track, which contains the left channel of the original stereo track. …

---

## [Nyquist CUDA (GPU) Time-stretching (by bpm difference)](https://forum.audacityteam.org/t/nyquist-cuda-gpu-time-stretching-by-bpm-difference/109976)

<div class="topic-metadata">

**Author:** [@kektamine](https://forum.audacityteam.org/u/kektamine)\
**Replies:** 5\
**Last updated:** [February 25, 2025, 10:17am UTC](https://forum.audacityteam.org/t/nyquist-cuda-gpu-time-stretching-by-bpm-difference/109976 "2025-02-25T10:17:23Z")

</div>

Hi, i have Code in Python, that uses CUDA for time stretching on GPU now I want to pack it as a nyquist plugin can someone or the devs help please?

---

## [Is it possible to generate a square wave from an audio?](https://forum.audacityteam.org/t/is-it-possible-to-generate-a-square-wave-from-an-audio/60393)

<div class="topic-metadata">

**Author:** [@ImUsingAudacity](https://forum.audacityteam.org/u/ImUsingAudacity)\
**Replies:** 13\
**Last updated:** [January 27, 2025, 1:55pm UTC](https://forum.audacityteam.org/t/is-it-possible-to-generate-a-square-wave-from-an-audio/60393 "2025-01-27T13:55:51Z")

</div>

Hi, I would like to generate a square wave (a wave that has 0 or 1 values only as shown in the attached image). The small signals that have low volume (less than a specific value or threshold value) should generate 0 vol…

---

## [Nearest Neighbor Upsampling](https://forum.audacityteam.org/t/nearest-neighbor-upsampling/26710)

<div class="topic-metadata">

**Author:** [@greenblock](https://forum.audacityteam.org/u/greenblock)\
**Replies:** 23\
**Last updated:** [January 24, 2025, 11:44pm UTC](https://forum.audacityteam.org/t/nearest-neighbor-upsampling/26710 "2025-01-24T23:44:43Z")

</div>

Hello. My name’s Pedro and I’m in need of a better upsampling method for low quality files. I’ve tried many and I prefer that one! I call it nearest neighbor because it apparently repeats each sample, so you can only up…

[Next page](https://forum.audacityteam.org/c/programming-and-development/nyquist/17.md?page=1)
