Arduino-USBMIDI
TaskScheduler
Arduino-USBMIDI | TaskScheduler | |
---|---|---|
3 | 5 | |
139 | 1,178 | |
- | - | |
0.0 | 0.0 | |
about 2 years ago | 4 months ago | |
C++ | C++ | |
MIT License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Arduino-USBMIDI
-
How to transform an old MIDI controller straight to USB MIDI without any converters?
But generally speaking MIDI and USB MIDI are based on fundamentally different communication protocols and always require a MCU to do the conversion. An Arduino Micro can do the job well and there are even Libraries with example code that does exactly this. See here: https://github.com/lathoub/Arduino-USBMIDI/blob/master/examples/MIDI_DIN2USB/MIDI_DIN2USB.ino
-
Code for my MIDI keyboard LED strip
Option 3 - Arduino USB MIDI
-
Arduino MIDI controller Help
hmm..yes you would have to code a little bit. But, cool learning experience? The examples are pretty good. This simple one: https://github.com/lathoub/Arduino-USBMIDI/blob/master/examples/Basic_IO/Basic_IO.ino shows part of the code that would replace the serial code in your original sketch. Note the library itself is handling the code that advertises the controller to Linux as a MIDI device. That's an important benefit.
TaskScheduler
-
How do you make a code that does like 2 or 3 things simulatneously?
When you get a little more advanced it's not hard to extend the BWD code to hsndle any number of "time when something should happen". Or you can use something like the TaskScheduler library.
-
Understanding the rarely seen EVERY_N_MILLIS_I ?
Or just use TaskScheduler and never have to worry about this again. https://github.com/arkhipenko/TaskScheduler
-
Event-driven architecture
For reference, I'm a big fan of this scheduler in particular, due to it's simplicity, OO support and a neat extra of sleeping each unused millisecond (low power for free).
-
Current consumption between arduino and HAL?
One of my favourite low power techniques involves using a scheduller for your loop code, and sleep for 1 ms at a time when there are no tasks to run. As seen here.
-
Garden irrigation system based on ESP32
Have you looked at the task scheduler library? https://github.com/arkhipenko/TaskScheduler
What are some alternatives?
EspTinyUSB - ESP32S2 native USB library. Implemented few common classes, like MIDI, CDC, HID or DFU (update).
Arduino-Libs - Arduino Libs & Examples: ADS1147, ADS7846, DAC8760, DS1307, RV8523, MCP2515, WS2812, S65-Display, MI0283QT-2/-9/-11, HX8347D, ILI9341, SSD1331
mt32-pi - 🎹🎶 A baremetal kernel that turns your Raspberry Pi 3 or later into a Roland MT-32 emulator and SoundFont synthesizer based on Circle, Munt, and FluidSynth.
FastLED_examples - FastLED example code, tests, demos, etc
Control-Surface - Arduino library for creating MIDI controllers and other MIDI devices.
LoLa - Low Latency Radio System
USB_Host_Library_SAMD - USB host library 2.0 for Zero/M0/SAMD
Adafruit_Sensor - Common sensor library
Polaron - A DIY drum machine for the teensy microcontroller (hardware / software)
Arduino-AppleMIDI-Library - Send and receive MIDI messages over Ethernet (rtpMIDI or AppleMIDI)
arduino-midi-recorder - Let's build an Arduino-based MIDI recorder!
lcdgfx - Driver for LCD displays running on Arduino/Avr/ESP32/Linux (including Rasperry) platforms