very basic question re: abstractions in M4L

Jul 18, 2012 at 5:35am

very basic question re: abstractions in M4L

Hi
Newbie question. I find that I have to close the Max editor window and reopen it (to force a save of the .amxd) to get a newly instantiated abstraction to work. I’m on Live 8.2.2 but have Max 6. Is that by design?

Here’s a super simple abstraction (choose track, change volume) that illustrates (I’m also attaching the actual maxpat in case that effects the issue).

Thanks!

– Pasted Max Patch, click to expand. –
Attachments:
  1. volchange.maxpat
#35942
Jul 18, 2012 at 10:08am

I think this behavior is more or less by design. Since the editor runs in the Max environment, the device needs to be loaded once into Live (by closing the editor) to initialize the API operations in the Live environment. Generally, the initialization aspects of Max vs. M4L are rather tricky and you may find some related discussions on this forum.

#123119
Jul 18, 2012 at 4:44pm

Its also one of the reasons why I hardly use the ‘system abstractions’ but only my own stuff. Most abstractions are very good examples but IMO you gain more by coding them yourselves (sometimes you can even make things a little more fluent).

What I do so far is keep a “HelloWorld” patch around which contains a selection of patcher objects with all my routines. When I need something I simply drag this in, copy the patcher objects I need and then paste those into my new patch. I know I could also add this patch to the “Extra’s” menu but so far couldn’t be bothered with that ;)

#123120

You must be logged in to reply to this topic.