Skip to content

Commit

Permalink
Add panning info to results page
Browse files Browse the repository at this point in the history
  • Loading branch information
chmaha committed Feb 21, 2025
1 parent 4e565a5 commit 1a59ca9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ReaClassical/ReaClassical_Auto Set Recording Inputs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ function main()


if input_channel < MAX_INPUTS then
set_pan(mixer_track, mixer_trackname)
local pan_setting = set_pan(mixer_track, mixer_trackname)
local new_input_channel = assign_input(input_track, is_pair, input_channel)
if new_input_channel then
input_channel = new_input_channel
local channel_info = is_pair and string.format("%d/%d", input_channel - 1, input_channel) or
string.format("%d", input_channel)
local channel_type = is_pair and "(stereo)" or "(mono)"
local channel_type = is_pair and "(stereo)" or "(mono -- " .. pan_setting .. ")"

assignments[#assignments + 1] = string.format("%s: %s %s", channel_info, mixer_trackname, channel_type)
end
Expand Down Expand Up @@ -202,15 +202,16 @@ function set_pan(track, name)
for _, word in ipairs(left_words) do
if lower_name:match("%s" .. word .. "$") then
SetMediaTrackInfo_Value(track, "D_PAN", -1.0) -- 100% Left
return
return "100%L"
end
end
for _, word in ipairs(right_words) do
if lower_name:match("%s" .. word .. "$") then
SetMediaTrackInfo_Value(track, "D_PAN", 1.0) -- 100% Right
return
return "100%R"
end
end
return "center"
end

---------------------------------------------------------------------
Expand Down

0 comments on commit 1a59ca9

Please sign in to comment.