An easy way to get nonempty clipnames or count from a track?

stonerich's icon

Hi

Is there an easy way to get nonempty clipnames or count from a track? Searched and couldn't find any straightforward method.

stonerich

broc's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Not easy, but here is a way to get the clip names from a track (where the device is loaded).

Evan's icon

What do you mean by straightforward?
Iterate over the clip slots in a track, check to see if the name is 'None', if it is not, add the name to a list, and add to a count(er).

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

Here's the iteration and checks. It will print to the max window any clip that is named in the track.

EDIT: Broc's is so much better than mine. Use his. I need to remember zl.iter....

stonerich's icon

Hi and thanks!

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

One could think that there would be a ready-made function or patch for this kind of elementary task ...
I will study Broc's solution. Here's my humble effort (it also counts the slots):