Question about renoise.song().transport.playback_pos

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 = renoise.song().transport  
 local startpos = t.playback_pos  
 local w=renoise.app().window  
 local follow_player=t.follow_player  
  
 if (t.playing == false) then  
 startpos.sequence = 1  
 startpos.line = 1  
 t.playback_pos = startpos  
 t:start(renoise.Transport.PLAYMODE_RESTART_PATTERN)  
 end  
  
  
  

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:

renoise.song().transport:trigger_sequence(1)  

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