This patch works sometimes but mainly doesn't


    Aug 26 2018 | 1:32 pm
    Greetings and thanks in advance for your time.
    I copied this patch from an Internet tutorial. It uses jit.gen to alter the contrast of an jpg image and converts the image into a particle system for manipulation. I've been over it and over it many times; it has functioned as intended on occasion but essentially it does no work reliably for me on a Macbook Pro using Max 7 (M4L 8 installed.)
    I'm not experienced enough to see where the signal flow may be getting lost or confused. There is no information in the console that hints at any internal errors.
    So what I think I need is some advice about how to dig out the issue. I could be in plain sight or it could be down in the guts.
    In addition, if you can point me to any other material about using particle systems on images and/or video, I'd be grateful.
    This being my first post, I'll now try to get the patcher here for you to look at. Thanks for your help.

    • Aug 27 2018 | 3:48 am
      If you're going to include Max patches in your postings, it's always better to select the parts you want to share, choose Copy Compressed from the Edit menu, and paste the results into your posting. I've fixed it for you.
    • Aug 27 2018 | 12:05 pm
      Thanks, Gregory. It would be great if the instructions -- as below this box I'm typing in -- contained that info about "Copy Compressed."
      As to selecting a portion of the patch, I hope it's obvious that I wouldn't know which portion to choose in this instance. ...edN
    • Aug 27 2018 | 4:38 pm
      Update:
      I pulled this patch apart and put it back together again one jit.gen at a time. All was going well until I added the parameters for the second jit.gen -- the particle generator -- and started to tweak them. The patcher came to a slurping halt.
      So, I'm concluding my issue is with the capacity or configuration of my MacBook Pro.
      Assuming I'm right, what would you suggest I try by way of loosening things up. This MacBook Pro has 16 GB of memory, 2 GPUs: an onboard, Intel Iris Pro w/ 1.5GB and a Radeon R9 M370X 2048 MB. (How Max sees GPUs and/or can be coaxed into using one or another is a mystery to me.)
      Max is currently using the AVF codec and running in 64-bit mode. I'd prefer to stay in 64 bits if possible. QT just seems like a waste of time given its status.
      So is there a 'straightforward' way of rewriting the 2 jit.gens as jit.gl.gens for example?
      Are there other places I can look for efficiencies and streamlining?
      This doesn't seem to me -- in my ignorance -- like a massive piece of processing so I'm hoping there's a path forward.
      Thanks for your help. ...edN