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