bool EffectPhaser::SetAutomationParameters(EffectAutomationParameters & parms) { ReadAndVerifyInt(Stages); ReadAndVerifyInt(DryWet); ReadAndVerifyDouble(Freq); ReadAndVerifyDouble(Phase); ReadAndVerifyInt(Depth); ReadAndVerifyInt(Feedback); ReadAndVerifyDouble(OutGain); if (Stages & 1) // must be even, but don't complain about it { Stages &= ~1; } mFreq = Freq; mFeedback = Feedback; mStages = Stages; mDryWet = DryWet; mDepth = Depth; mPhase = Phase; mOutGain = OutGain; return true; }
bool EffectRepeat::SetAutomationParameters(EffectAutomationParameters & parms) { ReadAndVerifyInt(Count); repeatCount = Count; return true; }
bool EffectWahwah::SetAutomationParameters(CommandParameters & parms) { ReadAndVerifyDouble(Freq); ReadAndVerifyDouble(Phase); ReadAndVerifyInt(Depth); ReadAndVerifyDouble(Res); ReadAndVerifyInt(FreqOfs); ReadAndVerifyDouble(OutGain); mFreq = Freq; mPhase = Phase; mDepth = Depth; mRes = Res; mFreqOfs = FreqOfs; mOutGain = OutGain; return true; }
bool EffectDistortion::SetAutomationParameters(EffectAutomationParameters & parms) { ReadAndVerifyEnum(TableTypeIndx, wxArrayString(kNumTableTypes, kTableTypeStrings)); ReadAndVerifyBool(DCBlock); ReadAndVerifyDouble(Threshold_dB); ReadAndVerifyDouble(NoiseFloor); ReadAndVerifyDouble(Param1); ReadAndVerifyDouble(Param2); ReadAndVerifyInt(Repeats); mParams.mTableChoiceIndx = TableTypeIndx; mParams.mDCBlock = DCBlock; mParams.mThreshold_dB = Threshold_dB; mParams.mNoiseFloor = NoiseFloor; mParams.mParam1 = Param1; mParams.mParam2 = Param2; mParams.mRepeats = Repeats; return true; }
bool EffectScienFilter::SetAutomationParameters(EffectAutomationParameters & parms) { ReadAndVerifyEnum(Type, wxArrayString(kNumTypes, kTypeStrings)); ReadAndVerifyEnum(Subtype, wxArrayString(kNumSubTypes, kSubTypeStrings)); ReadAndVerifyInt(Order); ReadAndVerifyFloat(Cutoff); ReadAndVerifyFloat(Passband); ReadAndVerifyFloat(Stopband); mFilterType = Type; mFilterSubtype = Subtype; mOrder = Order; mCutoff = Cutoff; mRipple = Passband; mStopbandRipple = Stopband; mOrderIndex = mOrder - 1; CalcFilter(); return true; }