Automation -> Scripting.

This commit is contained in:
James Crook 2018-02-21 14:24:25 +00:00 committed by Paul Licameli
parent 08b1db6145
commit 0ad533a740
71 changed files with 157 additions and 157 deletions

View File

@ -3,7 +3,7 @@
Audacity: A Digital Audio Editor
EffectAutomationParameters.h
(defining CommandAutomationParameters)
(defining CommandParameters)
Leland Lucius
@ -40,8 +40,8 @@
**********************************************************************/
#ifndef __AUDACITY_COMMAND_AUTOMATION_PARAMETERS_H__
#define __AUDACITY_COMMAND_AUTOMATION_PARAMETERS_H__
#ifndef __AUDACITY_COMMAND_PARAMETERS_H__
#define __AUDACITY_COMMAND_PARAMETERS_H__
#include <locale.h>
@ -51,7 +51,7 @@
/**
\brief CommandAutomationParameters, derived from wxFileConfig, is essentially doing
\brief CommandParameters, derived from wxFileConfig, is essentially doing
the same things as the Shuttle classes. It does text <-> binary conversions of
parameters. It does not seem to be using actual file read/writing.
@ -61,10 +61,10 @@ wxWidget validators, and can create default dialogs. However until that convers
done, we need this class, and we use a pointer to one from within a Shuttle when interfacing
with the code that still uses it.
*/
class CommandAutomationParameters final : public wxFileConfig
class CommandParameters final : public wxFileConfig
{
public:
CommandAutomationParameters(const wxString & parms = wxEmptyString)
CommandParameters(const wxString & parms = wxEmptyString)
: wxFileConfig(wxEmptyString,
wxEmptyString,
wxEmptyString,
@ -74,7 +74,7 @@ public:
SetParameters(parms);
}
virtual ~CommandAutomationParameters()
virtual ~CommandParameters()
{
}

View File

@ -214,8 +214,8 @@ public:
// should derive by some route from AudacityCommand to pick up that
// functionality.
//virtual bool DefineParams( ShuttleParams & S){ return false;};
virtual bool GetAutomationParameters(CommandAutomationParameters & parms) = 0;
virtual bool SetAutomationParameters(CommandAutomationParameters & parms) = 0;
virtual bool GetAutomationParameters(CommandParameters & parms) = 0;
virtual bool SetAutomationParameters(CommandParameters & parms) = 0;
virtual bool LoadUserPreset(const wxString & name) = 0;
virtual bool SaveUserPreset(const wxString & name) = 0;

View File

@ -1588,7 +1588,7 @@ void AudacityProject::CreateMenusAndCommands()
// Effects Manager also (now) manages Generic commands.
// plug-in manager, as if an effect.
c->BeginSubMenu(_("&Automation"));
c->BeginSubMenu(_("&Scriptables"));
// Note that the PLUGIN_SYMBOL must have a space between words,
// whereas the short-form used here must not.

View File

@ -58,7 +58,7 @@ public:
bool ExchangeWithMaster(const wxString & Name) override;
};
class CommandAutomationParameters;
class CommandParameters;
/**************************************************************************//**
\brief Shuttle that deals with parameters. This is a base class with lots of
virtual functions that do nothing by default.
@ -68,7 +68,7 @@ class ShuttleParams : public Shuttle
public:
wxString mParams;
bool *pOptionalFlag;
CommandAutomationParameters * mpEap;
CommandParameters * mpEap;
ShuttleParams(){ mParams = wxT("") ;mpEap=NULL;pOptionalFlag=NULL;}
virtual ~ShuttleParams() {}
bool ExchangeWithMaster(const wxString & Name) override;
@ -116,8 +116,8 @@ public:
bool bWrite;
ShuttleParams & Optional( bool & var ) override;
bool CouldGet(const wxString &key);
void SetForValidating( CommandAutomationParameters * pEap){ mpEap=pEap; bOK=true;bWrite=false;};
void SetForWriting(CommandAutomationParameters * pEap){ mpEap=pEap;bOK=true;bWrite=true;};
void SetForValidating( CommandParameters * pEap){ mpEap=pEap; bOK=true;bWrite=false;};
void SetForWriting(CommandParameters * pEap){ mpEap=pEap;bOK=true;bWrite=true;};
void Define( bool & var, const wxChar * key, const bool vdefault, const bool vmin, const bool vmax, const bool vscl ) override;
void Define( int & var, const wxChar * key, const int vdefault, const int vmin, const int vmax, const int vscl ) override;
void Define( size_t & var, const wxChar * key, const int vdefault, const int vmin, const int vmax, const int vscl ) override;

View File

@ -144,7 +144,7 @@ wxDialog *AudacityCommand::CreateUI(wxWindow *parent, AudacityCommand * WXUNUSED
bool AudacityCommand::GetAutomationParameters(wxString & parms)
{
CommandAutomationParameters eap;
CommandParameters eap;
if (mUIDialog && !TransferDataFromWindow())
{
@ -163,7 +163,7 @@ bool AudacityCommand::SetAutomationParameters(const wxString & parms)
{
wxString preset = parms;
CommandAutomationParameters eap(parms);
CommandParameters eap(parms);
ShuttleSetAutomation S;
S.SetForWriting( &eap );

View File

@ -32,7 +32,7 @@ public:
void PopulateOrExchange(ShuttleGui & S) override;
// AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Automation#drag");};
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables#drag");};
bool Apply(const CommandContext & context) override;

View File

@ -433,7 +433,7 @@ void GetInfoCommand::ExploreMenu( const CommandContext &context, wxMenu * pMenu,
context.AddItem( Label, "2" );
context.AddItem( Accel, "3" );
if( !Name.IsEmpty() )
context.AddItem( Name, "id" );// It is called Automation ID outside Audacity.
context.AddItem( Name, "id" );// It is called Scripting ID outside Audacity.
context.EndStruct();
if (item->IsSubMenu()) {

View File

@ -38,7 +38,7 @@ public:
void PopulateOrExchange(ShuttleGui & S) override;
// AudacityCommand overrides
wxString ManualPage() override {return wxT("Automation");};
wxString ManualPage() override {return wxT("Scriptables");};
bool Apply(const CommandContext &context) override;
bool ApplyInner(const CommandContext &context);

View File

@ -128,14 +128,14 @@ bool EffectAmplify::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectAmplify::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectAmplify::GetAutomationParameters(CommandParameters & parms)
{
parms.WriteFloat(KEY_Ratio, mRatio);
return true;
}
bool EffectAmplify::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectAmplify::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyFloat(Ratio);

View File

@ -49,8 +49,8 @@ public:
unsigned GetAudioOutCount() override;
size_t ProcessBlock(float **inBlock, float **outBlock, size_t blockLen) override;
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
bool LoadFactoryDefaults() override;
// Effect implementation

View File

@ -136,7 +136,7 @@ bool EffectAutoDuck::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectAutoDuck::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectAutoDuck::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_DuckAmountDb, mDuckAmountDb);
parms.Write(KEY_InnerFadeDownLen, mInnerFadeDownLen);
@ -149,7 +149,7 @@ bool EffectAutoDuck::GetAutomationParameters(CommandAutomationParameters & parms
return true;
}
bool EffectAutoDuck::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectAutoDuck::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyDouble(DuckAmountDb);
ReadAndVerifyDouble(InnerFadeDownLen);

View File

@ -47,8 +47,8 @@ public:
// EffectClientInterface implementation
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -177,7 +177,7 @@ bool EffectBassTreble::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectBassTreble::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectBassTreble::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_Bass, mBass);
parms.Write(KEY_Treble, mTreble);
@ -187,7 +187,7 @@ bool EffectBassTreble::GetAutomationParameters(CommandAutomationParameters & par
return true;
}
bool EffectBassTreble::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectBassTreble::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyDouble(Bass);
ReadAndVerifyDouble(Treble);

View File

@ -70,8 +70,8 @@ public:
float **outbuf,
size_t numSamples) override;
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect Implementation

View File

@ -144,7 +144,7 @@ bool EffectChangePitch::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectChangePitch::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectChangePitch::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_Percentage, m_dPercentChange);
parms.Write(KEY_UseSBSMS, mUseSBSMS);
@ -152,7 +152,7 @@ bool EffectChangePitch::GetAutomationParameters(CommandAutomationParameters & pa
return true;
}
bool EffectChangePitch::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectChangePitch::SetAutomationParameters(CommandParameters & parms)
{
// Vaughan, 2013-06: Long lost to history, I don't see why m_dPercentChange was chosen to be shuttled.
// Only m_dSemitonesChange is used in Process().

View File

@ -57,8 +57,8 @@ public:
// EffectClientInterface implementation
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
bool LoadFactoryDefaults() override;
// Effect implementation

View File

@ -134,14 +134,14 @@ bool EffectChangeSpeed::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectChangeSpeed::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectChangeSpeed::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_Percentage, m_PercentChange);
return true;
}
bool EffectChangeSpeed::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectChangeSpeed::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyDouble(Percentage);

View File

@ -46,8 +46,8 @@ public:
// EffectClientInterface implementation
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
bool LoadFactoryDefaults() override;
// Effect implementation

View File

@ -126,7 +126,7 @@ bool EffectChangeTempo::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectChangeTempo::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectChangeTempo::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_Percentage, m_PercentChange);
parms.Write(KEY_UseSBSMS, mUseSBSMS);
@ -134,7 +134,7 @@ bool EffectChangeTempo::GetAutomationParameters(CommandAutomationParameters & pa
return true;
}
bool EffectChangeTempo::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectChangeTempo::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyDouble(Percentage);
m_PercentChange = Percentage;

View File

@ -52,8 +52,8 @@ public:
// EffectClientInterface implementation
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -104,7 +104,7 @@ bool EffectClickRemoval::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectClickRemoval::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectClickRemoval::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_Threshold, mThresholdLevel);
parms.Write(KEY_Width, mClickWidth);
@ -112,7 +112,7 @@ bool EffectClickRemoval::GetAutomationParameters(CommandAutomationParameters & p
return true;
}
bool EffectClickRemoval::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectClickRemoval::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyInt(Threshold);
ReadAndVerifyInt(Width);

View File

@ -47,8 +47,8 @@ public:
// EffectClientInterface implementation
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -130,7 +130,7 @@ bool EffectCompressor::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectCompressor::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectCompressor::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_Threshold, mThresholdDB);
parms.Write(KEY_NoiseFloor, mNoiseFloorDB);
@ -143,7 +143,7 @@ bool EffectCompressor::GetAutomationParameters(CommandAutomationParameters & par
return true;
}
bool EffectCompressor::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectCompressor::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyDouble(Threshold);
ReadAndVerifyDouble(NoiseFloor);

View File

@ -49,8 +49,8 @@ public:
// EffectClientInterface implementation
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -291,7 +291,7 @@ bool EffectDistortion::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectDistortion::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectDistortion::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_TableTypeIndx, kTableTypeStrings[mParams.mTableChoiceIndx]);
parms.Write(KEY_DCBlock, mParams.mDCBlock);
@ -304,7 +304,7 @@ bool EffectDistortion::GetAutomationParameters(CommandAutomationParameters & par
return true;
}
bool EffectDistortion::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectDistortion::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyEnum(TableTypeIndx, wxArrayString(nTableTypes, kTableTypeStrings));
ReadAndVerifyBool(DCBlock);

View File

@ -87,8 +87,8 @@ public:
float **outbuf,
size_t numSamples) override;
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
wxArrayString GetFactoryPresets() override;
bool LoadFactoryPreset(int id) override;

View File

@ -236,7 +236,7 @@ bool EffectDtmf::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectDtmf::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectDtmf::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_Sequence, dtmfSequence);
parms.Write(KEY_DutyCycle, dtmfDutyCycle);
@ -245,7 +245,7 @@ bool EffectDtmf::GetAutomationParameters(CommandAutomationParameters & parms)
return true;
}
bool EffectDtmf::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectDtmf::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyDouble(DutyCycle);
ReadAndVerifyDouble(Amplitude);

View File

@ -49,8 +49,8 @@ public:
bool ProcessInitialize(sampleCount totalLen, ChannelNames chanMap = NULL) override;
size_t ProcessBlock(float **inBlock, float **outBlock, size_t blockLen) override;
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -143,7 +143,7 @@ bool EffectEcho::DefineParams( ShuttleParams & S ){
}
bool EffectEcho::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectEcho::GetAutomationParameters(CommandParameters & parms)
{
parms.WriteFloat(KEY_Delay, delay);
parms.WriteFloat(KEY_Decay, decay);
@ -151,7 +151,7 @@ bool EffectEcho::GetAutomationParameters(CommandAutomationParameters & parms)
return true;
}
bool EffectEcho::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectEcho::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyFloat(Delay);
ReadAndVerifyFloat(Decay);

View File

@ -47,8 +47,8 @@ public:
bool ProcessFinalize() override;
size_t ProcessBlock(float **inBlock, float **outBlock, size_t blockLen) override;
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation
void PopulateOrExchange(ShuttleGui & S) override;

View File

@ -589,7 +589,7 @@ bool Effect::ShowInterface(wxWindow *parent, bool forceModal)
return res;
}
bool Effect::GetAutomationParameters(CommandAutomationParameters & parms)
bool Effect::GetAutomationParameters(CommandParameters & parms)
{
if (mClient)
{
@ -599,7 +599,7 @@ bool Effect::GetAutomationParameters(CommandAutomationParameters & parms)
return true;
}
bool Effect::SetAutomationParameters(CommandAutomationParameters & parms)
bool Effect::SetAutomationParameters(CommandParameters & parms)
{
if (mClient)
{
@ -1029,7 +1029,7 @@ bool Effect::Startup()
bool Effect::GetAutomationParameters(wxString & parms)
{
CommandAutomationParameters eap;
CommandParameters eap;
if (mUIDialog && !TransferDataFromWindow())
{
@ -1077,7 +1077,7 @@ bool Effect::SetAutomationParameters(const wxString & parms)
}
else
{
CommandAutomationParameters eap(parms);
CommandParameters eap(parms);
ShuttleSetAutomation S;
S.SetForValidating( &eap );
// DefineParams returns false if not defined for this effect.

View File

@ -135,8 +135,8 @@ class AUDACITY_DLL_API Effect /* not final */ : public wxEvtHandler,
bool ShowInterface(wxWindow *parent, bool forceModal = false) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
bool LoadUserPreset(const wxString & name) override;
bool SaveUserPreset(const wxString & name) override;

