Skip to content

Release Cycle Fade Shape (Mousewheel) v1.0 #1604

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

grayson-solis
Copy link
Contributor

No description provided.

Comment on lines +72 to +74
wheel_dir = 1 -- wheel up
elseif val < 0 then
wheel_dir = -1 -- wheel down
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Up/down is inverted: scrolling up selects the previous fade & vice versa (ignore if it's the intended behavior).

Comment on lines +58 to +66
local is_new, name, midi_val = reaper.MIDI_GetRecentInputEvent(0)

if is_new then
if midi_val == 1 then -- wheel up
wheel_dir = 1
elseif midi_val == 127 then -- wheel down
wheel_dir = -1
end
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be bogus? The third return value of MIDI_GetRecentInputEvent is "timestamp in samples relative to the current position".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants