Skip to content

Commit 2b722a3

Browse files
examples: track midi2cpp v0.4.0 / midi2 v0.4.0
- sendFbInfo callsites add the new ui_hint argument. - midi2 dependency pin bumps to v0.4.0 in every recipe (FetchContent GIT_TAG, idf_component.yml, platformio.ini). - rp2040-promicro-ump-test-bench catalog.cpp updates its direct midi2 C99 callsites (note_on, note_off, time_sig, stream_config_*, jr_clock, jr_timestamp, stream_fb_info) to the new signatures. - .github/workflows/ci.yml arduino-compile fallback URL bumps to midi2 v0.4.0.
1 parent aee4776 commit 2b722a3

34 files changed

Lines changed: 79 additions & 64 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
ln -s "$GITHUB_WORKSPACE" ~/Arduino/libraries/midi2cpp
126126
127127
- name: Install midi2 dependency from Library Manager
128-
# midi2cpp depends on midi2 (>=0.3.4) but arduino-cli does not
128+
# midi2cpp depends on midi2 (>=0.4.0) but arduino-cli does not
129129
# walk depends= entries automatically. Install it explicitly.
130130
# Falls back to the GitHub git URL if the registry index has
131131
# not propagated yet (Library Manager indexes within 24h of a
@@ -134,7 +134,7 @@ jobs:
134134
arduino-cli lib update-index
135135
arduino-cli lib install midi2 || \
136136
(arduino-cli config set library.enable_unsafe_install true && \
137-
arduino-cli lib install --git-url https://github.com/sauloverissimo/midi2.git#v0.3.4)
137+
arduino-cli lib install --git-url https://github.com/sauloverissimo/midi2.git#v0.4.0)
138138
139139
- name: Compile Arduino sketches (skip non-sketch dirs)
140140
run: |

examples/adafruit-feather-rp2040-bridge-midi2/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ if(NOT TARGET midi2)
8282
else()
8383
FetchContent_Declare(midi2
8484
GIT_REPOSITORY https://github.com/sauloverissimo/midi2.git
85-
GIT_TAG v0.3.4
85+
GIT_TAG v0.4.0
8686
GIT_SHALLOW TRUE
8787
)
8888
endif()

examples/adafruit-feather-rp2040-host-midi2/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ if(NOT TARGET midi2)
8989
else()
9090
FetchContent_Declare(midi2
9191
GIT_REPOSITORY https://github.com/sauloverissimo/midi2.git
92-
GIT_TAG v0.3.4
92+
GIT_TAG v0.4.0
9393
GIT_SHALLOW TRUE
9494
)
9595
endif()

examples/arduino-nano-esp32-midi2/idf/main/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ dependencies:
77
idf: ">=5.4"
88
midi2:
99
git: https://github.com/sauloverissimo/midi2.git
10-
version: "v0.3.4"
10+
version: "v0.4.0"

examples/arduino-nano-esp32-midi2/idf/main/main.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ static void install_stream_responder(m2device& midi) {
9696
if (target != 0) return;
9797
if (filter & 0x01) {
9898
midi.sendFbInfo(/*active*/ true, /*fb_num*/ 0,
99-
/*direction*/ 0x03, /*first_group*/ 0,
100-
/*num_groups*/ 1, /*midi_ci_ver*/ 0x02,
101-
/*sysex8*/ false, /*protocol*/ 0x02);
99+
/*direction*/ 0x03, /*ui_hint*/ 0x03,
100+
/*first_group*/ 0, /*num_groups*/ 1,
101+
/*midi_ci_ver*/ 0x02, /*sysex8*/ false,
102+
/*protocol*/ 0x02);
102103
}
103104
if (filter & 0x02) midi.sendFbNameUpdate(0, kFbName);
104105
});

examples/esp32-c6-devkitc-multi-midi2/pio/platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ build_flags =
5353
lib_extra_dirs = ../../..
5454

5555
lib_deps =
56-
sauloverissimo/midi2 @ ^0.3.4
56+
sauloverissimo/midi2 @ ^0.4.0
5757
https://github.com/sauloverissimo/ESP32_Host_MIDI.git#v6.0.1
5858

5959
; Pre-build patch: ESP32_Host_MIDI v6.0.0 ships USB Host transport sources

examples/esp32-p4-devkit-bridge-midi2/idf/main/esp32_p4_devkit_bridge.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ void push_fb_info(uint8_t idx) {
182182
g_midi_ptr->sendFbInfo(/*active*/ g_slots[idx].active,
183183
/*fb_num*/ idx,
184184
/*direction*/ 0x03, // bidirectional
185+
/*ui_hint*/ 0x03, // Sender + Receiver
185186
/*first_group*/ base,
186187
/*num_groups*/ kGroupsPerSlot,
187188
/*midi_ci_ver*/ 0x02,

examples/esp32-p4-devkit-bridge-midi2/idf/main/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ dependencies:
77
idf: ">=5.4"
88
midi2:
99
git: https://github.com/sauloverissimo/midi2.git
10-
version: "v0.3.4"
10+
version: "v0.4.0"

examples/esp32-p4-devkit-bridge2-midi2/idf/main/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ dependencies:
77
idf: ">=5.4"
88
midi2:
99
git: https://github.com/sauloverissimo/midi2.git
10-
version: "v0.3.4"
10+
version: "v0.4.0"

examples/esp32-p4-devkit-host-midi2/idf/main/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ dependencies:
77
idf: ">=5.4"
88
midi2:
99
git: https://github.com/sauloverissimo/midi2.git
10-
version: "v0.3.4"
10+
version: "v0.4.0"

0 commit comments

Comments
 (0)