P-Comp // Violin Tuner

So this week I attempted to make a tuner for string instruments with a 440A. This tuner was specifically meant for violin beginners, so the four buttons correspond to the E string, A string, D string, and G string. HOWEVER, as the video demonstrates below, I had some issues getting the A, D, and G buttons to play a clean sound.  I know this isn’t an issue with the speaker, as I tried just playing a note without using the buttons through it, but for some reason, the E button is the only one working (and even that one doesn’t produce the best sound). ¯\_(ツ)_/¯

I’d like to figure out why this is happening and how to fix it. Updates to follow. Here’s my code and a better photo because I think it has something to do with my wiring of it:

#include "pitches.h"

int input_g = 7, input_d = 8, input_a = 9, input_e = 10;
int output_g = 2, output_d = 3, output_a = 4, output_e = 5;
int tonePin = 6;
int e, a, d, g;

void setup() {
  Serial.begin(9600);
  pinMode(output_g, OUTPUT);
  pinMode(output_d, OUTPUT);
  pinMode(output_a, OUTPUT);
  pinMode(output_e, OUTPUT);

  pinMode(input_g, INPUT);
  pinMode(input_d, INPUT);
  pinMode(input_a, INPUT);
  pinMode(input_e, INPUT);

  pinMode(tonePin, OUTPUT);
}

void loop() { 
  g = digitalRead(input_g); 
  d = digitalRead(input_d);
  a = digitalRead(input_a);
  e = digitalRead(input_e);

if (g == HIGH) {
  //NOTE_G3
  digitalWrite(output_g, HIGH);
} else {
  digitalWrite(output_g, LOW);
  }

   if (g==HIGH) {
      tone(tonePin, NOTE_E5);
   } else {
    noTone(tonePin);
   }

if (d == HIGH) {
  //NOTE_D4
  digitalWrite(output_d, HIGH);
} else {
  digitalWrite(output_d, LOW);
}
  if (d==HIGH) {
    tone(tonePin, NOTE_E5);
  } else {
   noTone(tonePin);
  }


if (a == HIGH) {
  //NOTE_A4
  digitalWrite(output_a, HIGH);
} else {
  digitalWrite(output_a, LOW);
}
  if (a == HIGH) {
    tone(tonePin, NOTE_A4);
  } else {
    noTone(tonePin);
  }

if (e == HIGH) {
  //NOTE_E5
  digitalWrite(output_e, HIGH);
} else {
  digitalWrite(output_e, LOW);
}
  if (e == HIGH) {
    tone(tonePin, NOTE_E5);
  } else {
    noTone(tonePin);
  }

//tone(12, NOTE_A4);


  Serial.println(String(g) + " - " + String(d) + " - " + String(a) + " - " + String(e));

}