Code:
function print(...)
local t = {}
for i, v in ipairs( { ... } ) do
t[i] = tostring( v )
end
reaper.ShowConsoleMsg( table.concat( t, " " ) .. "\n" )
end
function loop()
local next_pos = reaper.GetPlayPosition2( )
print(next_pos)
reaper.defer(loop)
end
reaper.defer(loop)
if the transport stops the value still runs, if the transport pauses it does pauses the tempo .
Wonder if that is the desired behavior