当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


Processing BandPass.process()用法及代码示例


Processing, 类BandPass中的process()用法介绍。

用法

  • .process(input)

参数

  • input (SoundObject) 输入音源

返回

  • 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() {
}

相关用法


注:本文由纯净天空筛选整理自processing.org大神的英文原创作品 BandPass.process()。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。