Update Lua scripts to use new transport request API

This commit is contained in:
Robin Gareus 2019-11-26 17:02:41 +01:00
parent c10df23a0f
commit 7d8918034a
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
6 changed files with 10 additions and 11 deletions

View file

@ -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