you can try the [mediasettings] lib from iem which allow you to choose midi driver from patch

or you can also directly send message to pd to setup midi port
use : 
[receive pd]
|
[print pd]
while changing midi settings to monitor what messages you should sent to select OSS MIDI

remember [loadbang] could happen *before* midi and audio settings when pd is launched with -nogui option
so if you use a loadbang to change midi settings, you should also have a [delay] just before choosing midi settings to let pd load the driver

moreover, concerning Raspbian, Pd and MIDI, I made a little patch that plugs all ALSA MIDI input device to all output devices (avoiding feedback loop)
it's here : https://github.com/avilleret/krapps_remote/blob/master/krapps_remote.pd
It's alsa but it's works on Raspbian (but not tested with NanoKontrol)
the patch also maps each keyboard key to a MIDI message

+
a



--
do it yourself                      
http://antoine.villeret.free.fr


2014-06-09 20:30 GMT+02:00 Joe Newlin via Pd-list <pd-list@lists.iem.at>:
I'm trying to use a NanoKontrol on Raspbian. It works fine if select OSS-MIDI from the menu, but I'm hoping to boot up headless & this is the last hurdle (I think). It's defaulting to ALSA-MIDI for me (with and without arguments). If you're confused ... :(

Thanks,

Joe

> On Jun 9, 2014, at 9:54 AM, Miller Puckette <msp@ucsd.edu> wrote:
>
> Well, I'm apparently very confused.  When I run Pd with no settings or
> arguments, I get OSS MIDI.  So I don't know why in that post I claimed
> that 'ALSA midi' was Pd's default.
>
> I looked in the pdsettings and found that 'ALSA MIDI' doesn't even get
> saved in that file - so the ALSA MIDI setting gets forgotten.  So the only
> way to get 'ALSA MIDI' is to specify it on the command line.
>
> cheers
> Miller
>
>> On Sun, Jun 08, 2014 at 07:35:01PM -0700, Joe Newlin via Pd-list wrote:
>> Hi,
>>
>> This thread is so close to being useful to me:
>>
>> http://lists.puredata.info/pipermail/pd-list/2013-02/101248.html
>>
>> Miller or anyone who knows the answer, can you please tell me what the
>> "this"is that you put in the .pdsettings file? As in, the precise syntax?
>>
>> Thanks,
>>
>> Joe
>
>> _______________________________________________
>> Pd-list@lists.iem.at mailing list
>> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>

_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list