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 Clamp velocity of selected MIDI notes v1.0.1 #1228

Merged
merged 1 commit into from
Aug 18, 2023
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
-- @description Clamp velocity of selected MIDI notes
-- @author cfillion
-- @version 1.0
-- @provides [main=main,midi_editor,midi_inlineeditor] .
-- @version 1.0.1
-- @changelog Restore compatibility with REAPER before v7.0
-- @provides [main=main,midi_inlineeditor,midi_editor] .
-- @link Forum thread https://forum.cockos.com/showthread.php?t=281810
-- @screenshot https://i.imgur.com/IdK4mL1.gif
-- @donation https://reapack.com/donate
Expand All @@ -25,12 +26,12 @@ for name, func in pairs(reaper) do
if name then ImGui[name] = func end
end

local script_name <const> = 'Clamp velocity of selected MIDI notes'
local script_name = 'Clamp velocity of selected MIDI notes'
local ctx = ImGui.CreateContext(script_name)
local sans_serif = ImGui.CreateFont('sans-serif', 13)
ImGui.Attach(ctx, sans_serif)

local PRESETS_MAX <const> = 8
local PRESETS_MAX = 8
local vel_min, vel_max = 0, 127

function math.clamp(v, min, max)
Expand Down
Loading