bool EffectChangePitch::GetAutomationParameters(CommandParameters & parms) { parms.Write(KEY_Percentage, m_dPercentChange); parms.Write(KEY_UseSBSMS, mUseSBSMS); return true; }
bool EffectNoise::GetAutomationParameters(CommandParameters & parms) { parms.Write(KEY_Type, kTypeStrings[mType].Internal()); parms.Write(KEY_Amp, mAmp); return true; }
bool EffectDtmf::GetAutomationParameters(CommandParameters & parms) { parms.Write(KEY_Sequence, dtmfSequence); parms.Write(KEY_DutyCycle, dtmfDutyCycle); parms.Write(KEY_Amplitude, dtmfAmplitude); return true; }
bool EffectBassTreble::GetAutomationParameters(CommandParameters & parms) { parms.Write(KEY_Bass, mBass); parms.Write(KEY_Treble, mTreble); parms.Write(KEY_Gain, mGain); parms.Write(KEY_Link, mLink); return true; }
bool EffectWahwah::GetAutomationParameters(CommandParameters & parms) { parms.Write(KEY_Freq, mFreq); parms.Write(KEY_Phase, mPhase); parms.Write(KEY_Depth, mDepth); parms.Write(KEY_Res, mRes); parms.Write(KEY_FreqOfs, mFreqOfs); parms.Write(KEY_OutGain, mOutGain); return true; }
bool EffectScienFilter::GetAutomationParameters(CommandParameters & parms) { parms.Write(KEY_Type, kTypeStrings[mFilterType].Internal()); parms.Write(KEY_Subtype, kSubTypeStrings[mFilterSubtype].Internal()); parms.Write(KEY_Order, mOrder); parms.WriteFloat(KEY_Cutoff, mCutoff); parms.WriteFloat(KEY_Passband, mRipple); parms.WriteFloat(KEY_Stopband, mStopbandRipple); return true; }
bool VampEffect::GetAutomationParameters(CommandParameters & parms) { for (size_t p = 0, paramCount = mParameters.size(); p < paramCount; p++) { wxString key = wxString::FromUTF8(mParameters[p].identifier.c_str()); float value = mPlugin->getParameter(mParameters[p].identifier); float lower = mParameters[p].minValue; float upper = mParameters[p].maxValue; if (mParameters[p].isQuantized && mParameters[p].quantizeStep == 1.0 && lower == 0.0 && upper == 1.0) { bool val = value > 0.5; parms.Write(key, val); } else if (mParameters[p].isQuantized && mParameters[p].quantizeStep == 1.0 && !mParameters[p].valueNames.empty()) { std::vector<EnumValueSymbol> choices; int val = 0; for (size_t i = 0, choiceCount = mParameters[p].valueNames.size(); i < choiceCount; i++) { wxString choice = wxString::FromUTF8(mParameters[p].valueNames[i].c_str()); if (size_t(value - mParameters[p].minValue + 0.5) == i) { val = i; } choices.push_back(choice); } parms.WriteEnum(key, val, choices.data(), choices.size()); } else { parms.Write(key, value); } } return true; }
bool EffectAutoDuck::GetAutomationParameters(CommandParameters & parms) { parms.Write(KEY_DuckAmountDb, mDuckAmountDb); parms.Write(KEY_InnerFadeDownLen, mInnerFadeDownLen); parms.Write(KEY_InnerFadeUpLen, mInnerFadeUpLen); parms.Write(KEY_OuterFadeDownLen, mOuterFadeDownLen); parms.Write(KEY_OuterFadeUpLen, mOuterFadeUpLen); parms.Write(KEY_ThresholdDb, mThresholdDb); parms.Write(KEY_MaximumPause, mMaximumPause); return true; }
bool EffectTruncSilence::GetAutomationParameters(CommandParameters & parms) { parms.Write(KEY_Threshold, mThresholdDB); parms.Write(KEY_ActIndex, kActionStrings[mActionIndex].Internal()); parms.Write(KEY_Minimum, mInitialAllowedSilence); parms.Write(KEY_Truncate, mTruncLongestAllowedSilence); parms.Write(KEY_Compress, mSilenceCompressPercent); parms.Write(KEY_Independent, mbIndependent); return true; }
bool EffectChangeSpeed::GetAutomationParameters(CommandParameters & parms) { parms.Write(KEY_Percentage, m_PercentChange); return true; }
bool EffectRepeat::GetAutomationParameters(CommandParameters & parms) { parms.Write(KEY_Count, repeatCount); return true; }