Simple record arm patch based on pgm change clips?
Wondering if any of you know of a simple patch that can arm/disarm a midi track based upon a program change clip being triggered?
For example on a track id put a clip with bank 0 and it would arm it, and bank 1 would disarm.
This means i can arm/disarm instruments based upon what scene im currently on.
----------begin_max5_patcher---------- 894.3oc0X10aZCCEF95vuBqncICEmuYZ2rpdSk19ELMgLIFvcINHaCitp8ee 1GGXosvHIkRgKZb8GI7lG+5ywwONvwcZ0FpzE8Iz2QNNONvwAZxzfSccG2Rx lrBhDFlaIUJIyotCs8onaTP6daagupjwKnJX390MVsRoaR8vRp82x0E8i5tV RTYKX74SDzLks2.r+HugHe+PSQjm4JNdj2t6YVEWIY+FdXXS21lY4fTpld+G 8ScaLVNoDFq6WDLRA5lph7Fx0JNPu3FuVYUEUBqf.EnufGG6kB+WRZX.VqJi nL2xeFLvbY3EDE88RGEooXB.y.eSktRw3qRJhOkTLDCdwWCECuJonjpPDQI5 CmRbFj.lx.OXocbuVZ6cQiSN8WZU9BZVvVSGo6vPhSGNCihAaY.TDMFvYZmv IN47gy56QRVSymXgwDhRIXSWorogb1QUG2IKoBISpn7Lq9g1goiSkGWizEHy TyDiaWIHY+ThNkAgCS8ZD9.aSr0QCO1+p0va36doI9fzbX8esfp0QQhv8w12 unHAW.PUsfIyoqYYztg1oD9bCZYb01h1XcCghj9DaI8ZjwRZAxCs+jdAGisa Ka0NyrjMLtGjM5Zjrkrb1RhPR6YHgm5cauSFGmBNYO61MpK5FvC5EvSNS.Oq prjxUuf3eFcyJVQN5gpUBz2t616PzYyzbAsfJ1MKTv3zrpUbUyzb6cpYOrcL 3dig.woQ.lG2Iv1uMGu8AMSLeJTej2IDa2BQWQqoBEKSqiBVIS41QxXcYI1B bZa8bKX44TdymcCXM9vv58fSfiRUg9pNsTWwicKq3.H4cR.T4fNG79bNGaiq n6TjBVVqAygVqFXVgFDZtFd5WhBLblnpreTr1dAK+R6ADiupf3+IwhVVcEdg oM1TdXROxJ3+pBd8NlFlw6VN3iuYw5iGwPx9jeE+t7MNf.gDfO6PPgWQS6OE uRcdzrsLodaAnfcul4TohwIJVEuwXLmEIBuaP+K.+VLjyjjoET.F6O7baki4 .6PdGSOdOYPuo5I7xROlu5qwTw90i4DQNSyWQsPNOigu0x4nyVwmO2iWKzCL aclbO9sQOmO2bZaji+YSNsIVXz4axpEvI3hRM8clxlDirb4Zy4kZejfPz6F3 daJw3gPUF2VERa5Jzeky1waG.QnyqqzI0WIr4e2DG5Nv767mA+kKEH2L -----------end_max5_patcher-----------
This doesn’t use banks. as far as I can tell Live doesn’t differentiate between banks with program change clip. I would use the same bank, but with different program changes. This patch takes program change 1 to disarm, and program change 2 to arm the first tack in the live set.
Couple of questions…
What do i do with that code? and
Will this work on the track the patch is on?
I have multiple tracks across my set that i need this to work for. Not just the first track in the set.
What you do with that code is expand it to your needs.
This patch will work on any track in the set, did you open it up and try it? .
Do you have any experience with the live API?
I don’t want to build your setup for you, but I did expand the code a little here:
----------begin_max5_patcher---------- 713.3oc2W97aaCBEG+ryeEHNmEAFGamocoU8Rk1tsaSSUDaRBc1PDlzktp9+ 93GNsdUNI1NUos6Pf.9YyW9vi2CdXT.btbKqBB9L3GfffGFED35x1QPc6.XI caVAsxYFTv9sb9svw9GoYa0ttugM+luqnY+5BUISAB2YfXSIWTvztWNrty0T c1JtX4MJVl1O3Q33Inw.BJxVMKwVhSmf.+r9cVHE5J9eXVywHyi8cyycCuQR ehfgMrUPKc1BuPwoEfKkE4MzjbidmnPMlJYxBoxKH6PXKvyhQot+kjFQvFUY Ek8UdbzHaw3WUvg6K3H3vSFbn+C.GpufKDkNY5oAtvYeDAWEq.f.XPHf.h.S akaI0c5Us990LuFgyohkvwcuF9DN2+RPXjapiQnArFLcPKAIusKAk7b9Zpph 0J7w6C9NfV+iKzsWcHfiiSsyvPzI.bx6ZfmIKKYVX7Bh+Evka3E4f6kaTfuc 8UWCXKVX3BXES8zpPAWvxjaD5lgNZcooE1Nyk.K1EMIcpCyy5EXiNofIKTKm 6ZOA8JhsqX2wyXf6XJMOyniBdIWC6IY7dYI9JbZW84VwyyYhle6Fv5.QdeK3 jyiRKAekeGqu3g3bbvDrsJg3ZrWOGbadNIGwyAbslVvy5LX12dUhcGJIxVF8 5uE0wvEJY4vnXs6ka6W5.fX7GJHdfDKFY0W3E4Al+njQC5nPeDOIjkVbQ+xA erTrdTR7jbH4WG1sXvmHIcBzk.7E2FzMEs8+u3sxjGMaGSpOGl4zj6ll4rJM WP0bongM1anAdlEOGfeGFx4Uz4ELGLZO7bejyztHG7YSNgGSNnyJcHcQNmO5 fNhbr205LRGbWjy4gNjNrXM8rAGbGVqHuqTS3.UiOjHc8Zyoeqp+jNgXxsbq O.a7XWStv2zEDFpLmYdm8dCnJSVBsIEwFkOZ913H3H6373n+BbBx3cD -----------end_max5_patcher-----------
I’m not sure if the abstractions will carry over let me know if you have problems opening this.
The abstractions take the track number as an argument. A bang in the left unarms the track, a bang in the right arms the track. put this at the top level of a group of midi tracks, so when you fire the scene with your clips with all of the program changes they pass through this device and set the states of the desired tracks.
There are other ways to do this, but I’ve already done what you asked in your first post.
I massively appreciate this but i have no experience in how to turn this code into a max patch.
I need this patch to work completely independently on a track, no groups or master tracks.
It will simply trigger the arming of a track when a scene is launched with a clip on it.
So… in this case a clip with PGMCHANGE1 will disarm and PGMCHANGE2 to arm?
Anyone that can help with this?
I just did help you with this.
Copy the code I posted.
Open Max -> File -> New from clipboard.
select all and paste into a M4L device.
Just because I’ve nearly made exactly what you asked for, I’ll make a device that does the following:
When dropped on a track (must be a midi track) will track incoming program changes. You will be able to select which PC message will trigger the record on and off for that particular track.
Could you have a look at this video and tell me where I’m going wrong?
But that device you just talked about sounds PERFECT!!!
"When dropped on a track (must be a midi track) will track incoming program changes. You will be able to select which PC message will trigger the record on and off for that particular track."
As I feared the abstraction didn’t make it across.
Drop the attached file in your search path.
I am gonna be away from my computer, but I’ll throw that patch together on tuesday.
mate. you’re a very kind man.
i do seriously appreciate you taking the time to do that…
I’m having a couple of little teething issues where the program change clip needs to be reset in order for it to work..
And… for some reason this isn’t working in arm exclusive mode which is what i need.
Have a look at the vid here – http://cl.ly/410D023w3e0K
The program change in the clips starts at 1 and the the program change selector in the device begins at 0.
so clip 1 = device setting 0. I could throw in some math to have it agree.
You are right that it doesn’t "work" in exclusive mode. It still works, just not exclusively. Two ways around it.
1. Set up scenes of midi clips that turn off what you need to (time consuming for you)
2. Program the arm function to be exclusive in the M4L device (time consuming for me ;))
It seems the Live API works independently of the exclusive arm setting. This may not be the case, but I’d have to investigate.
Yep i got ya.
Its working now… although sometimes i need to restart live and max for it to work… so I’m not sure what that could be… not a major issue but might be a bug lying there somewhere..
At the mo… i have just programmed loads of clips to turn off the tracks i don’t want armed during scene launches… that not a problem..
BUT… if you do have the time it would be AMAZING to have the exclusive feature.