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


    Jul 30 2015 | 4:48 am
    Hi
    Is there an easy way to get nonempty clipnames or count from a track? Searched and couldn't find any straightforward method.
    stonerich

    • Jul 30 2015 | 4:53 pm
      Not easy, but here is a way to get the clip names from a track (where the device is loaded).
    • Jul 30 2015 | 4:56 pm
      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).
      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....
    • Jul 31 2015 | 1:09 am
      Hi and thanks!
      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):