-
Notifications
You must be signed in to change notification settings - Fork 0
/
Chordifyer.ino
41 lines (36 loc) · 1.05 KB
/
Chordifyer.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "Metronomo.h"
#include "PianoRoll.h"
#include "Pantalla.h"
#include "MidiControl.h"
#include <MIDI.h>
const uint8_t* gradosAcorde = Chordifyer::Acorde::grados3[0];
void setup ()
{
//Serial.begin(9600);
mySerial2Init();
UMIDI.begin(MIDI_CHANNEL_OMNI);
UMIDI.turnThruOff();
MIDI.begin(MIDI_CHANNEL_OMNI);
MIDI.turnThruOff();
MIDI1.begin(MIDI_CHANNEL_OMNI);
MIDI1.turnThruOff();
pixels.begin(); // INITIALIZE NeoPixel strip object (REQUIRED)
pixels.clear(); // Set all pixel colors to 'off'
Chordifyer::PianoRoll::init();
Chordifyer::Metronomo::setBpm(60);
Chordifyer::Metronomo::init();
Chordifyer::Metronomo::start();
Chordifyer::Pantalla::init();
}
void loop()
{
Chordifyer::Metronomo::update();
if (MIDI.read())
{
Chordifyer::MidiControl::msgMidi(MIDI.getType(), MIDI.getData1(), MIDI.getData2(), MIDI.getChannel());
}
if (MIDI1.read())
{
Chordifyer::MidiControl::msgMidi(MIDI1.getType(), MIDI1.getData1(), MIDI1.getData2(), MIDI1.getChannel());
}
}