public override void OnAPUClockSingle(ref bool isClockingLength) { sound_seq_cyc--; if (sound_seq_cyc == 0) { switch (sound_seq_curr) { case 0: case 1: case 2: case 4: { channel_sq1.ClockEnvelope(); channel_sq2.ClockEnvelope(); break; } } sound_seq_curr++; sound_seq_cyc += sound_seq[sound_seq_curr]; if (sound_seq_curr == 6) { sound_seq_curr = 0; } } channel_sq1.ClockSingle(isClockingLength); channel_sq2.ClockSingle(isClockingLength); }
public override void OnAPUClockEnvelope() { channel_sq1.ClockEnvelope(); channel_sq2.ClockEnvelope(); }