I've just started looking at MIDI stuff in PD, and could use a pointer to some basic information that I'm not seeing in the online help.
I've hooked up a MIDI keyboard (Midiman Oxygen 8) to a laptop (running under Windows for now, since I haven't yet been able to get the USB MIDI to work under Linux). From what I can tell, the built in notein function is monophonic, and only handles "note in" but not "note off" coming in from the keyboard. Is this correct? Is there a way to catch "note off" messages? (If so, that would be a way around the polyphonic issue for what I'm trying to do now.) Is there another way to handle a polyphonic keyboard?
I have a feeling I've just missed something that will be obvious when explained. Thanks for any enlightenment.
From what I can tell, the built in notein function is monophonic, and only handles "note in" but not "note off" coming in from the keyboard. Is this correct? Is there a way to catch "note off" messages?
Notoff messages also comes in (upon release of a key). You may want to check your setup. The stripnote object it there to actually remove the noteoff messages.
(If so, that would be a way around the polyphonic issue for what I'm trying to do now.) Is there another way to handle a polyphonic keyboard?
MIDI really is monophonic (only one note at a time). If you put a print object at the outlet of notein you will see that all notes do come in. If you want to build a polyphonic instrument in PD you should take a look at the sampler.poly example in the audio example folder. The poly object takes care of polyphony for you.
HTH Soeren
On 07 Jun 2002 01:44:40 -0400 Joseph Zitt jzitt@josephzitt.com wrote:
Is there a way to catch "note off" messages? (If so, that would be a way around the polyphonic issue for what I'm trying to do now.) Is there another way to handle a polyphonic keyboard?
[notein] has 3 outlets: pitch,velocity,MIDI channel. A note-off is a note with velocity=0. Maybe you're not monitoring the velocity?
On Fri, 2002-06-07 at 10:15, Michal Seta wrote:
On 07 Jun 2002 01:44:40 -0400 Joseph Zitt jzitt@josephzitt.com wrote:
Is there a way to catch "note off" messages? (If so, that would be a way around the polyphonic issue for what I'm trying to do now.) Is there another way to handle a polyphonic keyboard?
[notein] has 3 outlets: pitch,velocity,MIDI channel.
A note-off is a note with velocity=0. Maybe you're not monitoring the velocity?
Ah! OK, my MIDI knowledge was rustier than I thought. Looking at the example patch (I haven't written any MIDI-based patches myself yet), I see that it, indeed, is sending the note with velocity 0. This makes things much simpler.
Thanks! (to you and to the several others who responded.)
Hi, Joseph Zitt hat gesagt: // Joseph Zitt wrote:
I've hooked up a MIDI keyboard (Midiman Oxygen 8) to a laptop (running under Windows for now, since I haven't yet been able to get the USB MIDI to work under Linux).
I use an Oxygen with standard midi-in, but it should work with this driver as a Midisport 1x1, as others have reported on LAD: http://member.nifty.ne.jp/Breeze/softwares/unix/usbmidi-e.html ciao,
On Sat, 2002-06-08 at 04:32, Frank Barknecht wrote:
I use an Oxygen with standard midi-in, but it should work with this driver as a Midisport 1x1, as others have reported on LAD: http://member.nifty.ne.jp/Breeze/softwares/unix/usbmidi-e.html
Good to know! Thanks.