audiohighpassfilter.highpassresonaceq 高通共振质量

2015-1-3 05:07| 发布者: 杨炎| 查看: 1807| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本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);

}

相关阅读

文章点评
相关文章