[stb] incomplete parameter list in SelectParameter

Learn about building and using Max for Live devices.
Post Reply
ztutz
Posts: 100
Joined: Sat Jul 30, 2005 5:59 pm
Contact:

[stb] incomplete parameter list in SelectParameter

Post by ztutz » Tue Sep 29, 2009 1:11 pm

I've appended a small test of the live.remote~ object to this post that should show bug.

To repro:
Add instance of Operator to default MIDI track.
Add appended audio effect to default audio track.
Using audio effect menus, examine parameters available for automation within the Operator instance.
Note that the list is very incomplete - the Pitch Envelope Amount, for example, is missing, among others.

Live 8.1b4
Max 40212
Mac OSX 10.5.8

<pre><code>
----------begin_max5_patcher----------
423.3ocsT0zRrCCEcc6uhPV2WHe2VW6REDboHOxzFlIxzzRZFQQ7+toosi0u
FmQwMAx8d6gy4bOoOkl.W09ftGBNCbCHI4ozjjXogBIS2SfMpGp1p5iiAW0o
7UazNX1Xy6UNqpQG6cI+BjpyftVuUW4OWeuoROOmcWiwtU6inPlJFwxXW+eW
X9QVPIHoTVVHy.LIJmQobVFfPKPRJtjPBkyQkRImH.2NCiS2qsdk2zZWBuoN
Rq1U28OBdAQZ24eOSNnFPAGHP0YDF+b+ic5QJCg6YhxsdxM+TxsPmDBhID3b
ZFfJQ3BAGmGzImgDTFlNJeBlIELvsCH8bZ5vQ1wtm148A23zcebFnb3fhmOO
IelcXe9Cd2JkcM76LqufV+Da4.w2pMss85Nkq4jsMLJWTPDEYfho7qXHzVhx
IgTaXwxCqaoPxkmjYJ9Qg1qTtPCu18WjaKQbtL9lTD1ATLgW9kJcw9IBKbqw
99+1Dcyg5uco02tyUMyy4fE30nXst2ar6Muad8U9hg1Xpq0w93oJMl5tVi0u
WreZD5n4D9X3j3WvovkmSeABAaES
-----------end_max5_patcher-----------
</code></pre>

benbracken
Posts: 68
Joined: Tue Sep 01, 2009 4:07 pm

Re: incomplete parameter list in SelectParameter abstraction

Post by benbracken » Tue Sep 29, 2009 8:57 pm

This is because of the default zl list length, which is 256, so its cutting off a bunch of at the tail end of the device parameter ID dump (which in the case of Operator is quite long). I believe the offending zl is [zl len] in the M4L.api.GetParameterNames abstraction. Upping the list size to 2048 (why not?) does the trick here.

-Ben

ztutz
Posts: 100
Joined: Sat Jul 30, 2005 5:59 pm
Contact:

Re: incomplete parameter list in SelectParameter abstraction

Post by ztutz » Tue Sep 29, 2009 10:54 pm

Awesome, thanks! I've definitely seen some huge parameter lists in VST softsynths - 2048 may barely cover it ;)

Post Reply