pcr-30 connects a hardware or virtual MIDI controller to netpd. The instrument
shown here uses a layout fitting the Roland PCR-30 MIDI keyboard, but
other MIDI gear could be hooked up as well.

The controls respond to the following CC (control change) messages on MIDI Channel 1:
S1-8=CC1-8 / R1-8=CC9-16 / L1-3=CC17-19 / B1-6=CC25-30
Make sure that the correct 'MIDI In' has been set in Pure Data's preferences.

Incoming CC streams are mapped to netpd parameters by learning. Put the
controller you want to create a mapping for into learning mode by clicking it.
Then touch the netpd parameter to establish the mapping. The OSC address
of the parameter will appear in the controller. Once the mapping is established,
incoming CC messages directly control the mapped netpd-parameter.

Note that only single-number parameters with range of 0-1 can be used.
Incoming control change messages (0-127) are scaled to 0-1.

In order to make its state savable like other netpd instruments, the state of
pcr-30 is synchronized between clients. However, this might be undesired when
clients prefer to use their own independent mapping. Thus, pcr-30 can be locally
disabled, so that each client might use their dedicated instance with their
own mapping.