mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Second round of Lua script API updates
This commit is contained in:
parent
1abf6a77d6
commit
76c0f42ecb
23 changed files with 76 additions and 112 deletions
|
|
@ -15,7 +15,7 @@ function factory (params) return function ()
|
|||
local playlist = route:to_track():playlist ()
|
||||
playlist:to_stateful ():clear_changes ()
|
||||
for region in playlist:regions_at (pos):iter () do
|
||||
playlist:split_region (region, ARDOUR.MusicSample (pos, 0))
|
||||
playlist:split_region (region, Temporal.timepos_t (pos))
|
||||
end
|
||||
if not Session:add_stateful_diff_command (playlist:to_statefuldestructible ()):empty () then
|
||||
add_undo = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue