Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Osc.IMPULSE seems to be broken #7

Closed
GoogleCodeExporter opened this issue Jan 3, 2016 · 2 comments
Closed

Osc.IMPULSE seems to be broken #7

GoogleCodeExporter opened this issue Jan 3, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
r373
Processing 
0135に以下のコードを入力し、スケッチを起動したらウィン�
��ウ上でマ
ウスをクリックする。

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.IMPULSE, 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回点灯→消灯だが、実際には点�
��したままになる。
printlnされる値をみても1.0のままになっている。

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

@GoogleCodeExporter
Copy link
Author

fixed in r381

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

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant