..so to avoid confusion largely on my part, I stared this new topic (related to this thread Serial MIDI and Arduino MIDI - Audio - Arduino Forum) with an appropriate title for easy searching by beginners like me..
I have started this project and was able to make the buttons turn on LEDs as you push them (buttons), much to my delight as a complete arduino Noob. But it's way too far from my aim. My ultimate goal would be 4 buttons that send Program Change 0 to 3 with LED and 2 bank up and down buttons that choose from 10 banks in a guitar amplifier sim program and a 2 x 16 LCD that will show the name of the banks as you scroll up and down.
I am using an Arduino Micro and would send over USB. So far, this the simpliest starting code that worked with the buttons and LEDS. I already included libraries and lines (instance) from the kindhearted Pieter:
#include <frequencyToNote.h>
#include <MIDIUSB.h>
#include <MIDIUSB_Defs.h>
#include <pitchToFrequency.h>
#include <pitchToNote.h>
#include <MIDI.h>
#include <midi_UsbTransport.h>
int ledPin1 = A0;Â //
int ledPin2 = A1; //
int buttonPin1 = 8;Â Â //
int buttonPin2 = 9;Â Â //
int buttonState1 = 0;Â //
int buttonState2 = 0;
static const unsigned sUsbTransportBufferSize = 16;
typedef midi::UsbTransport<sUsbTransportBufferSize> UsbTransport;
UsbTransport sUsbTransport;
MIDI_CREATE_INSTANCE(UsbTransport, sUsbTransport, MIDI);
void setup() {Â
 pinMode(ledPin1, OUTPUT);
 pinMode(ledPin2, OUTPUT);
 pinMode(buttonPin1, INPUT);
 pinMode(buttonPin2, INPUT);
}
void loop() {
 buttonState1 = digitalRead(buttonPin1);
 if(buttonState1 == HIGH) {
  digitalWrite(ledPin1, HIGH);
  ledOffAll();
 digitalWrite(ledPin1, 255);
Â
 }
 buttonState2 = digitalRead(buttonPin2);
Â
 if(buttonState2 == HIGH)
 {
  digitalWrite(ledPin2, HIGH);
  ledOffAll();
  digitalWrite(ledPin2, 255);}
}
 void ledOffAll() {
  digitalWrite(ledPin1, 0);  Â
  digitalWrite(ledPin2, 0);
 }
As a total noob, this would be my preferred approach - the lines of the codes are presented in a beginner friendly chunks. My 1st question is, how will I implement the MIDI part in that code. or is it even possible?