Forums > Javascript

Rather a lot of Javascript for Max


January 15, 2010 | 6:01 pm
January 15, 2010 | 11:23 pm

Impressive work, Tom!

Thanks for sharing.

February 20, 2010 | 10:47 am

I thought #include was not possible in Max/MSP javascript? How is it that you have #include statements?

February 20, 2010 | 11:14 am

cpp will pre-process any text file.

February 21, 2010 | 12:24 pm

@vze26m98

What do you mean exactly?

I can’t stick #include at the top of my .js file… Where would I specify my includes then?

February 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.

HTH

Viewing 6 posts - 1 through 6 (of 6 total)

Forums > Javascript