在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):lathoub/Arduino-AppleMIDI-Library开源软件地址(OpenSource Url):https://github.com/lathoub/Arduino-AppleMIDI-Library开源编程语言(OpenSource Language):C++ 87.4%开源软件介绍(OpenSource Introduction):AppleMIDI (aka rtpMIDI) for ArduinoEnables an Arduino with IP/UDP capabilities (Ethernet shield, ESP8266, ESP32, ...) to participate in an AppleMIDI session. Important: Please read the note below on enlarging the standard Ethernet library buffersize to avoid dropping MIDI messages! Features
New in 3.2.0
InstallationFrom the Arduino IDE Library Manager, search for AppleMIDI This will also install FortySevenEffects MIDI library Basic Usage#include <Ethernet.h>
#include <AppleMIDI.h>
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
APPLEMIDI_CREATE_DEFAULTSESSION_INSTANCE();
void setup()
{
Ethernet.begin(mac);
MIDI.begin(); // listens on channel 1
}
void loop()
{
// Listen to incoming notes
MIDI.read();
....
if (something) {
// Send MIDI note 40 on, velocity 55 on channel 1
MIDI.sendNoteOn(40, 55, 1);
}
} More usages in the examples folder and in the wiki Hardware
Network Shields
NotesSession namesSession names can get really long on Macs (eg 'Macbook Pro of Johann Gambolputty .. von Hautkopft of Ulm') and will be truncated to the Memory footprintThe memory footprint of the library can be lowered significantly, read the wiki Ethernet buffer sizeIt's highly recommended to modify the Ethernet library or use the Ethernet3 library to avoid buffer overruns - learn more LatencyUse wired Ethernet to reduce latency, Wi-Fi increases latency and latency varies. More of the wiki Arduino IDE (arduino.cc)
ContributingI would love to include your enhancements or bug fixes! In lieu of a formal styleguide, please take care to maintain the existing coding style. Please test your code before sending a pull request. It would be very helpful if you include a detailed explanation of your changes in the pull request. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论