rwmidi and 2 midi-devices
              in 
             Contributed Library Questions 
              •  
              3 years ago    
            
 
           
              I use rwmidi libruary with 2 midi keyboards.  To connect two devises is no problem:
             
             - 
                import rwmidi.*;MidiInput input0;MidiInput input1;MidiOutput output;
 input0 = RWMidi.getInputDevices()[0].createInput(this);input1 = RWMidi.getInputDevices()[1].createInput(this);output = RWMidi.getOutputDevices()[0].createOutput();
              I would like to separate each device. I can use following code:
             
             - 
                 void noteOnReceived(Note note) {println("note on " + note.getPitch()); }
             But it gives same "note on " for both of the devices withput information wich device is currently in use. 
            
            
             How to separate "note on " information for every midi keyboard (input0, input1) ? 
            
 
            
              
              4  
            
 
            
 
 
          