//---------------------------------------------------------------------------- //gets values for parameter display - see 'AudioEffect.hpp' for others (float2string, //Hz2string etc.) //---------------------------------------------------------------------------- void AmplitudeImposer::getParameterDisplay(long index, char *text) { switch(index) { case kDepth: dB2string(fDepth, text,30); break; case kThreshold: dB2string(fThreshold, text,30); break; } }
//----------------------------------------------------------------------------------------- void e6::getParameterDisplay (VstInt32 index, char* text) { if ( index < nParams ) { dB2string (params[ index ].value, text, kVstMaxParamStrLen); } }
//----------------------------------------------------------------------------------------- void FBdelay::getParameterDisplay (VstInt32 index, char* text) { switch(index) { case 0: dB2string (gain, text, kVstMaxParamStrLen); break; case 1: int2string (dly, text, kVstMaxParamStrLen); break; case 2: int2string (99 * i2, text, kVstMaxParamStrLen); break; } }
//------------------------------------------------------------------------ void ADelay::getParameterDisplay (VstInt32 index, char *text) { switch (index) { case kDelay : int2string (delay, text, kVstMaxParamStrLen); break; case kFeedBack : float2string (fFeedBack, text, kVstMaxParamStrLen); break; case kOut : dB2string (fOut, text, kVstMaxParamStrLen); break; } }
//------------------------------------------------------------------------ void ADelay::getParameterDisplay (VstInt32 index, char *text) { switch (index) { case kDelay : int2string (delay, text, kVstMaxParamStrLen); break; case kFeedBack : float2string (fFeedBack, text, kVstMaxParamStrLen); break; case kOut : dB2string (fOut, text, kVstMaxParamStrLen); break; case kTest : dB2string (fTest, text, kVstMaxParamStrLen); break; case kBass : dB2string (fBass, text, kVstMaxParamStrLen); break; case kMid : dB2string (fMid, text, kVstMaxParamStrLen); break; case kTreb : dB2string (fTreb, text, kVstMaxParamStrLen); break; case kQuantize : dB2string (fQuant, text, kVstMaxParamStrLen); break; case kFreq : dB2string (fFreq, text, kVstMaxParamStrLen); break; case kTrunc : dB2string (fTrunc, text, kVstMaxParamStrLen); break; } }
virtual void getParameterDisplay (VstInt32 index, char* text){ dB2string (fGain, text, kVstMaxParamStrLen); }
void Silence::getParameterDisplay(VstInt32 index, char* text) { dB2string(0, text, kVstMaxParamStrLen); }
void SorolletVSTi::getParameterDisplay(VstInt32 index, char* text) { text[0] = 0; switch (index) { case PARAM_VOLUME1: dB2string(fVolume1, text, kVstMaxParamStrLen); break; case PARAM_OCTAVE1: int2string(floatToOctave(fOctave1), text, kVstMaxParamStrLen); break; case PARAM_WAVE1: floatToWaveName(fWave1, text); break; case PARAM_PHASE1: float2string(fPhase1, text, kVstMaxParamStrLen); break; case PARAM_VOLUME2: dB2string(fVolume2, text, kVstMaxParamStrLen); break; case PARAM_OCTAVE2: int2string(floatToOctave(fOctave2), text, kVstMaxParamStrLen); break; case PARAM_WAVE2: floatToWaveName(fWave2, text); break; case PARAM_PHASE2: float2string(fPhase2, text, kVstMaxParamStrLen); break; case PARAM_WAVE_MIX_TYPE: floatToWaveMixTypeName(fWaveMixType, text); break; case PARAM_NOISE_AMOUNT: float2string(fNoiseAmount, text, kVstMaxParamStrLen); break; case PARAM_NOISE_MIX_TYPE: floatToNoiseMixTypeName(fNoiseMixType, text); break; case PARAM_AMP_ATTACK: formatTime(mSorolletVoice->getAmpADSR()->getAttackTime(), text); break; case PARAM_AMP_DECAY: formatTime(mSorolletVoice->getAmpADSR()->getDecayTime(), text); break; case PARAM_AMP_SUSTAIN: float2string(fAmpSustain, text, kVstMaxParamStrLen); break; case PARAM_AMP_RELEASE: formatTime(mSorolletVoice->getAmpADSR()->getReleaseTime(), text); break; case PARAM_AMP_TIME_SCALE: float2string(floatToEnvelopeScale(fAmpTimeScale), text, kVstMaxParamStrLen); break; case PARAM_AMP_MIN_VALUE: float2string(mSorolletVoice->getAmpADSR()->getDisplayMinValue(), text, kVstMaxParamStrLen); break; case PARAM_AMP_MAX_VALUE: float2string(mSorolletVoice->getAmpADSR()->getDisplayMaxValue(), text, kVstMaxParamStrLen); break; case PARAM_PITCH_ATTACK: formatTime(mSorolletVoice->getPitchADSR()->getAttackTime(), text); break; case PARAM_PITCH_DECAY: formatTime(mSorolletVoice->getPitchADSR()->getDecayTime(), text); break; case PARAM_PITCH_SUSTAIN: float2string(fPitchSustain, text, kVstMaxParamStrLen); break; case PARAM_PITCH_RELEASE: formatTime(mSorolletVoice->getPitchADSR()->getReleaseTime(), text); break; case PARAM_PITCH_TIME_SCALE: float2string(floatToEnvelopeScale(fPitchTimeScale), text, kVstMaxParamStrLen); break; case PARAM_PITCH_MIN_VALUE: float2string(mSorolletVoice->getPitchADSR()->getDisplayMinValue(), text, kVstMaxParamStrLen); break; case PARAM_PITCH_MAX_VALUE: float2string(mSorolletVoice->getPitchADSR()->getDisplayMaxValue(), text, kVstMaxParamStrLen); break; case PARAM_FILTER_TYPE: floatToFilterTypeName(fFilterType, text); break; case PARAM_FILTER_FREQUENCY: dB2string(mSorolletVoice->getFilterFrequencyDisplay(), text, kVstMaxParamStrLen); break; case PARAM_FILTER_RESONANCE: dB2string(mSorolletVoice->getFilterResonanceDisplay(), text, kVstMaxParamStrLen); break; case PARAM_SATURATE: float2string(fSaturate, text, kVstMaxParamStrLen); break; case PARAM_EQ_ACTIVE: if (fEQActive > 0.5f) { vst_strncpy(text, "on", kVstMaxParamStrLen); } else { vst_strncpy(text, "off", kVstMaxParamStrLen); } break; case PARAM_EQ_LOW_FREQUENCY: float2string(mSorolletVoice->getEQLowFrequencyDisplay(), text, kVstMaxParamStrLen); break; case PARAM_EQ_HIGH_FREQUENCY: float2string(mSorolletVoice->getEQHighFrequencyDisplay(), text, kVstMaxParamStrLen); break; case PARAM_EQ_LOW_GAIN: float2string(mSorolletVoice->getEQLowGainDisplay(), text, kVstMaxParamStrLen); break; case PARAM_EQ_MID_GAIN: float2string(mSorolletVoice->getEQMidGainDisplay(), text, kVstMaxParamStrLen); break; case PARAM_EQ_HI_GAIN: float2string(mSorolletVoice->getEQHiGainDisplay(), text, kVstMaxParamStrLen); break; } }
//----------------------------------------------------------------------------------------- void JackVST::getParameterDisplay (VstInt32 index, char *text) { dB2string (fGain, text, strlen(text)); }
//----------------------------------------------------------------------------------------- void JackVST::getParameterDisplay (long index, char *text) { dB2string (fGain, text); }
//----------------------------------------------------------------------------------------- void FormantPlugin::getParameterDisplay (VstInt32 index, char* text) { dB2string (params[index]->getValue(), text, kVstMaxParamStrLen); }