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.
Usage:
- First, after installing and enabling the plugin, of course) one would import or open the percussion mono track file (or any other fitting track)
- Then hit the plugin which will then create a second track the same length than the first one and filled with silence
- Select now the first region containing the perc beat to split to second track
- Hit again the plugin, which will move the selected region from track one to track two
- Repeat #4 as many times as needed along the first track
The plugin code is :
;nyquist plug-in
;version 4
;type tool
;name “SplitTrackSelection”
(cond
((= (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:”)))
(cond
((= (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.