[linux-audio-user] midi filter to convert NRPN's to CC's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hallo,
Chris Pickett hat gesagt: // Chris Pickett wrote:

> NRPN's are encoded by 4 CC's, two for the parameter number and two for 
> the data value, and they appear in four-byte chunks in the midi stream. 
>  I'll take a look at PD, and post again if I get anywhere or get stuck. 
>  Thanks for the suggestions ... three votes for PD in a row sounds good 
> to me :)

Dave's [nrpnin] object connected to the [ctlout] pd internal object
should do the job. I don't know nor use nrpn myself, though. 

You will also need to deal with virtual midi connections. Pd only
supports rawmidi devices, so if you want to do virtual routings you'll
need to configure a snd-virmidi card and use aconnect or qjackctl to
make connections. 

Pd's midi device numbering is a bit strange. If you cannot configure
this with the "Media" menu dialog or if you want to use this right
away on startup, you should create a ~/.pdrc containing the command
line option "-mididev XX" where XX is one greater than the YY in the
/dev/midiYY you intend to use.

So, say you're virtual midi card has a rawmidi device at /dev/midi20.
Then you need to start pd like this: 
  
$ pd -mididev 21

or have "-mididev 21" in ~/.pdrc

You might also be interested in the "-noaudio" option.

Some of this also is described in the MIDI-Howto.

Have fun,
-- 
 Frank Barknecht                               _ ______footils.org__

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux