Skip to content

Instantly share code, notes, and snippets.

@RyoKosaka
Last active April 26, 2026 16:49
Show Gist options
  • Select an option

  • Save RyoKosaka/2a338a537d838911e23578c4595d9673 to your computer and use it in GitHub Desktop.

Select an option

Save RyoKosaka/2a338a537d838911e23578c4595d9673 to your computer and use it in GitHub Desktop.
#include <BLEMIDI_Transport.h>
#include <hardware/BLEMIDI_ESP32.h>
BLEMIDI_CREATE_INSTANCE("E-Drum",MIDI);
int tempo = 280;
void setup()
{
MIDI.begin(10);
}
void loop()
{
MIDI.sendNoteOn(36, 100, 10);
MIDI.sendNoteOff(36, 0, 10);
MIDI.sendNoteOn(44, 100, 10);
MIDI.sendNoteOff(44, 0, 10);
delay(tempo);
MIDI.sendNoteOn(44, 100, 10);
MIDI.sendNoteOff(44, 0, 10);
delay(tempo);
MIDI.sendNoteOn(38, 100, 10);
MIDI.sendNoteOff(38, 0, 10);
MIDI.sendNoteOn(44, 100, 10);
MIDI.sendNoteOff(44, 0, 10);
delay(tempo);
MIDI.sendNoteOn(44, 100, 10);
MIDI.sendNoteOff(44, 0, 10);
delay(tempo);
}
@MortenKorstgaard

Copy link
Copy Markdown

How did you setup "Logic Pro X" to read the MIDI signal from ESP32 and make the instrument play? Other than the Korg bluetooth part?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment