AudioHighPassFilter.highpassResonaceQ 高通共振质量

var highpassResonaceQ : float

Description描述

Determines how much the filter's self-resonance isdampened.

定义了滤波器的自共振衰减多少。

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

较高的高通共振质量表示一个能量损失率较低,振动消失更慢。

Highpass resonance Q value goes from 1.0 to 10.0. Default = 1.0.

高通共振质量值从1.0~10.0。默认=1.0。

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	void Update() {

		GetComponent<AudioHighPassFilter>().lowpassResonaceQ = Mathf.Sin(Time.time) * 5 + 5;

	}

}
// 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.

//跟随Sinus函数移动高通共振质量系数从0~10,附加到一个带有HighPassFilter的音频源

@script RequireComponent(AudioSource)

@script RequireComponent(AudioHighPassFilter)



function Update() {

	GetComponent(AudioHighPassFilter).lowpassResonaceQ = (Mathf.Sin(Time.time)*5 + 5);

}
Page last updated: 2011-1-9