disegnovitruviano / funnel

Automatically exported from code.google.com/p/funnel
Other
0 stars 0 forks source link

Osc.SQUARE stops at 1.0 instead of 0.0 #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
r373
以下のコードをProcessingのスケッチとして実行し、ウィンド�
��上でマウスをク
リックする。

import processing.funnel.*;

Gainer gainer;
Osc osc;

void setup()
{
  size(200, 200);
  frameRate(30);

  gainer= new Gainer(this, Gainer.MODE1);
  gainer.autoUpdate = true;

  osc = new Osc(this, Osc.SQUARE, 1.0, 1);
  osc.serviceInterval = 50;
  osc.addEventListener(Osc.UPDATE, "oscUpdated");
}

void draw()
{
  background(100);
}

void oscUpdated(Osc osc)
{
  gainer.led().value = osc.value;
  println("osc: " + osc.value);
}

void mousePressed()
{
  gainer.led().value = 0;
  osc.reset();
  osc.start();
}

What is the expected output? What do you see instead?
期待する動作はLEDが1回点灯して終了だが、実際には最後にL
EDが点灯したままに
なって終了する。printlnの値を確認しても1.0→0.0に変化した�
��最後が1.0になって
終了している。サービス間隔を変更しても結果は同じ。

Original issue reported on code.google.com by kotob...@gmail.com on 9 Jul 2008 at 1:19

GoogleCodeExporter commented 9 years ago
fixed in r381

Original comment by kotob...@gmail.com on 21 Jul 2008 at 1:01