thanks for that solution. It works well for a pattern of notes in a sequence. But how would you do the same for a sequence that is a pattern for an automated parameter? (as these don’t transfer across as midi files as far as I can tell – in this case I’m automating a pitch effect but I guess it could be volume, pan, etc)