Processing, 类Delay
中的set()
用法介绍。
用法
.set(delayTime, feedback)
参数
delayTime
(float)
最大延迟时间(以秒为单位)。feedback
(float)
反馈量为浮点数
返回
void
说明
一次设置延迟时间和反馈值。
例子
import processing.sound.*;
AudioIn in;
Delay delay;
void setup() {
size(640,360);
background(255);
// create the input stream
in = new AudioIn(this, 0);
// create a delay effect
delay = new Delay(this);
// start the input stream
in.play();
// Patch the delay
delay.process(in, 5);
delay.time(0.5);
delay.feedback(0.1);
}
void draw() {
}
void mousePressed() {
float time=0.2;
float feedback=0.3;
delay.set(time, feedback);
}
相关用法
- Processing Delay.stop()用法及代码示例
- Processing Delay.feedback()用法及代码示例
- Processing Delay.time()用法及代码示例
- Processing Delay.process()用法及代码示例
- Processing Delay用法及代码示例
- Processing FFT用法及代码示例
- Processing SawOsc.pan()用法及代码示例
- Processing FloatDict用法及代码示例
- Processing FFT.stop()用法及代码示例
- Processing join()用法及代码示例
- Processing () (parentheses)用法及代码示例
- Processing Pulse用法及代码示例
- Processing PShader用法及代码示例
- Processing PVector.set()用法及代码示例
- Processing FloatDict.sortKeysReverse()用法及代码示例
- Processing texture()用法及代码示例
- Processing IntDict.add()用法及代码示例
- Processing PShape.enableStyle()用法及代码示例
- Processing FloatDict.sub()用法及代码示例
- Processing String用法及代码示例
- Processing PImage.pixels[]用法及代码示例
- Processing vertex()用法及代码示例
- Processing PVector.mag()用法及代码示例
- Processing thread()用法及代码示例
- Processing Capture.stop()用法及代码示例
注:本文由纯净天空筛选整理自processing.org大神的英文原创作品 Delay.set()。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。