Closed GoogleCodeExporter closed 8 years ago
以下のコードを実行すると、Oscのサービス間隔がプリント�� �れるが、その数字を見 ている限りではOsc.serviceIntervalで指定した間隔の倍(例:30�� �指定すると60) になっているように思われる。 import processing.funnel.*; Gainer gainer; Osc osc; float last; void setup() { size(200, 200); frameRate(30); gainer= new Gainer(this, Gainer.MODE1); gainer.autoUpdate = true; osc = new Osc(this, Osc.SIN, 1.0, 0); osc.serviceInterval = 30; osc.addEventListener(Osc.UPDATE, "oscUpdated"); osc.reset(); osc.start(); last = millis(); } void draw() { background(100); } void oscUpdated(Osc osc) { float now = millis(); gainer.analogOutput(0).value = osc.value; println("interval: " + (now - last)); last = now; }
Original issue reported on code.google.com by kotob...@gmail.com on 8 Jul 2008 at 7:40
kotob...@gmail.com
fixed in r373
Original comment by kotob...@gmail.com on 9 Jul 2008 at 1:05
Original issue reported on code.google.com by
kotob...@gmail.com
on 8 Jul 2008 at 7:40