write external to access data without patch cords
b woods
Apr 03 2023 | 4:01 pm
Can anyone help me understand how to most efficiently share float data across externals and other Max-native objects without using patch cords? I am trying to write an external to access/receive/retrieve data (viz., a float array) from other objects without connecting with patch cords. I have been reading various versions of the API documentation and different forum posts and SDK examples and believe there may be several ways to do this (using, for instance, tables or attributes or dictionaries or the send/receive or pattr or coll systems) but as a beginner (and more a C than C++ writer) I find the documentation to be more of a reference than a how-to and thus the nuts-and-bolts of implementing this elude me. For instance, I see info on "getter and setter" functions and "getvalueof and setvalueof" functions but how would my external object find the pointer or name or handle or symbol to allow it to access data in another object? Do I need to write my own "MakeDictionary" object so that I can a priori set the name and "register" it, then write another external to access that object's registered dictionary? Any help with this would be much appreciated. Cheers.