Tweak LooperMonitor to Display States for Loopers in Return Tracks!
Hi All:
I have two questions about tweaking a patch I found on maxforlive.com, this one here (thanks, Johnny Christ!):
This patch creates a display window that shows the current state of a Looper device, and is almost perfect for my purposes. However, it doesn't seem to show two looper states (Reversed, Cleared), and it doesn't seem to read states for Loopers inserted in the Return Tracks (which is where I need them to be).
I've spent several hours trying, in my noobish way, to take the patch apart and figure out how to make the necessary adjustments, but I'm actually not any closer than I was when I started. I thought it would be relatively straightforward, but can't understand where in the patch any reference to which track is being addressed, or which looper state is being reported, is located.
If anyone has the time to take a quick look at this and point me in the right direction, I'd really appreciate it - thanks!
P.S. I'd have posted the code here, but since it's not my work, I thought I'd better not.
I've exhaustively explored this in the past. There are several "state" flags that aren't accessible through the API, I believe the two you mention are among them (reversed, cleared).
Regarding getting the device in a Return, that should be possible. Can't help you with the specifics ATM, but hopefully this information saves you a little time.
Hi amounra - thanks for the report. That will indeed save me a lot of time chasing down capabilities that don't exist!
Phew - finally got this to work. Thanks again to both of you for all your help!
Could you post your modified device ? I had a quick look at the original device and didn't succeed.
Hi Stephane:
Here's the code...but I'm not sure it includes everything you'd need. I seem to recall something about needing to store a sub-patch on the local machine...
Take a look and see if you can figure it out. If not, I may be able to dig back in and recreate what I did. Basically, somewhere buried in the original patch was a "get track" reference; I just changed it to "get return" (something like that. Pretty sure that's not the right syntax).
Aha! Found my notes....
Think I got it! Here's what I did:
1) Created LooperMonitor variation called "LooperMonitor1", that only shows one Looper
2) Opened up that patch in Max editor, selected the drop-down field that allows you to choose which looper you want to show state for (the one that's also in presentation mode - it's a bpatcher), right-clicked and chose "Object/New View of selectTrack.maxpat" [which is apparently the logic view of the drop-down]).
3) In selectTrack, selected File/Modify Read-Only so that I could edit it
4) Then, changed the second message from the top from "get tracks" to "get return_tracks".
5) Woot!