[PD] Rotary controllers in PD?

Ken Restivo ken at restivo.org
Sun Sep 9 04:04:01 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

My MIDI controller is an M-Audio Axiom 49. It has 8 "rotary controllers" which can output continuous controller messages.  This may be my way out of the 4-bit hole, and allow me to control parameters in PD with finer than 128 discreet steps.

Are there any externals or internals in PD to handle these things? The Axiom manual states that each rotary controller can be configured in one of these ways:

	2's complement from 64/Relative (Binary Offset)
	2's Complement from 0 / relative (2's Complement)
	Sign Magnitude / Relative (Signed Bit)
	Sign Magnitude / Relative (Signed Bit 2)
	Single Value Increment/Decrement
	RPN Increment/Decrement Message
	NRPN Increment/Decrement Message

I tried each of these and peeked at the MIDI stream to see what they do, and also at the output of PD's ctlin to see what might emerge. The "sign magnitude" and "2's complement" ones look pretty promising: they indicate which direction (up/down) and how fast you spin the thing.

Now, to turn those numbers into a float between -1 and 0 that I can use for controlling various parameters in PD. However, I'm getting old and lazy. I'm convinced that *someone* must have already solved this problem, and created an abstraction for using rotary controllers in PD. Google turned up hours worth of fascinating clicking, having nothing to do with what I was looking for. 

So if anyone can point me to an example patch or docs for using rotary controllers in any of the above formats, in PD,, please let me know.

- -ken
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG41SRe8HF+6xeOIcRAt2QAKDMF0MxlYPFrstiXI+glQVKfHiLawCg5PIc
yR+zUNDl2UfVDwh35R3YBRw=
=z2Am
-----END PGP SIGNATURE-----




More information about the Pd-list mailing list