-
Notifications
You must be signed in to change notification settings - Fork 25
Expose velocity attribute #48
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
Conversation
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.
Thank you! One suggestion.
@@ -38,17 +38,17 @@ class NoteOff(MIDIMessage): # pylint: disable=duplicate-code | |||
def __init__(self, note, velocity=0, *, channel=None): | |||
self.note = note_parser(note) | |||
"""key, either int (0-127) or string that will be turned off """ | |||
self._velocity = velocity | |||
self.velocity = velocity |
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.
Please add a comment after it like self.note above. That will make it show up in the docs.
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.
Thank you!
Updating https://github.com/adafruit/Adafruit_CircuitPython_SCD4X to 1.3.0 from 1.2.3: > Merge pull request adafruit/Adafruit_CircuitPython_SCD4X#13 from tekktrik/dev/clearer-i2c-failure > Fixed readthedocs build > Post-patch cleanup > Consolidate Documentation sections of README Updating https://github.com/adafruit/Adafruit_CircuitPython_MIDI to 1.4.7 from 1.4.6: > Merge pull request adafruit/Adafruit_CircuitPython_MIDI#48 from tekktrik/dev/expose-velocity-attr > Fixed readthedocs build > Consolidate Documentation sections of README
Resolves #47 by exposing the
velocity
attribute, just asNoteOn
does. Required disablingduplicate-code
pylint warning.