Is a subpatcher a patch or an app?
Dec 18 2011 | 4:04 pm
While solving another problem
I wrote a simple routine that will automatically return the path correctly whether running as a patch or an app (path message to thispatcher for a patch, sendapppath message to max for an app) based on some help I got on the forum:
But then I discovered a strange thing:
If I save it as a patch and use it as an abstraction (I gave it an inlet to the loadbang and an outlet from the switch) it works.
It also works in a bpatcher.
But if I encapsulate the code in a subpatcher it behaves like an app. ???
I wanted to write this because it bugged me to have one structure in a patch and then to have to change to a different structure before building the app. But I don't understand the behavior of the subpatcher. Any insight into this?