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()。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。