MIDI
MIDI is a Musical Instrument Digital Interface, which is used to control the synthesizers, sequencers and other musical devices.
In Arduino, the hardware required are:
- Arduino Uno
- Bread Board
- USB Cable
- Wires
- LED
- Midi to USB
- B10k Linear potentiometer
At first connect the Arduino to pc with the help of USB then connect the Midi to USB with Arduino. Also, attach the potentiometer to the breadboard and with the help of wires connect it with the Arduino as well as connect a LED to the Arduino.
Then, from the Arduino example go to communication and use the Midi code:
Code:
void setup() {
// Set MIDI baud rate:
Serial.begin(31250);
}
void loop() {
// play notes from F#-0 (0x1E) to F#-5 (0x5A):
for (int note = 20; note < 72; note++) {
//Note on channel 1 (0x90), some note value (note), middle velocity (0x45):
noteOn(0x90, note, 120);
delay(100);
//Note on channel 1 (0x90), some note value (note), silent velocity (0x00):
noteOn(0x90, note, 0x00);
delay(100);
}
}
// plays a MIDI note. Doesn't check to see that cmd is greater than 127, or that
// data values are less than 127:
void noteOn(int cmd, int pitch, int velocity) {
Serial.write(cmd);
Serial.write(pitch);
Serial.write(velocity);
}
After connecting the Midi, Arduino, and USB wires here is the outcome:
MIDI Standard:
MIDI is a Musical Instrument Digital Interface, which is used to control the synthesizers, sequencers and other musical devices. Also, with the help of MIDI message everyone can communicate with each other.
Examples of MIDI Standard:
1. ISO 9000: It gives direction and devices to association to guarantee their items.
2. USB : It is a standard type of interfacing peripherals to PCs and different gadgets which also gives a typical point of interaction to gadgets like keyboards, mouse, printers etc
3. PDF: A type of standard for presenting any documents and also ensure documents to print clearly.





Comments
Post a Comment