Table Access

    Aug 03 2012 | 6:46 pm
    Hi there,
    I have thoroughly looked at the Max SDK docs and found (almost) everything about table. So obviously table_get() is the function I want. However I need one more piece of information that table_get() does not provide.
    How do I get the range of a table object ?
    - Luigi

    • Aug 04 2012 | 3:18 pm
      AFAIK there's no way to do this officially. Maybe we can add this to the SDK but I can't make any promise. In the meantime, you can iterate through the patcher, looking for any table object whose attribute name corresponds to what you're looking for, and ask for the range attribute. Should be a fun exercise ;-)
    • Aug 04 2012 | 4:09 pm
      Or an easier way might be to initialize a table object in your C code with the appropriate name and query that object, hence you would spare the need of iterating through the patcher. Since tables with the same name should hold the same information, theoretically it should return the same range as any other table sharing the same name. However, I didn't test this solution, use it at your own risk.
      HTH, Ádám
    • Aug 04 2012 | 10:09 pm
      OK, thanks guys... It would be nice to have it added to the SDK, since when working with tables the range is almost always a much needed parameter.
      - Luigi