Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Song switcher (for live use) v1.7.1 #1442

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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