-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Change tempo knob behavior and stop text scrolling on OLED #176
Conversation
commented out OLED text scrolling
reversed tempo knob function so turning knob increases BPM by 1 an pushing and turning the tempo knob increases BPM by 4
@@ -1350,8 +1350,8 @@ void View::drawOutputNameFromDetails(int outputType, int channel, int channelSuf | |||
else { | |||
OLED::drawString(nameToDraw, 0, yPos, OLED::oledMainImage[0], OLED_MAIN_WIDTH_PIXELS, textSpacingX, | |||
textSpacingY); | |||
OLED::setupSideScroller(0, name, 0, OLED_MAIN_WIDTH_PIXELS, yPos, yPos + textSpacingY, textSpacingX, | |||
textSpacingY, false); | |||
//OLED::setupSideScroller(0, name, 0, OLED_MAIN_WIDTH_PIXELS, yPos, yPos + textSpacingY, textSpacingX, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be a more useful option for the menu if it still were to scroll the full name once and then stop. Although this doesn't seem to be an option in the function signature yet..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I am a relative novice and implemented this change after seeing what minor things I could understand enough to modify without breaking anything. Any suggestions or modifications are welcome, and scrolling once would be better than no scrolling (though I prefer this to infinite scrolling personally)
On the oled version, it normally doesn't increment (just) by 4. I think it did on the non-oled. |
@x3003 > All I did was swap the coarse/fine tempo behavior code, so whatever it did by default now happens when pushing and turning the tempo knob instead. It isn't always by 4 (for example if my tempo is 91 and I hold and turn the encoder it will jump to 96, not 95). But I didn't modify the original behavior other than swapping what happens when turning versus pushing and turning the tempo knob. |
Couple things
Also welcome to the community! |
@m-m-adams Thank you for the kind welcome and for the helpful feedback. This is my first time going through this process so I appreciate the patience. Should I close this pull request and create two separate ones using this same branch (that includes both changes), or should I make a separate branch for each change and make separate pull requests for each branch? |
@suivaht Take a look at some other feature addition PRs to see how the menu settings are implemented. Love the tempo change! It's been a pain for me for years. It was on my list of things to do but you beat me to it! 👏 |
@suivaht Close this one and submit 2 separate ones, each with only one change. |
Two separate feature branches works best, if you open two PRs from the same branch name GitHub will helpfully recombine them. You could close this PR or keep it for the side scrolling (by force pushing back to the view change). Then make a clean branch from community for the tempo change and put both PRs into draft. Once they're integrated into the menu take them out of draft to show that they're ready for testing and merge. Thanks! |
Closing this for now and will create two separate branches after I get menu items in the community features menu... Thanks for the helpful comments! |
Hello everyone... two things that have bugged me with my Deluge is the tempo knob changing in 4 bpm increments by default, so I switched the tempo knob behavior so it changes in 1 bpm increments by default and changes by 4 when you push in and turn.
I also disabled OLED text scrolling because i find it incredibly distracting. I simply commented out a line in View.cpp.
I would like to have these both available as options in the community features menu of the community branch but I am not sure how to go about implementing that... Ideally users could toggle either one of these options on or off.