This little plugin is very specific. I use it to split a percussion track where 2 different beats make their own alternate sounds, very distinct, but I need them to be on 2 separate tracks, so that I can handle those with different effects later on at mixing time.


  1. First, after installing and enabling the plugin, of course) one would import or open the percussion mono track file (or any other fitting track)
  2. Then hit the plugin which will then create a second track the same length than the first one and filled with silence
  3. Select now the first region containing the perc beat to split to second track
  4. Hit again the plugin, which will move the selected region from track one to track two
  5. Repeat #4 as many times as needed along the first track

The plugin code is :

;nyquist plug-in
;version 4
;type tool
;name “SplitTrackSelection”

((= (get 'project 'tracks) 1)
(aud-do “SelectAll”)
(aud-do “SelectTracks: Mode="Set" Track=0”)
(aud-do “SelectTrackStartToEnd”)
(aud-do “Duplicate”)
(aud-do “SelectTracks: Mode="Set" Track=1”)
(aud-do “Silence:”)))
((= (get 'project 'tracks) 2)
(aud-do “SelectTracks: Mode="Set" Track=0”)
(aud-do “SplitCut”)
(aud-do “SelectTracks: Mode="Set" Track=1”)
(aud-do “Paste”)
(aud-do “SelectAll”)
(aud-do “Join”)
(aud-do “CursorToSelectionEnd”)))

In hope it be useful for others. As an example, I use it to separate the two well-distinct beat sounds (high then low frequencies) of a rebolo track on bossa or samba tunes. :wink:

So as to be easier for others to use, I’m including your plug-in here as a downloadable file:
SplitTrackSelection.ny (591 Bytes)
Installations instructions are in the Audacity manual here:
Windows: https://manual.audacityteam.org/man/installing_effect_generator_and_analyzer_plug_ins_on_windows.html#nyquist_install
MacOS: https://manual.audacityteam.org/man/installing_effect_generator_and_analyzer_plug_ins_on_mac_os_x.html#nyquist_install
Linux: https://manual.audacityteam.org/man/installing_effect_generator_and_analyzer_plug_ins_on_linux.html#nyquist_install

Super! Thanks Steve.