Don’t assume anything here - each track has a type you can compare against:
renoise.Track.TRACK_TYPE_SEQUENCER renoise.Track.TRACK_TYPE_MASTER renoise.Track.TRACK_TYPE_SEND renoise.Track.TRACK_TYPE_GROUP
…
Yes, I do not remember exactly why I have trouble checking out child groups (groups within a group).I assumed to compare with renoise.Track.TRACK_TYPE_GROUP was sufficient, but I was not able.It would have to start again to know how to properly clone. Now I have this issue parked.
…
With regard to reading the first line of each pattern, I have finally chosen to rely on the observable of the pattern, by a separate function.The TNC tool has already been published as module inside the GT16-Colors tool , here:
https://forum.renoise.com/t/new-tool-3-1-gt16-colors-v1-2a1-updated-12-june-2017/46473