In this code I see methods for Fluxamasynth libraries but no relation to the code I am using
#include "Fluxamasynth.h" //will I need this?
Fluxamasynth synth; //will I need this?
#define c3 48 // define our notes to their midi values
#define e3 52
#define g3 55
#define c4 60
void setup() {
Serial.begin(31250);
synth.programChange(0, 0, 40);
synth.programChange(0, 1, 0);
}
void loop()
{
synth.noteOn(0, c4, 127); // play 1 note (C4) on channel 0
delay(1000);
synth.noteOff(0, c4);
synth.noteOn(1, c3, 127);
synth.noteOn(1, e3, 127); // play 3 notes (C3, E3, G3) on channel 1
synth.noteOn(1, g3, 127);
delay(1000);
synth.noteOff(1, c3);
synth.noteOff(1, e3);
synth.noteOff(1, g3);
}
and does these work with synth.noteOn and synth.noteOff
#define MIDI_COMMAND_NOTE_OFF 0x80
#define MIDI_COMMAND_NOTE_ON 0x90
#define MIDI_COMMAND_SOUNDS_OFF 0xB0//I see no methods for these.
And This...how do I set it up as a instrumtent with out playing notes automaticaly and keeping the parameters.
synth.noteOn(0, c4, 127); // play 1 note (C4) on channel 0