@pierrep, you may also want to look at this thread:
Gen3 devices run at 64MHz and use a different DeviceOS (under the hood) than the Photon or Electron. The ISR handler reads data from the SD card and writes to the Music Maker which can be heavy. You may want to try with Mesh.off() and commenting out the Particle.function() calls.