當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


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