We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have
FATAL EXCEPTION: Animation Thread java.lang.VerifyError: themidibus.MidiBus at processing.test.midisynth.midiSynth.setup(midiSynth.java:52) at processing.core.PApplet.handleDraw(Unknown Source) at processing.core.PGraphicsAndroid2D.requestDraw(Unknown Source) at processing.core.PApplet.run(Unknown Source) at java.lang.Thread.run(Thread.java:1019)
with that code: /** import themidibus.*;
Maxim maxim; WavetableSynth waveform; MidiBus myBus;
String[] tabl; MultiSlider UserWaveTable; Slider dt; float[] wavetable=new float[514];
void setup(){ maxim=new Maxim(this); size(600,800); frameRate(32);
waveform= maxim.createWavetableSynth(128); background(166,166,133,55);
tabl=MidiBus.availableInputs();
if(tabl.length==0){ myBus=new MidiBus(this,-1,"Java Sound Synthesizer"); } else{ myBus=new MidiBus(this,tabl[0],"Java Sound Synthesizer"); }
fill(255); dt = new Slider("delay time", 1, 0, 100, 50, 10, 200, 20, HORIZONTAL); UserWaveTable=new MultiSlider(32, 0, 100, 0, 300, width/32, 150, UPWARDS);
loadWaveTable();
}
void draw(){ dt.display(); UserWaveTable.display();
}
void mouseReleased(){
UserWaveTable.mouseReleased(); dt.mouseReleased();
}
void noteOn(Note note){
myBus.sendNoteOn(note);
} void noteOff(Note note){
myBus.sendNoteOff(note);
}
void loadWaveTable(){
int j=0;
for(int i=0;i<31;i++){
j=i8; int k=(i+1)8; wavetable[j]=(float)(UserWaveTable.get(i)/100); float step=((float)(UserWaveTable.get(i+1)/100)-wavetable[j])/8;
for(int l=1;l<9;l++){
wavetable[j+l]=wavetable[j]+l*step;
}
}
int l=j;
while(j<512 && l>0){
wavetable[j++]=-wavetable[l--];
}
waveform.loadWaveForm(wavetable);
}
**/
have any idee?