Skip to content

Various fixes to get pad mode working#5

Open
ahosfield wants to merge 9 commits into
nuno-andre:mainfrom
ahosfield:main
Open

Various fixes to get pad mode working#5
ahosfield wants to merge 9 commits into
nuno-andre:mainfrom
ahosfield:main

Conversation

@ahosfield

Copy link
Copy Markdown

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