Skip to content

Commit

Permalink
Update cfillion_SWS CF_Preview API demo.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
cfillion authored Feb 3, 2024
1 parent 2ff5011 commit 6e71bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Development/cfillion_SWS CF_Preview API demo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ local function window()
local avail_w, avail_h = ImGui.GetContentRegionAvail(ctx)
local spacing_x, spacing_h = ImGui.GetStyleVar(ctx, ImGui.StyleVar_ItemSpacing())
local meter_h = math.max(spacing_h, ((avail_h + spacing_h) / peakChans) - spacing_h)
for i = 0, peakChans do
for i = 0, peakChans - 1 do
local peak = select(2, reaper.CF_Preview_GetPeak(preview, i))
ImGui.ProgressBar(ctx, peak, -FLT_MIN, meter_h, ' ')
end
Expand Down

0 comments on commit 6e71bb7

Please sign in to comment.