I installed via the Library Manager, hoping for an easy install. I think it would be best if I just manually install as I have moved my portable arduino installation onto cloud storage so it can be shared between systems. Where should I put the library relative the the main arduino folder?
View attachment 39693
Add #include <cstdio> to midi2_bridge.cpp (or midi2_bridge.h):
- Open midi2_bridge.cpp.
- Add this at the top with the other includes:
C++
#include <cstdio>
using std::snprintf;
- Save and recompile
#if __cplusplus < 201703L
# error "midi2cpp requires C++17 or newer. Set CMAKE_CXX_STANDARD=17 (or pass -std=c++17 to your build)."
#endif
#if (__cplusplus < 201703L) && !defined(__cpp_inline_variables) && !defined(__cpp_structured_bindings)
# error "midi2cpp requires C++17 or newer. Set CMAKE_CXX_STANDARD=17 (or pass -std=c++17 to your build)."
#endif
// Add function prototype
extern int usb_midi_write_packed(uint32_t n);
// Add missing function definition
int usb_midi_write_packed_n(const uint32_t *words, uint32_t count) {
int ret = 0;
while (count > 0) {
ret = usb_midi_write_packed(*words);
if (ret < 0) break;
words++;
count--;
}
return ret;
}
[FONT=Calibri]Using MID 2.0
teensy_size: Memory Usage on Teensy 4.1:
teensy_size: FLASH: code:352820, data:33476, headers:8592 free for files:7731576
teensy_size: RAM1: variables:168128, code:340080, padding:20368 free for local variables:-4288
teensy_size: RAM2: variables:5856 free for malloc/new:518432
Error program exceeds memory space
Not Using MIDI 2.0
teensy_size: Memory Usage on Teensy 4.1:
teensy_size: FLASH: code:332084, data:33476, headers:8848 free for files:7752056
teensy_size: RAM1: variables:168128, code:319344, padding:8336 free for local variables:28480
teensy_size: RAM2: variables:5856 free for malloc/new:518432
@yeahtuna Don't feed the troll. Imagine how many kWh of energy and litres of water were wasted so that an LLM could generate a vacuous summary of this thread -- all paid for with some unfortunate suckers retirement savings -- so that a nonsensical spam link could be posted to your thread. The human race is doomei
I'm sorry, life has kept me from being able to pay a lot of attention to this... but I'll get there.Glad to hear it, @ETMoody3.
The Korg Keystage is one of the very devices that satisfy the criteria Paul set, so plugging it into
the Teensy host port is a solid test.
Tell me more about your MIDI-to-CV build. It's exactly the kind of project that gains the most from MIDI 2.0, and I'd love to
understand what you put together.
While you catch up on the reading, there are Teensy recipes to look at. midi2 (the portable C99 core) has teensy-device-midi2,
closer to the metal. midi2cpp (the C++ wrapper) has teensy41-midi2, the control surface and the host. The recipes
pass the MIDI Association's MIDI 2.0 Workbench, so they make a clean reference to start from.![]()