#include <MIDI.h>
MIDI_CREATE_DEFAULT_INSTANCE();
void setup() {
MIDI.begin();
}
/*
44 hi hat apretado
42 hi hat normal
46 hi hat abierto
49 splash
32 crash
51 ride
34 bass
33 snare
37 tick
48 tom 1
45 tom 2
41 tom 3
*/
unsigned char notas[12] = {44, 42, 46, 49, 32, 51, 34, 33, 37, 48, 45, 41};
void loop() {
for (int i=0; i<12; i++)
{
MIDI.sendNoteOn(notas[i],127,10); // Send a Note (pitch, velo 127 on channel 10)
delay(1000);
MIDI.sendNoteOff(notas[i],0,10); // Stop the note
}
delay(3000);
}
No hay comentarios:
Publicar un comentario