View File

@ -336,7 +336,7 @@ bool EffectManager::SetEffectParameters(const PluginID & ID, const wxString & pa
if (effect)
{
CommandAutomationParameters eap(params);
CommandParameters eap(params);
if (eap.HasEntry(wxT("Use Preset")))
{
@ -351,7 +351,7 @@ bool EffectManager::SetEffectParameters(const PluginID & ID, const wxString & pa
{
// Set defaults (if not initialised) before setting values.
command->Init();
CommandAutomationParameters eap(params);
CommandParameters eap(params);
if (eap.HasEntry(wxT("Use Preset")))
{
@ -409,7 +409,7 @@ wxString EffectManager::GetPreset(const PluginID & ID, const wxString & params,
return wxEmptyString;
}
CommandAutomationParameters eap(params);
CommandParameters eap(params);
wxString preset;
if (eap.HasEntry(wxT("Use Preset")))
@ -452,7 +452,7 @@ wxString EffectManager::GetDefaultPreset(const PluginID & ID)
if (!preset.IsEmpty())
{
CommandAutomationParameters eap;
CommandParameters eap;
eap.Write(wxT("Use Preset"), preset);
eap.GetParameters(preset);

View File

@ -318,7 +318,7 @@ bool EffectEqualization::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectEqualization::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectEqualization::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_FilterLength, (unsigned long)mM);
parms.Write(KEY_CurveName, mCurveName);
@ -328,7 +328,7 @@ bool EffectEqualization::GetAutomationParameters(CommandAutomationParameters & p
return true;
}
bool EffectEqualization::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectEqualization::SetAutomationParameters(CommandParameters & parms)
{
// Pretty sure the interpolation name shouldn't have been interpreted when
// specified in chains, but must keep it that way for compatibility.

View File

@ -115,8 +115,8 @@ public:
// EffectClientInterface implementation
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
bool LoadFactoryDefaults() override;
// EffectUIClientInterface implementation

View File

@ -81,7 +81,7 @@ bool EffectFindClipping::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectFindClipping::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectFindClipping::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_Start, mStart);
parms.Write(KEY_Stop, mStop);
@ -89,7 +89,7 @@ bool EffectFindClipping::GetAutomationParameters(CommandAutomationParameters & p
return true;
}
bool EffectFindClipping::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectFindClipping::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyInt(Start);
ReadAndVerifyInt(Stop);

View File

@ -41,8 +41,8 @@ public:
// EffectClientInterface implementation
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -168,7 +168,7 @@ bool EffectNoise::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectNoise::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectNoise::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_Type, kTypeStrings[mType]);
parms.Write(KEY_Amp, mAmp);
@ -176,7 +176,7 @@ bool EffectNoise::GetAutomationParameters(CommandAutomationParameters & parms)
return true;
}
bool EffectNoise::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectNoise::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyEnum(Type, wxArrayString(nTypes, kTypeStrings));
ReadAndVerifyDouble(Amp);

View File

@ -44,8 +44,8 @@ public:
unsigned GetAudioOutCount() override;
size_t ProcessBlock(float **inBlock, float **outBlock, size_t blockLen) override;
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -89,7 +89,7 @@ bool EffectNormalize::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectNormalize::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectNormalize::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_Level, mLevel);
parms.Write(KEY_ApplyGain, mGain);
@ -99,7 +99,7 @@ bool EffectNormalize::GetAutomationParameters(CommandAutomationParameters & parm
return true;
}
bool EffectNormalize::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectNormalize::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyDouble(Level);
ReadAndVerifyBool(ApplyGain);

View File

@ -43,8 +43,8 @@ public:
// EffectClientInterface implementation
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -127,7 +127,7 @@ bool EffectPaulstretch::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectPaulstretch::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectPaulstretch::GetAutomationParameters(CommandParameters & parms)
{
parms.WriteFloat(KEY_Amount, mAmount);
parms.WriteFloat(KEY_Time, mTime_resolution);
@ -135,7 +135,7 @@ bool EffectPaulstretch::GetAutomationParameters(CommandAutomationParameters & pa
return true;
}
bool EffectPaulstretch::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectPaulstretch::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyFloat(Amount);
ReadAndVerifyFloat(Time);

View File

@ -37,8 +37,8 @@ public:
// EffectClientInterface implementation
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -204,7 +204,7 @@ bool EffectPhaser::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectPhaser::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectPhaser::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_Stages, mStages);
parms.Write(KEY_DryWet, mDryWet);
@ -217,7 +217,7 @@ bool EffectPhaser::GetAutomationParameters(CommandAutomationParameters & parms)
return true;
}
bool EffectPhaser::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectPhaser::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyInt(Stages);
ReadAndVerifyInt(DryWet);

View File

@ -75,8 +75,8 @@ public:
float **outbuf,
size_t numSamples) override;
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -85,14 +85,14 @@ bool EffectRepeat::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectRepeat::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectRepeat::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_Count, repeatCount);
return true;
}
bool EffectRepeat::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectRepeat::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyInt(Count);

View File

@ -41,8 +41,8 @@ public:
// EffectClientInterface implementation
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -283,7 +283,7 @@ bool EffectReverb::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectReverb::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectReverb::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_RoomSize, mParams.mRoomSize);
parms.Write(KEY_PreDelay, mParams.mPreDelay);
@ -299,7 +299,7 @@ bool EffectReverb::GetAutomationParameters(CommandAutomationParameters & parms)
return true;
}
bool EffectReverb::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectReverb::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyDouble(RoomSize);
ReadAndVerifyDouble(PreDelay);

View File

@ -64,8 +64,8 @@ public:
bool ProcessFinalize() override;
size_t ProcessBlock(float **inBlock, float **outBlock, size_t blockLen) override;
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
wxArrayString GetFactoryPresets() override;
bool LoadFactoryPreset(int id) override;

View File

@ -252,7 +252,7 @@ bool EffectScienFilter::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectScienFilter::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectScienFilter::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_Type, kTypeStrings[mFilterType]);
parms.Write(KEY_Subtype, kSubTypeStrings[mFilterSubtype]);
@ -264,7 +264,7 @@ bool EffectScienFilter::GetAutomationParameters(CommandAutomationParameters & pa
return true;
}
bool EffectScienFilter::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectScienFilter::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyEnum(Type, wxArrayString(nTypes, kTypeStrings));
ReadAndVerifyEnum(Subtype, wxArrayString(nSubTypes, kSubTypeStrings));

