Metro randomly stops while starting/stopping with velocity


    Sep 16 2022 | 6:36 pm

    metro stopping randomly

    Video of the problem in action after applying Source Audio's fix. Notice the button coming out of metro, and how it just stops registering bangs and the midi output stops in the recorded loop.
    Audio status settings
    Audio status settings
    Max Patcher
    In Max, select New From Clipboard.
    Forgive me if I'm missing something obvious, I'm quite new and I've been trying to solve this for 2 days now. I've included my Audio Status settings just in case.
    Desired Behaviour: I want metro to only run while receiving Note-on, and I want to reset its count on Note-off, to drive a counter which in turn drives a grid.
    Issue: metro will randomly stop sending bangs after stopping and then starting. It will always send at least one bang. The issue is inconsistent, but seems to always start occurring some time after the patch has been opened in max device editor. Sometimes it will occur on a fresh load.
    Steps Taken: - I've confirmed the issue is with metro by verifying what is being sent to and from metro with messages and bangs - restarting Max, restarting ableton, restarting PC - configuring metro with as every combination of @active @quantize and @transport - lots of experimentation with various on-load bangs like loadbang, live.thisdevice. Even when I can keep the metro running and just gate the makenote with velocity it behaves inconsistently (and I don't want metro to always scroll through the grid) What's really making me tear my hair out though is that this was originally working at the beginning of the week. It's leaving a bad taste in my mouth with how inconsistent Max's behavior and I don't really know how to troubleshoot this further.
    Any insight would be greatly appreciated, thank you.

    • Sep 18 2022 | 1:42 pm
    • Sep 18 2022 | 4:42 pm
      Thank you. I was hopeful at first but unfortunately this doesn't work. I made a video demonstrating the problem, I'll add it to the opening post as well

      metro stopping randomly

      Edit: yes I know sel 0 is going into a different inlet on counter; it doesn't matter which inlet it's in. The problem is metro, you can see its bang out and how it just stops running.
    • Sep 19 2022 | 6:24 am
      I am not using Live and can't help you with that. All I can say is that in Max metro never has such problems, and that you are somehow overloading Live., probably with too fast messages to GUI objects. Nothing to do with metro itself, I guess.
    • Sep 19 2022 | 2:16 pm
      Yes, you are doing something wrong somewhere. I use metro (and metros underlying clock mechanism) extensively in Live with Scheme for Max and it's definitely solid, reliable, and consistent - if you aren't somehow making the patch misbehave elsewhere. Don't get confused by misinformation on "how bad Max's metro is" online - there are a lot of people who happily repeat something they've heard that goes back to pre Max 5. Metro was overhauled several Max versions ago.
    • Sep 19 2022 | 3:09 pm
      Can it be confirmed that I have this wired correctly then? Should this work the way I want it to?
    • Sep 19 2022 | 3:18 pm
      What should work ? Post the patch so that one can see what could be wrong, It is no help at all to watch videos.
    • Sep 19 2022 | 3:28 pm
      The patch is posted in the opening post... I thought that's what you edited to post your screenshot. Nothing has changed. That patch is making metro stop sending bangs as shown in my video. I want to know if it's because I wired it wrong, because if it's correct, I need to open a bug report.
    • Sep 19 2022 | 3:46 pm
      I corrected your patch only to make metro start, stop and reset correctly. Your original patch has double notes on every start etc. That hickups are not caused by metro, but by some other things you do. Make new live set, load only that metro patch, don't drive anything with it, just let it run. Than report if you still have problems.
    • Sep 19 2022 | 3:58 pm
      alright, I'll try this. Thanks for your help btw, this is very frustrating.
    • Sep 22 2022 | 9:51 pm
      I rebuilt the patch from scratch making sure I only used screenshots so that everything would be fresh. I'm testing by leaving it to record midi output for long stretches of time. So far, so good. It still misbehaves if max is open. Hoping the problem doesn't return.
      I wish I understood what was causing it, but thanks again.
    • Sep 22 2022 | 11:47 pm
      Max Patcher
      In Max, select New From Clipboard.
      Alright, here is my current patch, remade from scratch in a new Live session with nothing else in it. Metro is still randomly stopping.
      It started dropping after about 12 minutes of continuous use this time.
      Edit: on reload, it's stopping after the first loop.
      Assuming the patch should work, should my next step be a bug report?
    • Sep 23 2022 | 2:47 am
      I’ve noticed some similar behavior recently. . Metro will occasionally stop or attached counters will start outputting random numbers. For me everything works fine in session view though, no problems at all until I switch to arrangement.
    • Sep 23 2022 | 3:42 am
      At least it's not just me then. I work almost exclusively in arrangement though.
    • Sep 23 2022 | 4:22 am
      It only started happening to me in the last few days, I’d be surprised if it wasn’t a recent update bug. I’m sure it’ll get sorted out.
    • Sep 23 2022 | 4:40 am
      Set up a full bug report, hopefully it'll help. I think I updated recently (before it started) so ideally it's just a bug in the latest version.
    • Sep 23 2022 | 7:43 am
      metro is only one of several objects that can produce bangs quantized to live transport. you could replace it with plugphasor~ and rate~ for example , and use gate to pass bangs on note on. running exactly this in parallel will tell you if metro is really buggy. With exactly this I mean don't hang any other objects to it.
    • Sep 23 2022 | 4:05 pm
      I believe I will have to go this way just to get back to making the patch, thanks for the example, makes sense.
    • Sep 24 2022 | 8:18 pm
      Finally set up your example Source Audio, and I am indeed receiving smooth counts from plugphasor vs inconsistent results from metro. Someone reached out to me with their bug report from a few versions back with the same issue; specifically metro breaking while ableton is in arrangement view and looping, so I'm wondering if that made it into the newest version. I'm testing it and have a ticket open now. Thanks again for explaining how to convert a phasor to bangs!