Version: 2022.2
言語: 日本語
public float highpassResonanceQ ;

説明

どのくらいフィルターの自己共振を減衰させるかを決定します。

Higher Highpass resonance Q indicates a lower rate of energy loss i.e. the oscillations die out more slowly.

ハイパス共振 Q の値は 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); } }