Processing, 类BandPass
中的set()
用法介绍。
用法
.set(freq, bw)
参数
freq
(float)
设置频率bw
(float)
设置带宽
返回
void
说明
使用一种方法设置滤波器的频率和带宽。
例子
import processing.sound.*;
WhiteNoise noise;
BandPass bandPass;
void setup() {
size(640,360);
background(255);
// Create a noise generator and a bandpass filter
noise = new WhiteNoise(this);
bandPass = new BandPass(this);
// start the noise generator and the filter
noise.play(0.5);
bandPass.process(noise);
}
void draw() {
}
void mousePressed() {
float freq=1000;
float bw=80;
bandPass.set(freq, bw);
}
相关用法
- Processing BandPass.stop()用法及代码示例
- Processing BandPass.bw()用法及代码示例
- Processing BandPass.freq()用法及代码示例
- Processing BandPass.process()用法及代码示例
- Processing BandPass用法及代码示例
- Processing BrownNoise.play()用法及代码示例
- Processing BrownNoise.pan()用法及代码示例
- Processing BrownNoise.add()用法及代码示例
- Processing BufferedReader.readLine()用法及代码示例
- Processing BrownNoise用法及代码示例
- Processing BrownNoise.set()用法及代码示例
- Processing BufferedReader用法及代码示例
- Processing BrownNoise.amp()用法及代码示例
- Processing BrownNoise.stop()用法及代码示例
- 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.org大神的英文原创作品 BandPass.set()。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。