public void clear() { int i, j; SeqEntry se = new SeqEntry(); se.note = -1; se.shape = 0; se.xtra = 0; for (i = 0; i <= MAX_SEQ - 1 + 1; i++) { for (j = 0; j <= 255; j++) { seqs[i].seq[j] = se; } } }
public Sequences() { int i, j; SeqEntry se = new SeqEntry(); se.note = -1; se.shape = 0; se.xtra = 0; for (i = 0; i <= MAX_SEQ - 1 + 1; i++) { seqs[i] = new Sequence(); seqs[i].seq = new SeqEntry[256]; // seqs.A for (j = 0; j <= 255; j++) { seqs[i].seq[j] = se; } } // temporäre Dummy-Sequence int temp = MAX_SEQ - 1 + 1; for (i = 0; i <= 30; i++) { seqs[temp].seq[i].note = 0; seqs[temp].seq[i].shape = 0; seqs[temp].seq[i].xtra = 0; } i += 1; seqs[temp].seq[i].note = 1 * 12; seqs[temp].seq[i].shape = 0; seqs[temp].seq[i].xtra = 0; i += 1; seqs[temp].seq[i].note = 0xFF; // End seqs[temp].seq[i].shape = 0; seqs[temp].seq[i].xtra = 0; }