audiochorusfilter.wetmix3 效果声混合3

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

摘要: audiochorusfilter.wetmix3 效果声混合3varwetmix3: floatdescription描述volume of 3rd chorus tap. this tap is 90 degrees out of phase of the second tap. 0.0 to 1.0. default = 0.5.第三个和声节拍的音量。这 ...

audiochorusfilter.wetmix3 效果声混合3

varwetmix3: float

description描述

volume of 3rd chorus tap. this tap is 90 degrees out of phase of the second tap. 0.0 to 1.0. default = 0.5.

第三个和声节拍的音量。这个节拍是第二个节拍的相位90度输出。0.0~1.0,默认=0.5。

其实就是,调整已加入效果的声音信号的比例

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void update() {

getcomponent().wetmix1 =mathf.sin(time.time) * 0.5f + 0.5f;

getcomponent().wetmix2 =mathf.cos(time.time) * 0.5f + 0.5f;

getcomponent().wetmix3 =random.range(0.0f, 1.0f);

}

}

// produce random mixes with the chorus filter.

//用合声滤波器,产生随机混合

@scriptrequirecomponent(audiosource)

@scriptrequirecomponent(audiochorusfilter)

function update() {

getcomponent(audiochorusfilter).wetmix1 =mathf.sin(time.time)*0.5 + 0.5;

getcomponent(audiochorusfilter).wetmix2 =mathf.cos(time.time)*0.5 + 0.5;

getcomponent(audiochorusfilter).wetmix3 =random.range(0.0,1.0);;

}

相关阅读

文章点评
相关文章