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 › proMidi playNote problems
Page Index Toggle Pages: 1
proMidi playNote problems (Read 562 times)
proMidi playNote problems
Nov 14th, 2006, 2:56pm
 
Hello,

When I run this simple code:

import promidi.*;
MidiIO midiIO;
MidiOut midiOut;

void setup(){
 size(127,127);
 background(0);
 midiIO = MidiIO.getInstance(this);
 midiIO.printDevices();
 midiOut = midiIO.getMidiOut(2,0);
}

void draw(){
 playNote();
 delay(500);
}

void playNote(){
 Note note;
 note = new    Note(int(random(127)),int(random(127)),int(random(1000)));
 midiOut.sendNote(note);
}


my other software (i.e. Pure Data) don't receive note...
I am using Maple Midi to link the two soft, where is the
error?

Thanks,
solipse.
Page Index Toggle Pages: 1