audiohighpassfilter.highpassresonaceq 高通共振质量

2015-1-3 02:27| 发布者: 杨炎| 查看: 2054| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: audiohighpassfilter.highpassresonaceq 高通共振质量varhighpassresonaceq: floatdescription描述determines how much the filter's self-resonance isdampened.定义了滤波器的自共振衰减多少。higher highpass res ...

audiohighpassfilter.highpassresonaceq 高通共振质量

varhighpassresonaceq: 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。

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 highpassfilter to listen it working.

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

@scriptrequirecomponent(audiosource)

@scriptrequirecomponent(audiohighpassfilter)

function update() {

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

}

相关阅读

文章点评
相关文章