[jmsl] Max instrument dimension names

jmsl at music.columbia.edu jmsl at music.columbia.edu
Sat Sep 13 12:48:29 EDT 2008


Hi J

If you play your MaxInstrument with a MusicShape then MusicShape will do 
the translation element by element, right before it calls instrument.play()
The instrument itself does not do any translating; by the time it has 
its play() method called, all it gets is a timestamp and an array of 
double[].
So translating is the responsibility of whoever calls ins.play()

Follow-up questions welcome!
Nick

jmsl at music.columbia.edu wrote:
> Aaah, thanks so much Nick. I was starting to lose my mind!
>
> I'm assuming then that I can just add my custom dimensions from 5+, 
> then let the built-in translator figure out the name->index mapping... 
> Yes?
>
> J.
>
>
> On 13-Sep-08, at 9:16 AM, jmsl at music.columbia.edu wrote:
>
>> 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
>> _______________________________________________
>> jmsl mailing list
>> jmsl at music.columbia.edu
>> http://music.columbia.edu/mailman/listinfo/jmsl
>
> _______________________________________________
> jmsl mailing list
> jmsl at music.columbia.edu
> http://music.columbia.edu/mailman/listinfo/jmsl


More information about the jmsl mailing list