fix loop example script (updated API)
authorRobin Gareus <robin@gareus.org>
Sun, 10 Apr 2016 21:02:00 +0000 (23:02 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 10 Apr 2016 21:02:00 +0000 (23:02 +0200)
scripts/s_tomsloop.lua

index 77a7b681168931541bbdcfca2a766b4e60e32ab3..d4b2fc049c61ec57c97aae83d64680ffe723d31f 100644 (file)
@@ -55,8 +55,7 @@ function factory () return function ()
                end
 
                -- check if there are any regions in the loop-range of this track
-               local range = Evoral.Range (loop:start (), loop:_end ())
-               if playlist:regions_touched (range):empty () then
+               if playlist:regions_touched (loop:start (), loop:_end ()):empty () then
                        goto continue
                end