dennisppaul / wellen

wellen is a framework for exploring and teaching generative music making and algorithmic compositions.
GNU General Public License v3.0
22 stars 2 forks source link

noteOn with duration fails #17

Closed jsr606 closed 3 years ago

jsr606 commented 3 years ago

Tone.note_on(48, 127, 0.5f) yields NullPointerException

example code not working

import wellen.*;
int i = 0;

void setup() {
  Wellen.dumpMidiOutputDevices();
  Tone.start("midi", "BeatStep [hw:1,0,0]");
}

void draw() {
  Tone.instrument(1);
  Tone.note_on(48+i,127,0.5f);
  i = i + 3;
  i = 1 % 12;
  delay(100);
}
dennisppaul commented 3 years ago

this bug is now fixed for MIDI context … for OSC it is however still not working.

dennisppaul commented 3 years ago

added support for OSC tone engine as well.