-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Add new Network MIDI 2.0 host stack #93933
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d7e7547
audio: midi: improve API documentation
titouanc ece75f9
lib: midi2: new UMP Stream responder library
titouanc 126a2b0
usb: device_next: usbd_midi: mark UMP group as 31.25kb/s from devicetree
titouanc 713831f
samples: subsys: usb: midi: demonstrate usage of UMP Stream responder
titouanc 2f5763e
net: lib: midi2: new Network MIDI 2.0 host stack
titouanc e67977d
boards: shields: olimex_shield_midi: new shield
titouanc 2ba64b2
samples: net: midi2: new sample
titouanc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Copyright (c) 2025 Titouan Christophe | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| config SHIELD_OLIMEX_SHIELD_MIDI | ||
| def_bool $(shields_list_contains,olimex_shield_midi) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| .. _olimex_shield_midi: | ||
|
|
||
| Olimex SHIELD-MIDI | ||
| ################## | ||
|
|
||
| Overview | ||
| ******** | ||
|
|
||
| This is a MIDI shield which allows Arduino like boards to receive and send MIDI | ||
| messages. The shield allows direct wiring of up to 5 piezzo sensors and a | ||
| keyboard (with buttons and serial resistors) making it ideal for drums projects. | ||
|
|
||
| .. figure:: olimex_shield_midi.jpg | ||
| :align: center | ||
| :alt: Olimex SHIELD-MIDI | ||
|
|
||
| * MIDI-IN, MIDI-OUT and MIDI-THRU connectors | ||
| * 5 Piezzo sensors for drum implementation | ||
| * Keyboard for piano implementation | ||
| * Works with both 3.3V and 5V Arduino-like boards | ||
|
|
||
| More information on the `SHIELD-MIDI website`_. | ||
|
|
||
| Peripherals | ||
| *********** | ||
|
|
||
| The following peripherals are available in Zephyr: | ||
|
|
||
| - MIDI IN/OUT: on ``midi_serial`` (set at 31.25kb/s) | ||
| - leds: ``midi_green_led``, ``midi_red_led`` | ||
|
|
||
| Programming | ||
| *********** | ||
|
|
||
| Set ``--shield olimex_shield_midi`` when you invoke ``west build``. For example: | ||
|
|
||
| .. zephyr-app-commands:: | ||
| :zephyr-app: samples/net/midi2 | ||
| :board: nucleo_f429zi | ||
| :shield: olimex_shield_midi | ||
| :goals: build | ||
|
|
||
| .. _SHIELD-MIDI website: | ||
| https://www.olimex.com/Products/Duino/Shields/SHIELD-MIDI/open-source-hardware |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions
20
boards/shields/olimex_shield_midi/olimex_shield_midi.overlay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| /* | ||
| * Copyright (c) 2025 Titouan Christophe | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| / { | ||
| leds { | ||
| midi_green_led: midi-green-led { | ||
| gpios = <&arduino_header 13 GPIO_ACTIVE_HIGH>; | ||
| }; | ||
|
|
||
| midi_red_led: midi-red-led { | ||
| gpios = <&arduino_header 12 GPIO_ACTIVE_HIGH>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| midi_serial: &arduino_serial { | ||
| current-speed = <31250>; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| shield: | ||
| name: olimex_shield_midi | ||
| full_name: Olimex SHIELD-MIDI | ||
| vendor: olimex | ||
| supported_features: | ||
| - led | ||
| - uart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I don't know about this technically, but this sounds like something that might be more future-proof as an enum. you can decide.