Audio, Max, a stereo Y cable, and an Expression Pedal: An alternative to MIDI

There was a recent post on the Max Forum on Facebook that asked, “Has anyone got a way of getting a 1/4 inch jack expression pedal into Max?”

I’ve been using the following method (audio, max, a stereo y cable, and an expression pedal) for quite a while, with an early version in my paper How I Lost 150 lbs. thanks to Max/MSP! So thought I would share the newer version I am using as this question comes up regularly. If you are a Max user, the below is copy/compressed code, so, just copy and paste it into a new patcher. Comments are in the patch.


----------begin_max5_patcher----------
1766.3oc0Z00aaaCE84jeEDFa.q.tBRhhR18sh0th9P2ms6khhBZIZa1HQ5Q
REGmhle66RRKG6EGYGakTOffXHFJdIOm6GmKc954m0aj7JltG5EnOhN6rud9
Ym4FxNvYKe9rdUzqxKoZ2z5kKqpXBSu99+lgckwM9ajLMxHQloLzLpIeJZ9T
lhgDLVAqnY5t+BWL4yJVtwa1ngQAg8Qow3fAXbX3f9n3vX6PwIAgnOs7M4EN
yHG8kmGgaVNQcEWTxLtsVTiMTLMrCoFtTrM6PBhH3AY8Qg1mCWyFipGMpjs9
ZoMK7CzaMSJqMM1LzN32N+b6u5ejH3uvKMLkFAKORwlwLb6IPuaniL.2bjhv
CaE4hOLjKzalvfg3rngjSNn6upjRyTsy4qfZnAn2ZPzRsDwEFkrnNGbNonQb
CRNFURMLQ9h9HZwWp0vD0K8RCZCqIDGH.toMfPRXXqfczw.1wmrf8af0Do3E
VnTKqX1Oc.OKmWQKQyJo.bGDD.Ct.kCtvFpvTt.MtrN2TCfOhJJPTaxAoYIz
CDEpZArrSZiCxRrPQRJDBGkhwXKNk1JGDdDoJRROY4f2C38XtBbdMykHvNir
YNrPpkIfSJuptB8SSYrxm4Pa2vzq7CajrmAoXxY7KAjerRVYw9W+2OmflwJn
kAneUZXu.sPVq7i.u6BTAe7XlJ.YMtlADawcr97oTC5sHcNsjgfnMibIw5Xy
UwWkbA790B2gI99I733LGQDkshHHoNtAmscBe3gv2wXW8lDvZYPVt3zSuXNf
ozV9vWekQu.QqlUxM0Eqh+z7IBK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