/// <summary> /// <para>Sets the Quality factor.</para> /// <para>Resonance if [low/high pass] <see cref="Filter" />.</para> /// <para>Bandwidth if [notch, peaking, band-pass] <see cref="Filter" />.</para> /// <para>Phase transition sharpness if [all-pass] <see cref="Filter" />.</para> /// <para>Unused if [low/high shelf] <see cref="Filter" />.</para> /// <para><c>0.1</c> to <c>10.0</c>. Default = <c>0.707</c>.</para> /// </summary> /// <param name="band">The band to apply quality factor to.</param> /// <param name="quality">The quality factor.</param> public void SetQuality(Band band, float quality) { var index = (int)band * 4 + 2; var clamped = quality.Clamp(0.1f, 10.0f); SetParameterFloat(index, clamped); QualityChanged?.Invoke(this, new MultiBandEqEventArgs(index, band, clamped, 0.1f, 10.0f)); }
private void QualityComboBox_SelectionChanged(object sender, object e) { var item = e as Tuple <int, string>; if (item != null) { QualityChanged?.Invoke(this, item.Item1); } }