local itt = ARDOUR.InterThreadInfo () -- bounce progress info (unused)
local loop = Session:locations ():auto_loop_location ()
- local playhead = Session:transport_frame ()
+ local playhead = Session:transport_sample ()
-- make sure we have a loop, and the playhead (edit point) is after it
if not loop then
goto errorout
end
assert (loop:start () < loop:_end ())
- if loop:_end () >= playhead then
+ if loop:_end () > playhead then
print_help();
print ("Error: The Playhead (paste point) needs to be after the loop.")
goto errorout
-- do the actual work
local region = track:bounce_range (loop:start (), loop:_end (), itt, proc, false)
- playlist:add_region (region, playhead, n_paste, false, 0, false)
+ playlist:add_region (region, playhead, n_paste, false, 0, 0, false)
n_regions_created = n_regions_created + 1