[jmsl] Max instrument dimension names

jmsl at music.columbia.edu jmsl at music.columbia.edu
Sat Sep 13 12:16:07 EDT 2008


Hello J

Yes you can add custom dimensions to MaxInstruments, try this:

myMaxInstrument.getDimensionNamespace().setDimensionName(5, "wiggle");
myMaxInstrument.getDimensionNamespace().setLimits(5, 0, 3);
myMaxInstrument.getDimensionNamespace().setDefault(5, 0);    

Remember to leave dimension 4 as it is alrteady defined in 
MaxDimensionNameSpace ("eventflag")... so you should only add custom 
dimensions from 5 on up

Thanks
Nick Didkovsky

jmsl at music.columbia.edu wrote:
> Hi All,
>
> I can't figure out how I'm supposed to set my Max Instrument's 
> dimension names?? I have a custom namespace for the basic MusicShape 
> I'm using, and I obviously need Max to understand that namespace, and 
> use its formatting. But I can't see any direct way to other than 
> SetDimensionNameSpace(), which appears to only take an existing 
> DimensionNameSpace... If I could take that from my MusicShape 
> directly, I'd be fine, but MusicShape only has a dimensionNames() 
> method, not a "getDimensionNameSpace()" method...
>
> Needless to say, I'm confused.
>
> J.
>
> _______________________________________________
> jmsl mailing list
> jmsl at music.columbia.edu
> http://music.columbia.edu/mailman/listinfo/jmsl


More information about the jmsl mailing list