Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bug #1066: Add helper function to send SysEx/MTC via usb-device-midi#1068

Open
mungewell wants to merge 1 commit intomicropython:master from
mungewell:bug_1066
Open

Bug #1066: Add helper function to send SysEx/MTC via usb-device-midi #1068
mungewell wants to merge 1 commit intomicropython:master from
mungewell:bug_1066

Conversation

@mungewell
Copy link

@mungewell mungewell commented Nov 25, 2025

I was using USB-device-midi to send MTC to the host, which is essentially SysEx. But was slowed by the missing helper function to send the packet of SysEx. Anyhow, I wrote one...

Full example script here:
https://github.com/orgs/micropython/discussions/18450#discussioncomment-15043069

Copy link
Member

dpgeorge commented Dec 3, 2025

Thanks for the contribution.

But I'm a bit confused, I thought system exclusive messages were a completely different format, namely:

  • they start with 0xF0
  • they have an number of data bytes with the most-sig-bit clear
  • they end with 0xF7

How does that differ to the sys ex added here?

Copy link
Author

You are correct, SysEx generally starts with 0xF0 and ends with 0xF7.

The helper function takes an array of bytes (say "0xf07f7f010160000000f7") and fragments it to pass over USB-midi protocol, then the USB host reassembles it to pass to client application.

The example script (for Pico) generates both the long and short messages that MTC uses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

USB-device-midi is missing helper function to send SysEx

AltStyle によって変換されたページ (->オリジナル) /