Hi,
Is there a way / trick to forward midi events from the main pd instance to a pd~ subprocess, so that ctlin / notein etc.. objects work in the subprocess patch ?
Thanks
JYG
This is neither documented nor official, but you can forward MIDI events by sending to the following special symbols:
#midiin
#sysexin
#notein
#ctlin
#pgmin
#bendin
#touchin
#polytouchin
#midirealtimein
The relevant part of the source code is x_midi_newpdinstance()
Christof
Am 18.03.2021 um 15:26 schrieb Jean-Yves Gratius:
Hi,
Is there a way / trick to forward midi events from the main pd instance to a pd~ subprocess, so that ctlin / notein etc.. objects work in the subprocess patch ?
Thanks
JYG
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
what prevents us from making this official and documented? :)
Em qui., 18 de mar. de 2021 às 11:41, Christof Ressi info@christofressi.com escreveu:
This is neither documented nor official, but you can forward MIDI events by sending to the following special symbols:
#midiin
#sysexin
#notein
#ctlin
#pgmin
#bendin
#touchin
#polytouchin
#midirealtimein
The relevant part of the source code is x_midi_newpdinstance()
Christof
Am 18.03.2021 um 15:26 schrieb Jean-Yves Gratius:
Hi,
Is there a way / trick to forward midi events from the main pd instance to a pd~ subprocess, so that ctlin / notein etc.. objects work in the subprocess patch ?
Thanks
JYG
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
My feelings on this interface are rather uniform: sending to all those #* symbols is ugly and tedious.
I think the use case is valid, but I think we rather need a dedicated Pd message or object which directly puts messages on the MIDI queue, so they are automatically forwarded to the relevant MIDI objects. This means that users could simply take the output of [midiout] and feed it directly into the new object/message.
On the other hand, are there any other uses cases except forwarding MIDI to pd~? If no, then we could simply add a message to pd~ itself, e.g. [pd~ midi <port> <bytes...>(, which would make this particular use case very straightforward.
Christof
On 19.03.2021 00:48, IOhannes m zmölnig wrote:
On 3/19/21 12:23 AM, Alexandre Torres Porres wrote:
what prevents us from making this official and documented? :)
for one thing: i have very mixed feelings about this kind of interface.
gmfdsr IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Smells to me that the sub-process must be started with midi flags:
MIDI configuration flags:
-midiindev ... -- midi in device list; e.g., "1,3" for first and third
-midioutdev ... -- midi out device list, same format
-mididev ... -- specify -midioutdev and -midiindev together
-midiaddindev -- add a MIDI input device by name
-midiaddoutdev -- add a MIDI output device by name
-midiadddev -- add a MIDI input and output device by name
-nomidiin -- suppress MIDI input
-nomidiout -- suppress MIDI output
-nomidi -- suppress MIDI input and output
-ossmidi -- use OSS midi API (Linux only)
-alsamidi -- use ALSA midi API (Linux only
?
Mensaje telepatico asistido por maquinas.
On 3/18/2021 11:26 AM, Jean-Yves Gratius wrote:
Hi,
Is there a way / trick to forward midi events from the main pd instance to a pd~ subprocess, so that ctlin / notein etc.. objects work in the subprocess patch ?
Thanks
JYG
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Hi Christof
This is neither documented nor official, but you can forward MIDI events by sending to the following special symbols:
#midiin
#sysexin
#notein
Thanks, that is exactly what I was looking for !
JYG
On 18/03/2021 15:26, Jean-Yves Gratius wrote:
Hi,
Is there a way / trick to forward midi events from the main pd instance to a pd~ subprocess, so that ctlin / notein etc.. objects work in the subprocess patch ? Thanks JYG