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.
Page Index Toggle Pages: 1
ProMidi/Cubase4 (Read 440 times)
ProMidi/Cubase4
Feb 17th, 2008, 12:26am
 
hello,
i´m a noob in processing and really need help.
i´m trying to send a note from processing (with mouse position) to cubase via iac driver.
everything goes right, but sometimes, the notes of the vst instruments hangs on and play constantly. The same thing happen if I use the vst (FM8) as a standalone sint.

here is an example:


import promidi.*;

MidiIO midiIO;
MidiOut midiOut;



void setup() {
 frameRate(25);
 size(320,240);

 midiIO = MidiIO.getInstance(this);
 midiIO.printDevices();

}

void draw(){
Note note;

 rect (40, 40, 80, 80);
if ( (mouseX > 40 & mouseX < 120) & (mouseY > 40 & mouseY < 120) ) {
   
    midiOut = midiIO.getMidiOut(1,1);
    int n = (int)round(map(mouseX,40, 80, 95, 100));
    note = new Note(n ,120, 100);
    midiOut.sendNote(note);
    println(n);

 }

}



where should i put the noteOff??
does it work in this example??
im really getting frustrating.

i´m working on a macbook pro with iac driver with multiple channels.
i´m using proMidi 1, because 2.0 does not work with me, he didn´t find any inputs or outputs, only   I/O (0,0).

thanks for any sugestion.


Re: ProMidi/Cubase4
Reply #1 - Feb 17th, 2008, 1:09am
 
hint of "note off"

Note(i_pitch, i_velocity, i_length);

http://www.texone.org/promidi/note_class_note.htm
Page Index Toggle Pages: 1