Skip to content

Commit

Permalink
Allow use without first opening preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
chmaha committed Dec 12, 2024
1 parent 325a688 commit 93ac599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReaClassical/ReaClassical_Audition_with_playrate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ local _, input = GetProjExtState(0, "ReaClassical", "Preferences")
local _, mastering = GetProjExtState(0, "ReaClassical", "MasteringModeSet")
mastering = (mastering ~= "" and tonumber(mastering)) or 0
local ref_is_guide = 0
local audition_speed = 1
local audition_speed = 0.75
if input ~= "" then
local table = {}
for entry in input:gmatch('([^,]+)') do table[#table + 1] = entry end
if table[7] then ref_is_guide = tonumber(table[7]) or 0 end
if table[9] then audition_speed = tonumber(table[9]) or 1 end
if table[9] then audition_speed = tonumber(table[9]) or 0.75 end
end

function main()
Expand Down

0 comments on commit 93ac599

Please sign in to comment.