Hello again,
Is there a way to specify the number of ALSA MIDI Out ports (in Linux) via the command line or using a command from within Pd?
I can specify this running "pd-extended -alsamidi" and selecting via the GUI: Media-->Midi Settings... - but need to specify the number automatically.
Thanks,
Iain
The following will do it:
On Fri, Feb 3, 2012 at 7:58 AM, Max abonnements@revolwear.com wrote:
if you want to simply reconfigure the audio/midi settings programmatically it might be revealing to listen to the internal pd messages
[receive pd] | [print]
and then change the audio/midi settings.
you can use those messages which will be printed in the console to change your settings when sending messages to a [send pd] that's the principle applied by the mediasettings library hans mentioned.
I just tried quickly and the exact the exact message required was:
[midi-dialog 2056 0 0 0 1.92017e+09 0 0 0 2 2( | [send pd]
where the last two numbers set the number of input and output ports respectively. Other settings probably differ...
On Wed, Jun 26, 2013 at 8:26 AM, Iain Mott mott@reverberant.com wrote:
Hello again,
Is there a way to specify the number of ALSA MIDI Out ports (in Linux) via the command line or using a command from within Pd?
I can specify this running "pd-extended -alsamidi" and selecting via the GUI: Media-->Midi Settings... - but need to specify the number automatically.
Thanks,
Iain
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 06/26/2013 04:10 AM, michael noble wrote:
[midi-dialog 2056 0 0 0 1.92017e+09 0 0 0 2 2( | [send pd]
where the last two numbers set the number of input and output ports respectively. Other settings probably differ...
for these kind of things i suggest to use the [midisettings] objects from the "mediasettings" library. it has a documented interface that is consistent across all platforms.
gfansdr IOhannes