Wire and MIDI library

Hi!

I have a problem, I'm able to use the Wire library with a Adafruit LED backpack, I'm able to use the MIDI library to input some MIDI signal into my Arduino but when I'm using both at the same times nothing works, it must be a routing in the wire library, anybody had such a problem?

Please post the code that you are having a problem with and schematic or very clear description of the circuit

Here is the code:

#include <MIDI.h>

MIDI_CREATE_DEFAULT_INSTANCE();

// Adafruit Library for Matrix
#include <Wire.h>
#include <Adafruit_GFX.h>
#include "Adafruit_LEDBackpack.h"

Adafruit_8x8matrix matrix = Adafruit_8x8matrix();

void handleNoteOn(byte channel, byte pitch, byte velocity)
{
    
  if (pitch == 60){
     matrix.setRotation(3);
    matrix.setTextSize(1);
    matrix.setTextColor(LED_ON);
    matrix.clear();
    matrix.setCursor(2,0);
    matrix.print("1");
    matrix.writeDisplay();
  }
  if (pitch == 61){
    matrix.setTextColor(LED_ON);
    matrix.clear();
    matrix.setCursor(2,0);
    matrix.print("2");
    matrix.writeDisplay();
  }
  if (pitch == 62){
    matrix.setTextColor(LED_ON);
    matrix.clear();
    matrix.setCursor(2,0);
    matrix.print("3");
    matrix.writeDisplay();
  }
  if (pitch == 63){
    matrix.setTextColor(LED_ON);
    matrix.clear();
    matrix.setCursor(2,0);
    matrix.print("4");
    matrix.writeDisplay();
  }
  // Beat 1
  if (pitch == 64){
     matrix.setRotation(0);
    for (int i = 0; i <= 5; i++){
    matrix.clear();
    matrix.drawRect(0,0, 8,8, LED_ON);
    matrix.fillRect(2,2, 4,4, LED_ON);
    matrix.writeDisplay();  // write the changes we just made to the display
    }
  }
  // Beat 2
  if (pitch == 65){
   matrix.clear();
   matrix.drawLine(3,0, 3,3, LED_ON);
   matrix.drawLine(4,0, 4,3, LED_ON);
   matrix.writeDisplay();
  }
  // Beat 3
  if (pitch == 66){
   matrix.clear();
   matrix.drawLine(4,3, 7,3, LED_ON);
   matrix.drawLine(4,4, 7,4, LED_ON);
   matrix.writeDisplay();
  }
   // Beat 4
  if (pitch == 67){
   matrix.clear();
   matrix.drawLine(3,7, 3,4, LED_ON);
   matrix.drawLine(4,7, 4,4, LED_ON);
   matrix.writeDisplay();
  }
  delay(100);
   
}

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  Serial.println("8x8 LED Matrix Visual Cue");
  
  matrix.begin(0x70);  // pass in the address
  

}

void loop() {
  // Call MIDI.read the fastest you can for real-time performance.
    MIDI.read();
    matrix.clear();

}