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

Various fixes to get pad mode working #5

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ahosfield
Copy link

In class modes.pad.PadMode:

  • Removed fractional part of octave_offset when calculating note_value
  • Truncate note_value to integer

Also:
buttons.pad.PadButton.send_color_direct()

  • Ensure we don't access scolor[3] if length < 4

modes.drum.DrumPad.send_color()

  • Ensure we don't call _button.send_color_direct() when _button is None object

In class modes.pad.PadMode:
* Removed fractional part of octave_offset when calculating note_value
* Truncate note_value to integer

Also:
buttons.pad.PadButton.send_color_direct()
* Ensure we don't access scolor[3] if length < 4

modes.drum.DrumPad.send_color()
* Ensure we don't call _button.send_color_direct() when _button is None object
* Fixed issue of (some) drum racks not being recognized as containing drum pads

* Modify modes._base.find_drum_device() to use find_drum_group_device() which also searches through device chains

* modes.drum.DrumMode.assign_pads():
  * Fix indentation which could cause final for loop to be skipped

* Added pad._button is not None checks

* Added MonoNavSection.MonoNavSection._set_mode() so that button (light on/off) reflects intial state
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.

1 participant