View File

@ -58,8 +58,8 @@ public:
bool ProcessInitialize(sampleCount totalLen, ChannelNames chanMap = NULL) override;
size_t ProcessBlock(float **inBlock, float **outBlock, size_t blockLen) override;
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -122,7 +122,7 @@ bool EffectTimeScale::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectTimeScale::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectTimeScale::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_RatePercentStart, m_RatePercentChangeStart);
parms.Write(KEY_RatePercentEnd, m_RatePercentChangeEnd);
@ -134,7 +134,7 @@ bool EffectTimeScale::GetAutomationParameters(CommandAutomationParameters & parm
return true;
}
bool EffectTimeScale::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectTimeScale::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyDouble(RatePercentStart);
ReadAndVerifyDouble(RatePercentEnd);

View File

@ -46,8 +46,8 @@ public:
// EffectClientInterface implementation
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -280,7 +280,7 @@ bool EffectToneGen::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectToneGen::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectToneGen::GetAutomationParameters(CommandParameters & parms)
{
if (mChirp)
{
@ -301,7 +301,7 @@ bool EffectToneGen::GetAutomationParameters(CommandAutomationParameters & parms)
return true;
}
bool EffectToneGen::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectToneGen::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyEnum(Waveform, wxArrayString(nWaveforms, kWaveStrings));
ReadAndVerifyEnum(Interp, wxArrayString(nInterpolations, kInterStrings));

View File

@ -47,8 +47,8 @@ public:
bool ProcessInitialize(sampleCount totalLen, ChannelNames chanMap = NULL) override;
size_t ProcessBlock(float **inBlock, float **outBlock, size_t blockLen) override;
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -148,7 +148,7 @@ bool EffectTruncSilence::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectTruncSilence::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectTruncSilence::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_DbIndex, Enums::DbChoices[mTruncDbChoiceIndex]);
parms.Write(KEY_ActIndex, kActionStrings[mActionIndex]);
@ -160,7 +160,7 @@ bool EffectTruncSilence::GetAutomationParameters(CommandAutomationParameters & p
return true;
}
bool EffectTruncSilence::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectTruncSilence::SetAutomationParameters(CommandParameters & parms)
{
wxArrayString actions(nActions, kActionStrings);
actions.Insert(wxT("0"), 0); // Compatible with 2.1.0 and before

View File

@ -52,8 +52,8 @@ public:
// EffectClientInterface implementation
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -1631,7 +1631,7 @@ bool VSTEffect::ShowInterface(wxWindow *parent, bool forceModal)
return res;
}
bool VSTEffect::GetAutomationParameters(CommandAutomationParameters & parms)
bool VSTEffect::GetAutomationParameters(CommandParameters & parms)
{
for (int i = 0; i < mAEffect->numParams; i++)
{
@ -1651,7 +1651,7 @@ bool VSTEffect::GetAutomationParameters(CommandAutomationParameters & parms)
return true;
}
bool VSTEffect::SetAutomationParameters(CommandAutomationParameters & parms)
bool VSTEffect::SetAutomationParameters(CommandParameters & parms)
{
callDispatcher(effBeginSetProgram, 0, 0, NULL, 0.0);
for (int i = 0; i < mAEffect->numParams; i++)
@ -2335,7 +2335,7 @@ bool VSTEffect::LoadParameters(const wxString & group)
return false;
}
CommandAutomationParameters eap;
CommandParameters eap;
if (!eap.SetParameters(parms))
{
return false;
@ -2363,7 +2363,7 @@ bool VSTEffect::SaveParameters(const wxString & group)
return true;
}
CommandAutomationParameters eap;
CommandParameters eap;
if (!GetAutomationParameters(eap))
{
return false;

View File

@ -138,8 +138,8 @@ class VSTEffect final : public wxEvtHandler,
bool ShowInterface(wxWindow *parent, bool forceModal = false) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
bool LoadUserPreset(const wxString & name) override;
bool SaveUserPreset(const wxString & name) override;

View File

@ -196,7 +196,7 @@ bool EffectWahwah::DefineParams( ShuttleParams & S ){
return true;
}
bool EffectWahwah::GetAutomationParameters(CommandAutomationParameters & parms)
bool EffectWahwah::GetAutomationParameters(CommandParameters & parms)
{
parms.Write(KEY_Freq, mFreq);
parms.Write(KEY_Phase, mPhase);
@ -208,7 +208,7 @@ bool EffectWahwah::GetAutomationParameters(CommandAutomationParameters & parms)
return true;
}
bool EffectWahwah::SetAutomationParameters(CommandAutomationParameters & parms)
bool EffectWahwah::SetAutomationParameters(CommandParameters & parms)
{
ReadAndVerifyDouble(Freq);
ReadAndVerifyDouble(Phase);

View File

@ -72,8 +72,8 @@ public:
float **outbuf,
size_t numSamples) override;
bool DefineParams( ShuttleParams & S ) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -1477,7 +1477,7 @@ bool AudioUnitEffect::ShowInterface(wxWindow *parent, bool forceModal)
return res;
}
bool AudioUnitEffect::GetAutomationParameters(CommandAutomationParameters & parms)
bool AudioUnitEffect::GetAutomationParameters(CommandParameters & parms)
{
OSStatus result;
UInt32 dataSize;
@ -1550,7 +1550,7 @@ bool AudioUnitEffect::GetAutomationParameters(CommandAutomationParameters & parm
return true;
}
bool AudioUnitEffect::SetAutomationParameters(CommandAutomationParameters & parms)
bool AudioUnitEffect::SetAutomationParameters(CommandParameters & parms)
{
OSStatus result;
UInt32 dataSize;
@ -1895,7 +1895,7 @@ bool AudioUnitEffect::LoadParameters(const wxString & group)
return false;
}
CommandAutomationParameters eap;
CommandParameters eap;
if (!eap.SetParameters(parms))
{
return false;
@ -1906,7 +1906,7 @@ bool AudioUnitEffect::LoadParameters(const wxString & group)
bool AudioUnitEffect::SaveParameters(const wxString & group)
{
CommandAutomationParameters eap;
CommandParameters eap;
if (!GetAutomationParameters(eap))
{
return false;

View File

@ -104,8 +104,8 @@ public:
bool ShowInterface(wxWindow *parent, bool forceModal = false) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
bool LoadUserPreset(const wxString & name) override;
bool SaveUserPreset(const wxString & name) override;

View File

@ -1076,7 +1076,7 @@ bool LadspaEffect::ShowInterface(wxWindow *parent, bool forceModal)
return res;
}
bool LadspaEffect::GetAutomationParameters(CommandAutomationParameters & parms)
bool LadspaEffect::GetAutomationParameters(CommandParameters & parms)
{
for (unsigned long p = 0; p < mData->PortCount; p++)
{
@ -1094,7 +1094,7 @@ bool LadspaEffect::GetAutomationParameters(CommandAutomationParameters & parms)
return true;
}
bool LadspaEffect::SetAutomationParameters(CommandAutomationParameters & parms)
bool LadspaEffect::SetAutomationParameters(CommandParameters & parms)
{
for (unsigned long p = 0; p < mData->PortCount; p++)
{
@ -1604,7 +1604,7 @@ bool LadspaEffect::LoadParameters(const wxString & group)
return false;
}
CommandAutomationParameters eap;
CommandParameters eap;
if (!eap.SetParameters(parms))
{
return false;
@ -1615,7 +1615,7 @@ bool LadspaEffect::LoadParameters(const wxString & group)
bool LadspaEffect::SaveParameters(const wxString & group)
{
CommandAutomationParameters eap;
CommandParameters eap;
if (!GetAutomationParameters(eap))
{
return false;

View File

@ -99,8 +99,8 @@ public:
bool ShowInterface(wxWindow *parent, bool forceModal = false) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
bool LoadUserPreset(const wxString & name) override;
bool SaveUserPreset(const wxString & name) override;

View File

@ -953,7 +953,7 @@ bool LV2Effect::ShowInterface(wxWindow *parent, bool forceModal)
return res;
}
bool LV2Effect::GetAutomationParameters(CommandAutomationParameters & parms)
bool LV2Effect::GetAutomationParameters(CommandParameters & parms)
{
for (size_t p = 0, cnt = mControls.size(); p < cnt; p++)
{
@ -969,7 +969,7 @@ bool LV2Effect::GetAutomationParameters(CommandAutomationParameters & parms)
return true;
}
bool LV2Effect::SetAutomationParameters(CommandAutomationParameters & parms)
bool LV2Effect::SetAutomationParameters(CommandParameters & parms)
{
// First pass validates values
for (size_t p = 0, cnt = mControls.size(); p < cnt; p++)
@ -1261,7 +1261,7 @@ bool LV2Effect::LoadParameters(const wxString & group)
return false;
}
CommandAutomationParameters eap;
CommandParameters eap;
if (!eap.SetParameters(parms))
{
return false;
@ -1272,7 +1272,7 @@ bool LV2Effect::LoadParameters(const wxString & group)
bool LV2Effect::SaveParameters(const wxString & group)
{
CommandAutomationParameters eap;
CommandParameters eap;
if (!GetAutomationParameters(eap))
{
return false;

View File

@ -162,8 +162,8 @@ public:
bool ShowInterface(wxWindow *parent, bool forceModal = false) override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// EffectUIClientInterface implementation

View File

@ -279,7 +279,7 @@ bool NyquistEffect::IsDefault()
// EffectClientInterface implementation
bool NyquistEffect::GetAutomationParameters(CommandAutomationParameters & parms)
bool NyquistEffect::GetAutomationParameters(CommandParameters & parms)
{
if (mExternal)
{
@ -326,7 +326,7 @@ bool NyquistEffect::GetAutomationParameters(CommandAutomationParameters & parms)
return true;
}
bool NyquistEffect::SetAutomationParameters(CommandAutomationParameters & parms)
bool NyquistEffect::SetAutomationParameters(CommandParameters & parms)
{
if (mExternal)
{

View File

@ -97,8 +97,8 @@ public:
// EffectClientInterface implementation
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation

View File

@ -158,7 +158,7 @@ unsigned VampEffect::GetAudioInCount()
return mPlugin->getMaxChannelCount();
}
bool VampEffect::GetAutomationParameters(CommandAutomationParameters & parms)
bool VampEffect::GetAutomationParameters(CommandParameters & parms)
{
for (size_t p = 0, cnt = mParameters.size(); p < cnt; p++)
{
@ -204,7 +204,7 @@ bool VampEffect::GetAutomationParameters(CommandAutomationParameters & parms)
return true;
}
bool VampEffect::SetAutomationParameters(CommandAutomationParameters & parms)
bool VampEffect::SetAutomationParameters(CommandParameters & parms)
{
// First pass verifies values
for (size_t p = 0, cnt = mParameters.size(); p < cnt; p++)

View File

@ -62,8 +62,8 @@ public:
// EffectClientInterface implementation
unsigned GetAudioInCount() override;
bool GetAutomationParameters(CommandAutomationParameters & parms) override;
bool SetAutomationParameters(CommandAutomationParameters & parms) override;
bool GetAutomationParameters(CommandParameters & parms) override;
bool SetAutomationParameters(CommandParameters & parms) override;
// Effect implementation