Maximum dictionary size exceeded (Max for Live)

arne's icon

Attempting to use the new "get_selected_notes_extended" to access an entire midi file in a clip with Max for Live, but I'm getting an error message "Maximum dictionary size exceeded" when there are more than 136 beats (34 measures) and 122 extracted events. The midifile is 50 measures long (looks and plays fine in Live).
I can get around this by extracting the events in smaller chunks into a coll and then collating them all, but this seems inelegant.
What *is* the limit to the new dictionary method in M4L? Is there a better way to do this?

schlam's icon

Which Live/Max version do you own ?
I remember there were a change with the handle of large dictionary in one of the latest live beta or max release...

arne's icon

Live 11.0.2, Max 8.1.11.
The limit of the dictionary created seems to be 125 notes...

schlam's icon

Try to download the last live beta.
It's 11.0.5b3.

Here is a piece of the releases notes for 11.0.5b2 :

《 11.0.5b2 Release Notes

New features and improvements:

  • The Max for Live API now supports large dicts 》

arne's icon

Works in the Live Beta!
Thanks for pointing that out.

schlam's icon

glad to manage to help you !
cheers !