We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › Is this a proMIDI bug
Page Index Toggle Pages: 1
Is this a proMIDI bug? (Read 936 times)
Is this a proMIDI bug?
May 14th, 2008, 5:41pm
 
setNumber () and setValue() seem to do the same thing. ie. setNumber()

I'm trying to set the value of a controller using setValue(), but it seems to always be setting the number of controller. Really need to get this resolved...
What's going on? Am I mad?

code below ....

import promidi.*;

MidiOut midiOut;
//MidiOut [] midiOut = new MidiOut[8];

int pretendval=1;

MidiIO midiIO;
//Controller myController;//= Controller;

void setup(){
 size(256, 256);
 smooth();  
 background(255);
 noStroke();
 //MIDI
 midiIO = MidiIO.getInstance(this);
 println("<<<<<<<<<< Ports Midi >>>>>>>>>>");

 midiIO.printDevices();

 midiOut = midiIO.getMidiOut(0,1); //(midiChannel, midiOutputNumber)
 
//     myController=new Controller(7,100);  


}

void draw() {
 background(255);

   if(mouseX!=pmouseX){

    Controller myController;//= Controller;
    myController=new Controller(7,pretendval);  
     pretendval++;
     if(pretendval>125) pretendval= 1;

      //myController.setValue( 10 );
      //println( myController.getValue() );
     midiOut.sendController(myController);
     
     
    }    
   
}  



Re: Is this a proMIDI bug?
Reply #1 - Aug 11th, 2008, 1:12am
 
I'm having the same problem, anyone resolved this?

I'm quite certain it's setting the number and not the value ... currently looking into the source ...

Sparky
Re: Is this a proMIDI bug?
Reply #2 - Aug 11th, 2008, 11:38am
 
yes this was a bug in promidi, i am working on a new version that should fix different problems, it needs a bit more testing but should be online by the end of the week.

Re: Is this a proMIDI bug?
Reply #3 - Aug 11th, 2008, 8:34pm
 
Will it be mac compatible?
Re: Is this a proMIDI bug?
Reply #4 - Aug 11th, 2008, 8:50pm
 
In the mean time if anyone needs a fix, here is a temporary recompile of promidi I did.

It's tested as working on my mac (Intel iMac 10.5). I'm pretty sure I didn't break any other functionality, but you never know ....

This was recompiled from the source included in the mac version of promidi, although I'm only replacing the promidi.jar file so it may also work on linux/unix/windows/other

Download it here: http://www.smallbutdigital.com/promidi.jar then replace your promidi.jar file with this one

Sparky
Page Index Toggle Pages: 1