Problem loading patches in the "patcher" object...

    Jun 02 2013 | 12:18 am
    Here's my most recent problem; I've recently needed to use the "patcher" object to use the same patcher in multiple projects. All the preferences/file preferences are default. I haven't touched them. I've looked, but haven't changed them.
    Let's use "Cycle.maxpat" as an example.
    In this patcher, let's say I want to multiply the midi note number by another number by using the "*~" object and send it to the "cycle~" object in the left inlet. Then, send the signal out from the patcher. When I save said patcher, Max shows the "*" next to the file name at the title bar, indicating that the file hasn't been saved. However, it DOES show up in Windows Explorer.
    After saving, I create a new object and type "p Cycle." When I do this, there are no inlets or outlets to the object, and the patcher is empty when I open it. It also doesn't allow me to select the file in the inspector window.
    This is a major problem that seems to only happen with the "patcher" object. When I use the "bpatcher" object, it works just fine. Any help?

    • Jun 02 2013 | 2:18 am
      I think perhaps you are misunderstanding the distinction between the [patcher] object on the one hand -- which is a Max object that allows you to encapsulate a one-off "subpatch" within a Max patch, design its contents the way you want, with inlets and outlets, and treat it like any other Max object -- and on the other hand using (and re-using) a Max patch that you have saved as a file as an "abstraction" -- an object that is really just a saved Max file.
      If you make a Max patch that has [inlet] and [outlet] objects in it, and save that with a one-word file name such as "myobject.maxpat" somewhere in the Max file search path, you can then open a new Patcher window, type "myobject" into an object box, and it will load your file in as if it were a Max object, with the inlets and outlets you created. That's different from creating a [patcher] object (a.k.a. a [p] object).
      I hope that's helpful. BTW, I strongly recommend NOT using object names that already belong to standard Max objects, including "cycle" and "cycle~".
    • Jun 02 2013 | 2:30 am
      Awesome! I was obviously misunderstanding how to use the object properly. Thank you VERY MUCH!
      P.S. I don't plan on using the name I listed here. It was just an example. I named the file completely different.