mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-27 15:38:19 +01:00
Update Lua scripts to use new transport request API
This commit is contained in:
parent
c10df23a0f
commit
7d8918034a
6 changed files with 10 additions and 11 deletions
|
|
@ -23,13 +23,13 @@ function factory ()
|
|||
-- event at 09:30:00 UTC (here: rec-arm + roll)
|
||||
if (now >= hhmmss (09, 30, 00) and _last_time < hhmmss (09, 30, 00)) then
|
||||
Session:maybe_enable_record (false)
|
||||
Session:request_transport_speed (1.0, true)
|
||||
Session:request_transport_speed (1.0, true, ARDOUR.TransportRequestSource.TRS_UI)
|
||||
end
|
||||
|
||||
-- event at 09:32:00 UTC (here: rec-stop)
|
||||
if (now >= hhmmss (09, 32, 00) and _last_time < hhmmss (09, 32, 00)) then
|
||||
Session:disable_record (false, false)
|
||||
Session:request_transport_speed (0.0, true)
|
||||
Session:request_transport_speed (0.0, true, ARDOUR.TransportRequestSource.TRS_UI)
|
||||
end
|
||||
|
||||
_last_time = now
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue