Arduino piano based on infrared remote

Hello, I am rather new to arduino and i have a rather simple project that i am trying to make, essentially it makes the arduino play a note depending on the button pressed on the IR remote, I have tried to put my Tone commands in case statements however every time i do so i am greeted with an error message saying

"Arduino: 1.8.10 (Mac OS X), Board: "Arduino/Genuino Uno"

Tone.cpp.o (symbol from plugin): In function timer0_pin_port': (.text+0x0): multiple definition of __vector_7'
libraries/Arduino-IRremote-master/IRremote.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
Multiple libraries were found for "IRremote.h"
Used: /Users/21jsimonis/Documents/Arduino/libraries/Arduino-IRremote-master
exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
"

Here is my code

#include <IRremote.h>

const int RECV_PIN = 7;
IRrecv irrecv(RECV_PIN);
decode_results results;
unsigned long key_value = 0;

void setup(){
  pinMode(10,OUTPUT);
  Serial.begin(9600);
  irrecv.enableIRIn();
  irrecv.blink13(true);
}
int sp = 10;      //Speaker Pin
int c = 523;
int d = 587;
int e = 659;
int f = 698;     //These are the frequency      
int g = 784;     //values of the different notes
int a = 880;   
int b = 988;
int c2 = 1047;
void loop(){
   
  if (irrecv.decode(&results)){

        switch(results.value){
          if (0xFFA25D
          tone(sp,c);
          Serial.println("power");
          break;
          case 0xFF629D:
          Serial.println("vol");
          break;
          case 0xFFE21D:
          Serial.println("func");
          break;
          case 0xFF22DD:
          Serial.println("|<<");
          break;
          case 0xFF02FD:
          Serial.println(">||");
          break ;  
          case 0xFFC23D:
          Serial.println(">>|");
          break ;               
          case 0xFFE01F:
          Serial.println("V");
          break ;  
          case 0xFFA857:
          Serial.println("vol-");
          break ;  
          case 0xFF906F:
          Serial.println("^");
          break ;  
          case 0xFF6897:
          Serial.println("0");
          break ;  
          case 0xFF9867:
          Serial.println("eq");
          break ;
          case 0xFFB04F:
          Serial.println("st");
          break ;
          case 0xFF30CF:
          Serial.println("1");
          break ;
          case 0xFF18E7:
          Serial.println("2");
          break ;
          case 0xFF7A85:
          Serial.println("3");
          break ;
          case 0xFF10EF:
          Serial.println("4");
          break ;
          case 0xFF38C7:
          Serial.println("5");
          break ;
          case 0xFF5AA5:
          Serial.println("6");
          break ;
          case 0xFF42BD:
          Serial.println("7");
          break ;
          case 0xFF4AB5:
          Serial.println("8");
          break ;
          case 0xFF52AD:
          Serial.println("9");
          break ;      
        }
        key_value = results.value;
        irrecv.resume(); 
  }
}

what am i doing wrong?

what am i doing wrong?

Trying to use the built in tone function along with the remote library.

The error message is telling you that both these require access to the same interrupt vector. In short they are not compatible with each other.

There are other tone libraries you can use that do not use the timer, search for those.