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

Add ActiveSensing message #57

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions adafruit_midi/active_sensing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# SPDX-FileCopyrightText: 2024 Matthew Badeau
#
# SPDX-License-Identifier: MIT

"""
`adafruit_midi.active_sensing`
================================================================================

Active Sensing MIDI message.


* Author(s): Matthew Badeau

Implementation Notes
--------------------

"""

from .midi_message import MIDIMessage

__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MIDI.git"


class ActiveSensing(MIDIMessage):
"""Active Sensing MIDI message.

Active Sensing message is a keepalive message sent every 300 milliseconds
to tell the bus that the session is still good and alive.
"""

_STATUS = 0xFE
_STATUSMASK = 0xFF
LENGTH = 1
_slots = []


ActiveSensing.register_message_type()