playlist~ to dictionary

Dan Laüt's icon

When dumping the content of a playlist~ to a dict (“getcontent” message), the resulting dictionary contains a single key “clips” with the clip data under it a subdirs. These subdirs have no keys.

Contents of a playlist~ with 2 entries


They can be accessed by getting “clips[n]” from the dict, as if each subdir is a cell in an array, but there is only one array under the “clips” key.

I have not been able to reproduce a dict structure with keyless subdirs like that.

I’m at a loss how to query the dict for the existence of, say, a field filename: “a.mp3” without traversing all the subdirs using get clips[n].