Skip to content

Commit

Permalink
Release Song switcher (for live use) v1.7.1 (#1442)
Browse files Browse the repository at this point in the history
fix validation of song tracks when the project tab is inactive
  • Loading branch information
cfillion authored Oct 17, 2024
1 parent ef8dca6 commit 29b9e5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Various/cfillion_Song switcher.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- @description Song switcher (for live use)
-- @author cfillion
-- @version 1.7
-- @changelog run action markers from take markers in the current song's folder track (REAPER v6+)
-- @version 1.7.1
-- @changelog fix validation of song tracks when the project tab is inactive
-- @provides
-- [main] cfillion_Song switcher/cfillion_Song switcher - Send signal.lua > cfillion_Song switcher/cfillion_Song switcher - Switch to next song.lua
-- [main] cfillion_Song switcher/cfillion_Song switcher - Send signal.lua > cfillion_Song switcher/cfillion_Song switcher - Switch to previous song.lua
Expand Down Expand Up @@ -162,7 +162,7 @@ end

local function isSongValid(song)
for _,track in ipairs(song.tracks) do
if not reaper.ValidatePtr(track, 'MediaTrack*') then
if not pcall(reaper.GetTrackNumMediaItems, track) then
return false
end
end
Expand Down

0 comments on commit 29b9e5f

Please sign in to comment.