How do you control a sound source’s position in the stereo field (inside the spat5.viewer window) using MIDI? I’m using spat5.pan~ and the ITD and ILD sound localization that’s built-in and would like to be able to adjust where individual elements are in space in real-time using a MIDI input device. I’m using Max 8 and I’m new to spat/max so any help would be much appreciated. Thanks!
Hi,
This is not so much a question about Spat, but rather a matter of using MIDI data in Max.
I suggest you have a look at the Max MIDI tutorials, or search the Cycling forum.
That said, here is below a very basic example of mapping MIDI data to spat5.viewer
(as a compressed Max patch).
You can also have a look at spat5.osc.midimap
, which can be handy in that context.
Best,
T.
----------begin_max5_patcher----------
1921.3oc6Ys0iaZDE9Yu+JFg5id8xL.FSeJMIRQQpQsR4g9vlnUigw1SVLCh
YvY2Tk7auyMv3cAarMwQsMqjWf4Bm6my2b3uuZjyb1CDtC3WA2BFM5uuZzH8
PpAFYedjyZ7CwoXtdYNwr0qIYBmwl4DjGDlwWgyVR.hUDvZbdNMaIPv.OxJK
.YDRBuZC4EDtb+XAkkcWJMiDyJyzuBO6JxJWSyRIBM8f1AoIZpvl+oqQPmsq
jUJpVpqcz4kymmRZtYES9oRtftfFqIbyIywh3UR18tBRrvnI7gvItiAvot5K
QApKHuItfOZ2zBVlfS+hgJpEuc3L7Z8vN+VAEm5nl3qWck5ei6oJlKYofILd
7jMTxmc5oZAF0tZwqa4zyy0HYASBjWP9pmTiUKml2i3wbhYGNNiANTk4Wda8
pxwERgVPJtijgs5d2SPvWS3b7Rxy7stgKcihI2.uA+E5Zvu.aUmfZQmLqccx
dr8dtFch4h0zC2qJA7wSPVyHeVxgOST4w3TBvcB.hBmnt5IcBaUbm1h3Fbph
akqt6ruWxaW4MRXkROlqiSow2qxXvxIY81k2+XyDzhFXJz31iLZ.zENXuC+f
TFNYtLiZuUEdGuo2HwnH8k.+Ca40Lz.3suAWTq3LI6TI5HEOOZnwjfWPynhO
SEq.enNifTXmKmBMFbCOmfumTTMzzO3zacG73ybZBarpPOHpGgMis+pWBGug
jbmjCju16vBQAcdovTMdTsdbOYWMFgi0TLWKNa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NnOj1xemEk5kLFL.D5I1nNnzPPHuivi47nj7cDbHBgLK5rIjeeHj
+.PHu9PHuAfPn9PHz.PHXeHDb.HjaeHzY604dgBjPn9PH2gfR8IjEMHJuvdP
ommW0TFCmmugTvsKVSCIRfOYZc6rw5GoYlG0kZcJHJHhl0qa8oDGhrxqPV1s
rvTx7golCN4nPrUjURsEtjRmjj5Fm9jRmaq1VlPYuWB5pje26HYkFX.RgZAt
LUrqlX9xEzzz5FM2rebUmg0wLqsqoN6zTZTjODNqtUzS02o5IcPivK6dfUax
OvOxEoVp+TTnut+09yPdAd6fI1tMzVZ4BiLTvMZlqu4N4PPIsZtMb1RCtFTi
NGKghxxYEUlT4VipWeofsr.mPI1uLvNMcbr0QpPNac+pseBcm0REJsZOMc7p
MFu1n0kPidIKMA7mLU2An6yjzDP0sZHUU9bCDq7N+e+XoeS.hFvn63Dzsgwc
xrfcfJVwM2ZQEBTpEmgWBOAMs6+NkzpOEvoGfW672d7pW3T+PsD5My2CpkZ+
mDychgp8V6dRA3133F1jE3pz9vVO.yS72ayLN3VP7Cg8wY8mFxgIg7mlO+mp
49FurMtH5BEVbOOkJA77WJzP6yN0PSXZIUy+MP7h46L7xzRx9ywhiikD3Ies
dkSfxhLsFsSj0uXnYv2TPHYGMGpa.Yfm5O0cvoyjfwFTlS+Irdirn2QyaJEk
q1yNHBACz5QXSO6imAMP00cmSwg7bak.cS7t5qW8OncSSR.
-----------end_max5_patcher-----------
2 Likes
Thank you for taking the time to respond. The example is helpful! Much appreciated.