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


Processing BandPass.stop()用法及代碼示例

Processing, 類BandPass中的stop()用法介紹。

用法

  • .stop()

返回

  • void

說明

停止過濾器。

例子

import processing.sound.*;
    
WhiteNoise noise;
BandPass bandPass;
    
float amp=0.0;
    
void setup() {
  size(640,360);
  background(255);
    
  // Create a noise generator and a bandpass filter
  noise = new WhiteNoise(this);
  bandPass = new BandPass(this);
    
  noise.play(0.5);
  bandPass.process(noise, 5000);
}
    
void draw() {
}
    
void mousePressed() {
    
  //stop the noise generator and the filter
  //noise.stop();
  bandPass.stop();
}
    

相關用法


注:本文由純淨天空篩選整理自processing.org大神的英文原創作品 BandPass.stop()。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。