Rather a lot of Javascript for Max

    • Jan 15 2010 | 11:23 pm
      Impressive work, Tom!
      Thanks for sharing.
    • Feb 20 2010 | 10:47 am
      I thought #include was not possible in Max/MSP javascript? How is it that you have #include statements?
    • Feb 20 2010 | 11:14 am
      cpp will pre-process any text file.
    • Feb 21 2010 | 12:24 pm
      What do you mean exactly?
      I can't stick #include at the top of my .js file... Where would I specify my includes then?
    • Feb 21 2010 | 1:59 pm
      If you have the folder "tom-swirly-max-javascript," take a look at "Makefile." Swirly's Javascript files (.js) contain cpp directives to slice and dice the source according to certain configurations he's established, mostly to create and run a series of test cases for his code. The output is a ".jso" file, which is preprocessed Javascript.
      You could also run diff against "js/write_lom.js" and "./write_lom.jso," for example, to get a visceral understanding of what he's doing.