Support version strings in Nyquist plug-ins

For shipped plug-ins, the version number is the same as the Audacity
release version when the plug-in was last modified.
This commit is contained in:
Steve Daulton 2018-07-02 22:41:33 +01:00
parent 356fdeba40
commit a06e561cb7
28 changed files with 39 additions and 2 deletions

View File

@ -5,6 +5,7 @@ $name (_ "Silence Finder")
$manpage "Silence_Finder"
$action (_ "Finding silence...")
$author (_ "Alex S. Brown")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; by Alex S. Brown, PMP (http://www.alexsbrown.com)

View File

@ -5,6 +5,7 @@ $name (_ "Sound Finder")
$manpage "Sound_Finder"
$action (_ "Finding sound...")
$author (_ "Jeremy R. Brown")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; by Jeremy R. Brown (http://www.jeremy-brown.com/)

View File

@ -5,6 +5,7 @@ $name (_ "Spectral edit multi tool")
$manpage "Spectral_edit_multi_tool"
$action (_ "Filtering...")
$author (_ "Paul Licameli")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; SpectralEditMulti.ny by Paul Licameli, November 2014.

View File

@ -6,6 +6,7 @@ $name (_ "Spectral edit parametric EQ")
$manpage "Spectral_edit_parametric_EQ"
$action (_ "Filtering...")
$author (_ "Paul Licameli")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; SpectralEditParametricEQ.ny by Paul Licameli, November 2014.

View File

@ -6,6 +6,7 @@ $name (_ "Spectral edit shelves")
$manpage "Spectral_edit_shelves"
$action (_ "Filtering...")
$author (_ "Paul Licameli")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")

View File

@ -5,6 +5,7 @@ $name (_ "Studio Fade Out")
$manpage "Fades#studio_fadeout"
$action (_ "Applying Fade...")
$author (_ "Steve Daulton")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; StudioFadeOut.ny by Steve Daulton December 2012.

View File

@ -8,6 +8,7 @@ $manpage "Adjustable_Fade"
$debugbutton false
$action (_ "Applying Fade...")
$author (_ "Steve Daulton")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; adjustable-fade.ny by Steve Daulton Dec 2012

View File

@ -5,6 +5,7 @@ $name (_ "Beat Finder")
$manpage "Beat_Finder"
$action (_ "Finding beats...")
$author (_ "Audacity")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; Released under terms of the GNU General Public License version 2:

View File

@ -6,6 +6,7 @@ $name (_ "Clip Fix")
$manpage "Clip_Fix"
$action (_ "Reconstructing clips...")
$author (_ "Benjamin Schwartz and Steve Daulton")
$release 2.3.0
$copyright (_ "Licensing confirmed under terms of the GNU General Public License version 2")
;; Released under terms of the GNU General Public License version 2:

View File

@ -7,6 +7,7 @@ $name (_ "Crossfade Clips")
$manpage "Crossfade_Clips"
$action (_ "Crossfading...")
$author (_ "Steve Daulton")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")

View File

@ -7,6 +7,7 @@ $debugbutton disabled
$action (_ "Crossfading...")
$preview selection
$author (_ "Steve Daulton")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; crossfadetracks.ny by Steve Daulton Nov 2014 / Sep 2015

View File

@ -6,6 +6,7 @@ $name (_ "Delay")
$manpage "Delay"
$action (_ "Applying Delay Effect...")
$author (_ "Steve Daulton")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; by Steve Daulton, July 2012.

View File

@ -5,6 +5,7 @@ $name (_ "Regular Interval Labels")
$manpage "Regular_Interval_Labels"
$action (_ "Adding equally-spaced labels to the label track...")
$author (_ "Steve Daulton")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; Original version by David R. Sky (http://www.garyallendj.com/davidsky/) 2007.

View File

@ -7,6 +7,7 @@ $manpage "High-Pass_Filter"
$debugbutton disabled
$action (_ "Performing High-Pass Filter...")
$author (_ "Dominic Mazzoni")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; Released under terms of the GNU General Public License version 2:

View File

@ -7,6 +7,7 @@ $debugbutton false
$action (_ "Limiting...")
$preview enabled
$author (_ "Steve Daulton")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; limiter.ny by Steve Daulton November 2011, updated May 2015.

View File

@ -7,6 +7,7 @@ $manpage "Low-Pass_Filter"
$debugbutton disabled
$action (_ "Performing Low-Pass Filter...")
$author (_ "Dominic Mazzoni")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; Released under terms of the GNU General Public License version 2:

View File

@ -7,6 +7,7 @@ $manpage "Notch_Filter"
$debugbutton false
$action (_ "Applying Notch Filter...")
$author (_ "Steve Daulton and Bill Wharrie")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; notch.ny by Steve Daulton and Bill Wharrie

View File

@ -8,6 +8,7 @@ $preview linear
$action (_ "Generating pluck sound...")
$info (_ "MIDI values for C notes: 36, 48, 60 [middle C], 72, 84, 96.")
$author (_ "David R.Sky")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; Released under terms of the GNU General Public License version 2:

View File

@ -6,6 +6,7 @@ $manpage "Rhythm_Track"
$preview linear
$action (_ "Generating Rhythm...")
$author (_ "Dominic Mazzoni")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; by Dominic Mazzoni, David R. Sky and Steve Daulton.

View File

@ -7,6 +7,7 @@ $name (_ "Risset Drum")
$manpage "Risset_Drum"
$action (_ "Generating Risset Drum...")
$author (_ "Steven Jones")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; rissetdrum.ny by Steven Jones, after Jean Claude Risset.

View File

@ -6,6 +6,7 @@ $manpage "Sample_Data_Export"
$debugbutton false
$action (_ "Analyzing...")
$author (_ "Steve Daulton")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")

View File

@ -5,6 +5,7 @@ $name (_ "Sample Data Import")
$manpage "Sample_Data_Import"
$action (_ "Reading and rendering samples...")
$author (_ "Steve Daulton")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
$control filename (_ "Select file") file "" "*default*/sample-data.txt" "Text file|*.txt;*.TXT|All files|*.*;*" "open,exists"

View File

@ -7,6 +7,7 @@ $manpage "Tremolo"
$debugbutton disabled
$action (_ "Applying Tremolo...")
$author (_ "Steve Daulton")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; tremolo.ny by Steve Daulton (www.easyspacepro.com) July 2012.

View File

@ -6,6 +6,7 @@ $name (_ "Vocal Reduction and Isolation")
$manpage "Vocal_Reduction_and_Isolation"
$action (_ "Applying Action...")
$author (_ "Robert Haenggi")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; vocrediso.ny, based on rjh-stereo-tool.ny

View File

@ -6,6 +6,7 @@ $name (_ "Vocal Remover")
$manpage "Vocal_Remover"
$action (_ "Removing center-panned audio...")
$author (_ "Steve Daulton")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; This version of vocalremover.ny by Steve Daulton June 2013.

View File

@ -6,6 +6,7 @@ $name (_ "Vocoder")
$manpage "Vocoder"
$action (_ "Processing Vocoder...")
$author (_ "Edgar-RFT")
$release 2.3.0
$copyright (_ "Released under terms of the GNU General Public License version 2")
;; vocoder.ny by Edgar-RFT

View File

@ -135,6 +135,7 @@ NyquistEffect::NyquistEffect(const wxString &fName)
mIsSal = false;
mOK = false;
mAuthor = XO("n/a");
mReleaseVersion = XO("n/a");
mCopyright = XO("n/a");
// set clip/split handling when applying over clip boundary.
@ -221,7 +222,7 @@ IdentInterfaceSymbol NyquistEffect::GetVendor()
wxString NyquistEffect::GetVersion()
{
return XO("n/a");
return mReleaseVersion;
}
wxString NyquistEffect::GetDescription()
@ -1865,6 +1866,12 @@ bool NyquistEffect::Parse(
return true;
}
if (len >= 2 && tokens[0] == wxT("release")) {
// Value must be quoted if the release version string contains spaces.
mReleaseVersion = UnQuote(tokens[1]);
return true;
}
if (len >= 2 && tokens[0] == wxT("copyright")) {
mCopyright = UnQuote(tokens[1]);
return true;

View File

@ -231,6 +231,10 @@ private:
wxString mAction; // translatable
wxString mInfo; // translatable
wxString mAuthor;
// Version number of the specific plug-in (not to be confused with mVersion)
// For shipped plug-ins this will be the same as the Audacity release version
// when the plug-in was last modified.
wxString mReleaseVersion;
wxString mCopyright;
wxString mManPage; // ONLY use if a help page exists in the manual.
wxString mHelpFile;
@ -245,7 +249,7 @@ private:
bool mProjectChanged;
wxString mDebugOutput;
int mVersion;
int mVersion; // Syntactic version of Nyquist plug-in (not to be confused with mReleaseVersion)
std::vector<NyqControl> mControls;
unsigned mCurNumChannels;