Category Archives: Code Samples

Useful code snippets and interesting coding ideas.

Stretching audio to length

Audacity includes an excellent “Change Tempo” effect which can stretch the length of the selected audio without altering the pitch. The effect includes the ability to specify the required new length, but this option is not available when using the effect in a Macro, or with Scripting. Setting the target length in a Macro Audacity … Continue reading Stretching audio to length

Ukulele Tuning Tones

A simple “tuning fork” plug-in for Audacity, specifically for tuning a ukulele. This plug-in just generates a tone of the specified note, which is basically what a tuning fork does, except that a real (mechanical) tuning fork is restricted to just one frequency, whereas this plug-in allows you to select the required note. Ukuleles are … Continue reading Ukulele Tuning Tones

Find Label (plug-in)

This plug-in can be helpful in situations where you have a project that has a lot (possibly hundreds) of labels, and you want to locate one specific label quickly by searching for the label text. While it is perfectly possible to scroll through the Label Editor window and look for the label text, the Label … Continue reading Find Label (plug-in)

Three band crossover filter (part 1)

What are crossover filters? Due to mechanical / physical constraints it is near impossible for a single speaker cone to accurately reproduce the full audio range. Carefully designed small speakers may work adequately for low power use such as portable radios, but for larger, higher power and higher sound quality speakers, multiple “driver” units are … Continue reading Three band crossover filter (part 1)

Synthesizing musical notes

This is a short tutorial about generating sounds and shaping the sound with an envelope. Nyquist includes a number of oscillators and other simple sound generators that may be used as building blocks. In this tutorial we will be using the triangle waveform oscillator as the basis of a simple piano-like “ding” sound.We’ll start with … Continue reading Synthesizing musical notes