   if (time > nextB) {
     nextB += nextBInc;
     for (int i = 1; i < numIns; i++) {
-      if (patterns[i-1] & bs[pos])
-        Serial.print(instruments[i]);
+      if (patterns[i - 1] & bs[pos])
+        Serial.print(hashTags[i]);
       else
         Serial.print("..");
-        Serial.print("-");
+      Serial.print("-");
     }
     Serial.println("");
     pos = (pos + 1) % patternL;

      pattern += b;
    }
    Serial.println(pattern);
    patterns[instrument] = pattern;
  }
}

void playSample(String msg) {
  Process p;
  p.runShellCommandAsynchronously("madplay "+sampleFolder+msg);
}

#include <Process.h>

String hashTags[] = {"PS", "BD", "SD", "KI", "SN", "CR","I1","I2"};
//PS: play sample, BD: bass drum, SD: snare, KI: kick,SN: snare, CR: crash
//I1: instrument 1, I2: instrument 2
// marker // TODO
int drumsStart = 1;
int drumsEnd = 5;
int instrumentStart = 6;
int instrumentEnd = 7;
//
const int numIns = 6;
byte patterns[numIns - 1];
// length
const int patternL = 8;

