How to get numbers into the path object in order to define track and clip slot
Hi grateful for any help. Nearly have my first M4L device which I can actually share.
I have the following object: path live_set tracks $1 clip_slots $2 clip
And what to get data into both $1 and $2
I tried using midi definable number boxes and the "pack" object – but that doesn’t seem to work.
I assume you meant to say that you have a live.path object which contains "live_set tracks $1 clip_slots $2 clip" ?
Because that’s not going to work since live.path doesn’t support substitutions.
Fortunately the solution is quite simple: use a message object. A message object does support substitutions like this and providing it with information is as simple as sending a list which contains 2 numerical values.
Here’s an example showing how you can do this. It shows both a ‘message box only’ solution as well as a situation in which pack is used:
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 735.3oc6WssiZCCD8YVo8evJpOtEEat2252wJDxPF.uahcjsCksq5+dsctP. RBorghZ09RbXlwiOywyLL48Genm2RwdP4g9F5YTuduajzyIyJoWtfddQz8qB oJmgdb3Ghku38TlNMrW6jGSW8ZgTdRDiGBZ2VH4RWK3ZNMBb1+cIiFVdChDc 9Nv4hYANaMG3Ww9EFmZo9sXHE5ddn4kOCE6mNMXRe+b4wT8psL9lERXkNcai mYTilfsOGL19j322GM2sie83C1UyxSeXpQiFfFVM2f+i4FREbyr5oFFW68T5 xUQRS7sDyvANRZXGPRgrcP+kIZsfWf5cTYQrWR+y34Wf0hkfB3ZplI3k.MYp 6pk3vqe1iCg+kS1l1pbsZoKbAQkSWG1hzDnZPt.3zkgvQ.PQ2AAKnZsjYH.3 vapLBMmQsLVXBHVmKuPwwmPRTFnEqWayBLTdATN1z8wBNvcAAtHe3HSR3LsR +VFjqzjHyEcCdHxbCZU6Ws5bNlTkRl4zM0DkXsJ8gZqPpqJUxqR.IBxQLYR0 fJTv2bgTyybYiQYHi+p0gpZiAqKDA0GiL9ZgCNd0dMUuZgL.j055.XcCZUw. DDxhZ3Jlw2wTrFugzPb8wNkyEYUyErtWlcYMaN7xMt6yEZ8b4lHiu1lHDW21 g9e1D4+6lHe1A4evNHFhWQ2.mOkGFQJDx1vEl54PlYl3SZZz0yEOpqGKNs6S 1Xwj9iLiyL8lLVbrzMbZ2LVreETy.uqN7wCm1YS7VaFi4z2hr8CVn.MRKMeA kB8ELxj2DuPEJzleQb+pXulheXkHIsIK4NjtQtMoaX+zkA9YocmS3od2w.m9 IqN2ZUbx0fRjHWkCu7OhDU5eRC.klwcsKJYE4Xi1xBB.9QIYQrfXgI6MCHSl ZKSlM9PIi88lRYZMhm0F.eZXcYD2YXC2Jrg+qisosg2lcWnswsAZitKPazMo 7nSfFoMPavGFZVAlkeCUMCnA -----------end_max5_patcher-----------
Thanks alot for that – makes sence and a lot closer to realising the patch.
My problem now is that I am trying to separate out the function of firing a clip / from that of setting the track and clip slot number.
My patch is to designed to record a fixed bar length clip of variable length – from midi map able track and slot numbers. The only stuff I have found on firing clips, it is hard to see how to separate out the two functions – But what I want to do is have 2 triggers in the device – One to prime the device and one to fire the initial clip.
I have attached the device below – Once I have sorted this I will publish it, hopefully someone else will find this a useful device. (I couldn’t figure out how to past the device as text).
Hope someone can help – Very nearly there at my first useful M4L patch.
Forums > Max For Live