Problem with midibus library

edited August 2014 in Library Questions

I have

FATAL EXCEPTION: Animation Thread java.lang.VerifyError: themidibus.MidiBus at processing.test.midisynth.midiSynth.setup( at processing.core.PApplet.handleDraw(Unknown Source) at processing.core.PGraphicsAndroid2D.requestDraw(Unknown Source) at Source) at

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);


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);



void draw(){ dt.display(); UserWaveTable.display();


void mouseReleased(){

UserWaveTable.mouseReleased(); dt.mouseReleased();


void noteOn(Note note){


} void noteOff(Note 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){






have any idee?

Sign In or Register to comment.