     String pa = msg.substring(hashInd + 4, hashInd + 4 + patternL);
     drums(tag - DRUMSSTART, pa);
   } else if (tag >= INSTRUMENTSTART && tag <= INSTRUMENTEND) {
-    
+    String pa = msg.substring(hashInd + 4);
+    instrument(tag - INSTRUMENTSTART, pa);
   }
 }
 

const int EFFECTSTART = 8;
const int EFFECTEND = 10;
//
const int numIns = 6;
byte patterns[numIns - 1];
// length
const int patternL = 8;

#include <Process.h>

String hashTags[] = {"PS", "BD", "SD", "KI", "CB", "CR", "I1", "I2"};
//PS: play sample, BD: bass drum, SD: snare, KI: kick,CB: cowbell, CR: crash
//I1: instrument 1, I2: instrument 2
// marker // TODO
const int DRUMSSTART = 1;
