Processing, 類BandPass
中的freq()
用法介紹。
用法
.freq(freq)
參數
freq
(float)
截止頻率在 0 到 20000 之間
返回
void
說明
設置濾波器的截止頻率。
例子
import processing.sound.*;
WhiteNoise noise;
BandPass bandPass;
float freq=2500;
void setup() {
size(640,360);
background(255);
// Create a noise generator and a highpass filter
noise = new WhiteNoise(this);
bandPass = new BandPass(this);
noise.play(0.5);
bandPass.process(noise);
// Change the cutoff frequency of the filter
bandPass.freq(freq);
}
void draw() {
}
相關用法
- Processing BandPass.bw()用法及代碼示例
- Processing BandPass.set()用法及代碼示例
- Processing BandPass.stop()用法及代碼示例
- 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.freq()。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。