How to use multiple midi inputs on a raspberryPI?

Manuel Lopes's icon

Manuel Lopes

7月 23 2024 | 6:14 午後

I have the need to make 3 outputs for 3 diferent instruments, I know that the midi events are processed diferently compared to the normal params, however, I struggle to find a way to make 3 note in objects which control diferent instruments. I have a bass, a lead and a chord instrument, for now I'm changing their notes by using a param which contains the notes (ex:i3_note) and the midi formating is made with a make note only. I need this to use note sustain, otherwise it just sends a bang of the note and stops.

The s3 and s4 subpatchers are just scale quantizers, they are not needed to solve this issue I suppose.

Thanks in advance

chord instrument routing
lead instrument routing (the bass is similar)

Jan M's icon

Jan M

7月 24 2024 | 6:07 午前

AFAIK one RNBO patch has only one MIDI in/out. You can though, make various routing patches and create a set from them the web UI and route the output from each patch to an instrument patch or a physical MIDI out port.

Alex Norman's icon

Alex Norman

7月 24 2024 | 2:14 午後

Unless I'm missing something, it seems like you could just use different midi channels for each instrument?

Manuel Lopes's icon

Manuel Lopes

7月 24 2024 | 3:53 午後

Thank you for the reply

Is it at least possible to send chords without the need of midi? I've been using this workaround (it is visible in the screenshots) using make note to convert the messages and it works, my only problem now is to send more than 1 note since makenote only send 1 note at a time. I have the chord instrument in polyphony 3.

Manuel Lopes's icon

Manuel Lopes

7月 24 2024 | 6:43 午後

@ alex norman) are you refering to doing something like midiin 1? Cause if so it doesn't work in rnbo. Only works in normal max

Alex Norman's icon

Alex Norman

7月 24 2024 | 6:47 午後

makenote does let you send multiple notes..

Manuel Lopes's icon

Manuel Lopes

7月 24 2024 | 11:01 午後

Thank you for the reply Alex

I think I figured out the problem, I was trying to use the make note in the way you showed and figured that the granular synth I'm using (sbb.granular from RNBO synth building blocks ) does not let me play chords despite being polyphonic. From what I searched it's something to do with the fact that I'm not controlling the pitch with the poly subpatcher. For that reason I'll use additive synthesis instead.

Sorry for being convoluted in the reply, I'm still figuring RNBO out

Oliver thurley explained it best in this tutorial at 47:55 min:

Alex Norman's icon

Alex Norman

7月 25 2024 | 1:24 午後

BTW, I missed your earlier question, [midi] doesn't support a channel filter as MIDI can encode a variety of messages, some of which don't have channel designations. But [notein] does support a channel filter, so you could use [notein 1] [notein 2] to get notes from channels 1 and 2.

Manuel Lopes's icon

Manuel Lopes

7月 25 2024 | 9:50 午後

Good to know! Was not aware, it will come in handy

Thank you