找回密碼
 注冊帳號

掃一掃,訪問微社區

audiohighpassfilter.highpassresonaceq 高通共振質量

2015-1-3 05:07| 發布者: 楊炎| 查看: 1945| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: audiolowpassfilter.lowpassresonaceq 低通共振質量varlowpassresonaceq: floatdescription描述determines how much the filter's self-resonance isdampened.定義了濾波器的自共振衰減多少。higher lowpass resonan ...

audiolowpassfilter.lowpassresonaceq 低通共振質量

varlowpassresonaceq: float

description描述

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

定義了濾波器的自共振衰減多少。

higher lowpass resonance q indicates a lower rate of energy loss i.e. the oscillations die out more slowly.

較高的低通共振質量表示一個能量損失率較低,振動消失更慢。

lowpass resonance q value goes from 1.0 to 10.0. default = 1.0.

低通共振質量值從1.0~10.0。默認=1.0。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void update() {

getcomponent().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 lowpassfilter to listen it working.

//跟隨sinus函數移動高通共振質量系數從0~10,附加到一個帶有lowpassfilter 的音頻

@scriptrequirecomponent(audiosource)

@scriptrequirecomponent(audiolowpassfilter)

function update() {

getcomponent(audiolowpassfilter).lowpassresonaceq = (mathf.sin(time.time)*5 + 5);

}

相關閱讀

文章點評
相關文章
女校游泳队彩金