Silence Finder Labels

Analyze>Silence Finder labels all silences with “S”. Is there a way to change this?

Here’s what I’m doing:
I run the Silence Finder several times to produce several label tracks with different values for “Minimum duration of silence”. Then, when I File>Export>Labels, it exports all label tracks together and every one has an “S” label.

Ideally, the plug-in itself would allow adding a custom label, but another way would be to allow mass change of labels on an existing label track. Currently, I work around this by exporting, manipulating in Excel, and importing. Is there a better way?

Screen Shot 2020-12-02 at 1.17.03 PM.jpg

You could modify the “Silence Finder”. It is written in “Nyquist”.
Try replacing your current version of SilenceMarker.ny with this version:
SilenceMarker.ny (3.17 KB)

Wow, this is exactly what I wanted! Plus a mini-lesson in learning .ny

Thanks, Steve.
Screen Shot 2020-12-02 at 6.09.04 PM.jpg

If you are interested, this is what I did:

The original version had this line:

(setf *labeltxt* (_ "S"))

That sets the variable (symbol) labeltxt to the string (text) value “S”.

I renamed all occurrences of labeltxt with label-text (there is only one other occurrence). This makes no difference to what the code does.

I then added the line:

;control label-text "Label Text" string "" "S"

This adds the string input control (widget), which sets the value of label-text.
More about Nyquist widgets here: