确定滤波器的自共振衰减程度。
高通共振品质越高表明能量损失速度越慢,
即振荡消失得越慢。
高通共振品质值(范围从 1.0 至 10.0)。默认值为 1.0。
using UnityEngine;
[RequireComponent(typeof(AudioSource))] [RequireComponent(typeof(AudioHighPassFilter))] public class Example : MonoBehaviour { // Moves the Highpass Resonance Quality Factor from 0 to 10 following a Sinus function // Attach this to an audio source with a HighPassFilter to listen it working.
void Update() { GetComponent<AudioHighPassFilter>().highpassResonanceQ = (Mathf.Sin(Time.time) * 5 + 5); } }