// see Hv_testing_AudioLib.Parameter for definitions public float GetFloatParameter(Hv_testing_AudioLib.Parameter param) { switch (param) { case Parameter.Lfo_rate: return(lfo_rate); default: return(0.0f); } }
public void SetFloatParameter(Hv_testing_AudioLib.Parameter param, float x) { switch (param) { case Parameter.Lfo_rate: { x = Mathf.Clamp(x, 0.0f, 15.0f); lfo_rate = x; break; } default: return; } if (IsInstantiated()) { _context.SendFloatToReceiver((uint)param, x); } }