Javascript


1
Jun 10

Max JavaScript for LCD-multislider

LCDSlider

LCDSlider

A couple of years ago I posted this, and I quite like how it came out back then. Now I have updated the LCDSlider a bit, made it scalable and added a rename function on slider names. I also think it looks a bit better as it has got a more structured look than the previous version.

The picture is grayscale, but it doesn’t have to be like that. It can be any color you want, and basically anything can be changed inside one JavaScript file. This approach also makes it easy to add new functions and make the LCDSlider something of your own.

Cheers Arve!


19
Mar 08

Javascript but no JSUI

I have always been a fan of the LCD-object in Max/MSP/Jitter but it is somewhat tedious to control stuff on it because of all those drawing commands….. However I am tired of not being able to use those beloved semantics in Multislider so I’ve made me a javascript interface to make LCD behave like a multislider. I think it came out as a beauty.

cheers..


17
Mar 08

more javascript in max….

I like to write a javascript every now and then to avoid using a million objects in my Max/MSP/Jitter patches, and today was such a nice day for a little javascript…The script came out nice and tidy, but when I wrote another function to send the semantics to an ubumenu for easy navigation in the UI things became somewhat tedious… I’ll keep the receipt around here for anyone interested as there was very little concrete information about this in the documentation (Max/MSP) and even less on the user forums….

Anyway, this is reliable (remove the brackets):
[a=patcher.newobject("user", "ubumenu", 101, 99, 100, 196617, 0,1,1,0);]

The problem was nothing but the font and font size…. With the newdefault method they are messed up, but with newobject everything works out fine. I guess I was confused because the newdefault method creates the object, and allows filling it with content, and anything but the font related stuff…..