get umenu populated by playlist~

Domenico Di Giosa's icon

Hi, beginner here... Is there any chanche to have a umenu which is autopopulated and updated by adding/removing items to the playlist object?

playlist_example.maxpat
Max Patch

Source Audio's icon

modified help file (dictionaries tab)

Max Patch
Copy patch and select New From Clipboard in Max.

Domenico Di Giosa's icon

Thank you SOURCE! That’s Perfect!

Domenico Di Giosa's icon

Is it possible to get messages by dragging samples with in the playlist?

i.e.

I invert items order by dragging first element after the second one so the playlist:

sample1

sample2

sample3

Changes to

sample2

sample1

sample 3

Can you get notification of the elements swap and route the message anywhere else?

Source Audio's icon

you need to set allow reorder attribute, and after reordering the list,

menu gets updated.

Domenico Di Giosa's icon

thanks Source!

i got umenu perfectly updated and in sync with the playlist after your first precious reply to my request.

now my question is different:

can you get messages from playlist when you swap two element's position by dragging them?

something like: "sample1 dragged from position1 to position2 and sample2 changed position2 to position1"?

also... is it advisable to open a new thread for this request?

Source Audio's icon

Whatever you do with playlist items gets updated in dictionary.

You would have to work on dictionary , compare or extract or whatever.

As that is not in my field of interest, maybe someone else could give you a hint.

I would rather concentrate on playback performance.

Domenico Di Giosa's icon

Thanks again for your helpful reply Source! Well appreciated!