Update split-benchmark script (fix autoconnect)
This commit is contained in:
parent
58830d857c
commit
0033929e7f
@ -1,6 +1,11 @@
|
|||||||
-- cd gtk2_ardour; ./arlua < ../tools/split_benchmark.lua
|
-- cd gtk2_ardour; ./arlua < ../tools/split_benchmark.lua
|
||||||
|
|
||||||
reclen = 30 -- seconds
|
-- This script creates some tracks, records noise,
|
||||||
|
-- and then splits recorded regions on all tracks on every
|
||||||
|
-- timecode frame (30 regions/sec)
|
||||||
|
|
||||||
|
reclen = 30 -- seconds to record
|
||||||
|
n_tracks = 16 -- number of tracks to create
|
||||||
|
|
||||||
backend = AudioEngine:set_backend("None (Dummy)", "", "")
|
backend = AudioEngine:set_backend("None (Dummy)", "", "")
|
||||||
backend:set_device_name ("Uniform White Noise")
|
backend:set_device_name ("Uniform White Noise")
|
||||||
@ -9,7 +14,7 @@ os.execute('rm -rf /tmp/luabench')
|
|||||||
s = create_session ("/tmp/luabench", "luabench", 48000)
|
s = create_session ("/tmp/luabench", "luabench", 48000)
|
||||||
assert (s)
|
assert (s)
|
||||||
|
|
||||||
s:new_audio_track (1, 2, nil, 16, "", ARDOUR.PresentationInfo.max_order, ARDOUR.TrackMode.Normal)
|
s:new_audio_track (1, 2, nil, n_tracks, "", ARDOUR.PresentationInfo.max_order, ARDOUR.TrackMode.Normal, true)
|
||||||
|
|
||||||
for t in s:get_tracks():iter() do
|
for t in s:get_tracks():iter() do
|
||||||
t:rec_enable_control():set_value(1, PBD.GroupControlDisposition.UseGroup)
|
t:rec_enable_control():set_value(1, PBD.GroupControlDisposition.UseGroup)
|
||||||
@ -76,7 +81,7 @@ for x = 2, cnt do
|
|||||||
local t_end = ARDOUR.LuaAPI.monotonic_time ()
|
local t_end = ARDOUR.LuaAPI.monotonic_time ()
|
||||||
|
|
||||||
Session:request_locate((playhead + stepsize * n_steps), ARDOUR.LocateTransportDisposition.MustStop, ARDOUR.TransportRequestSource.TRS_UI)
|
Session:request_locate((playhead + stepsize * n_steps), ARDOUR.LocateTransportDisposition.MustStop, ARDOUR.TransportRequestSource.TRS_UI)
|
||||||
print (count_regions (), (t_end - t_start) / 1000 / n_steps)
|
print ("n_regions:", count_regions (), "split operation dT:", (t_end - t_start) / 1000 / n_steps, "ms")
|
||||||
collectgarbage ();
|
collectgarbage ();
|
||||||
ARDOUR.LuaAPI.usleep(500000)
|
ARDOUR.LuaAPI.usleep(500000)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user