SQL - What's possible?

    Mar 05 2012 | 5:45 pm
    Hey everybody,
    I was thinking about building a SQL database but am not sure what is possible to do with it.
    At the moment I have no idea about SQL but it seems like that it could offer a good solution.
    So, is it possible to build a complete storage/data system with SQL for Max? Beside the capability of saving values and attributes of common Max objects I'd also like to save variables of mxj externals and FTM-Ircam objects. ...further I'd like to be able to save what objects are used within a patcher and how they are connected.
    If there's a way, what could be a first step? Any experiences with SQL and Max?
    Greetings, Alex

    • Mar 05 2012 | 6:14 pm
      Hi Alex,
      MaxMsp comes with a full SQLite installation. Which means that you do much more than just Storing Data. I.E. group data from different tables, searching for data with specific criteria, all kind of sorting/ordering - working with keys/unique keys etc, and probably the best advantage is that SQL is good in performance when It comet to large set of data.
      Here is a quite good introduction of what you can do in SQL. http://www.w3schools.com/sql/default.asp
      I remember that there was a very good article written by a C74 staff member here - but right now I can't find it...Maybe someone else remembers. Jan
    • Mar 05 2012 | 6:16 pm
    • Mar 05 2012 | 7:56 pm
      Hey Jan,
      thanks a lot! Also for the introduction links. That sounds quite nice.
      But what is very unclear to me is in which ways data from Max can be put into the database. In the example patches of the c74 introduction the data is put in kind of manually via patch cords. Is it possible to acces(read/write) values of MaxObjects from a database directly, cordless? Like with scripting names?
      As I read in Max SQLite can be realized with Javascript or C. Does one these APIs provide a better functunality for building a database?
      Greetings, Alex
    • Mar 06 2012 | 1:25 am
      I figured out values from common Max objects can be accessed with the getvalue, setvalue message from C and Javascript.