Question about

This part of my script should start playback from the beginning of the entire song, but it starts from the beginning of the current pattern:

 local t =  
 local startpos = t.playback_pos  
 local follow_player=t.follow_player  
 if (t.playing == false) then  
 startpos.sequence = 1  
 startpos.line = 1  
 t.playback_pos = startpos  

I wasn’t quite sure myself when I had this issue, but I ‘fixed’ it by using transport.edit_pos instead.

Thanks, it works now… though like you, i’m not quite sure why it doesn’t work with t.playback_pos :?

Simply try this instead:  

Also works, and it seems like a much cleaner way to do it … thanks!