Skip to content

Commit

Permalink
Save cursor pos before recording
Browse files Browse the repository at this point in the history
  • Loading branch information
chmaha committed Nov 23, 2024
1 parent a7eefa4 commit de3c89c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ReaClassical/ReaClassical_Take Counter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,8 @@ function check_time()
local stop_pos = GetCursorPosition() + (end_time - start_time)
AddProjectMarker2(0, false, stop_pos, 0, "!1013", 1013, 0)
end
local cursor_pos = GetCursorPosition()
SetProjExtState(0, "ReaClassical", "ClassicalTakeRecordCurPos", cursor_pos)
reaper.Main_OnCommand(1013, 0) -- Record command
SetProjExtState(0, "ReaClassical", "Recording Start", "")
SetProjExtState(0, "ReaClassical", "Recording End", "")
Expand Down

0 comments on commit de3c89c

Please sign in to comment.