Пример #1
0
void DSP::enter() {
  while(true) {
    switch(state.sample_stage) {
    case 0:
      voice_5(voice[0]);
      voice_2(voice[1]);
      if(!tick()) break;

    case 1:
      voice_6(voice[0]);
      voice_3(voice[1]);
      if (!tick()) break;

    case 2:
      voice_7(voice[0]);
      voice_4(voice[1]);
      voice_1(voice[3]);
      if (!tick()) break;

    case 3:
      voice_8(voice[0]);
      voice_5(voice[1]);
      voice_2(voice[2]);
      if (!tick()) break;

    case 4:
      voice_9(voice[0]);
      voice_6(voice[1]);
      voice_3(voice[2]);
      if (!tick()) break;

    case 5:
      voice_7(voice[1]);
      voice_4(voice[2]);
      voice_1(voice[4]);
      if (!tick()) break;

    case 6:
      voice_8(voice[1]);
      voice_5(voice[2]);
      voice_2(voice[3]);
      if (!tick()) break;

    case 7:
      voice_9(voice[1]);
      voice_6(voice[2]);
      voice_3(voice[3]);
      if (!tick()) break;

    case 8:
      voice_7(voice[2]);
      voice_4(voice[3]);
      voice_1(voice[5]);
      if (!tick()) break;

    case 9:
      voice_8(voice[2]);
      voice_5(voice[3]);
      voice_2(voice[4]);
      if (!tick()) break;

    case 10:
      voice_9(voice[2]);
      voice_6(voice[3]);
      voice_3(voice[4]);
      if (!tick()) break;

    case 11:
      voice_7(voice[3]);
      voice_4(voice[4]);
      voice_1(voice[6]);
      if (!tick()) break;

    case 12:
      voice_8(voice[3]);
      voice_5(voice[4]);
      voice_2(voice[5]);
      if (!tick()) break;

    case 13:
      voice_9(voice[3]);
      voice_6(voice[4]);
      voice_3(voice[5]);
      if (!tick()) break;

    case 14:
      voice_7(voice[4]);
      voice_4(voice[5]);
      voice_1(voice[7]);
      if (!tick()) break;

    case 15:
      voice_8(voice[4]);
      voice_5(voice[5]);
      voice_2(voice[6]);
      if (!tick()) break;

    case 16:
      voice_9(voice[4]);
      voice_6(voice[5]);
      voice_3(voice[6]);
      if (!tick()) break;

    case 17:
      voice_1(voice[0]);
      voice_7(voice[5]);
      voice_4(voice[6]);
      if (!tick()) break;

    case 18:
      voice_8(voice[5]);
      voice_5(voice[6]);
      voice_2(voice[7]);
      if (!tick()) break;

    case 19:
      voice_9(voice[5]);
      voice_6(voice[6]);
      voice_3(voice[7]);
      if (!tick()) break;

    case 20:
      voice_1(voice[1]);
      voice_7(voice[6]);
      voice_4(voice[7]);
      if (!tick()) break;

    case 21:
      voice_8(voice[6]);
      voice_5(voice[7]);
      voice_2(voice[0]);
      if (!tick()) break;

    case 22:
      voice_3a(voice[0]);
      voice_9(voice[6]);
      voice_6(voice[7]);
      echo_22();
      if (!tick()) break;

    case 23:
      voice_7(voice[7]);
      echo_23();
      if (!tick()) break;

    case 24:
      voice_8(voice[7]);
      echo_24();
      if (!tick()) break;

    case 25:
      voice_3b(voice[0]);
      voice_9(voice[7]);
      echo_25();
      if (!tick()) break;

    case 26:
      echo_26();
      if (!tick()) break;

    case 27:
      misc_27();
      echo_27();
      if (!tick()) break;

    case 28:
      misc_28();
      echo_28();
      if (!tick()) break;

    case 29:
      misc_29();
      echo_29();
      if (!tick()) break;

    case 30:
      misc_30();
      voice_3c(voice[0]);
      echo_30();
      if (!tick()) break;

    case 31:
      voice_4(voice[0]);
      voice_1(voice[2]);
      tick();
    }
  }
}
Пример #2
0
void sDSP::enter() {
  phase_start()

  phase(0)
    voice_5(voice[0]);
    voice_2(voice[1]);
    tick();

  phase(1)
    voice_6(voice[0]);
    voice_3(voice[1]);
    tick();

  phase(2)
    voice_7(voice[0]);
    voice_4(voice[1]);
    voice_1(voice[3]);
    tick();

  phase(3)
    voice_8(voice[0]);
    voice_5(voice[1]);
    voice_2(voice[2]);
    tick();

  phase(4)
    voice_9(voice[0]);
    voice_6(voice[1]);
    voice_3(voice[2]);
    tick();

  phase(5)
    voice_7(voice[1]);
    voice_4(voice[2]);
    voice_1(voice[4]);
    tick();

  phase(6)
    voice_8(voice[1]);
    voice_5(voice[2]);
    voice_2(voice[3]);
    tick();

  phase(7)
    voice_9(voice[1]);
    voice_6(voice[2]);
    voice_3(voice[3]);
    tick();

  phase(8)
    voice_7(voice[2]);
    voice_4(voice[3]);
    voice_1(voice[5]);
    tick();

  phase(9)
    voice_8(voice[2]);
    voice_5(voice[3]);
    voice_2(voice[4]);
    tick();

  phase(10)
    voice_9(voice[2]);
    voice_6(voice[3]);
    voice_3(voice[4]);
    tick();

  phase(11)
    voice_7(voice[3]);
    voice_4(voice[4]);
    voice_1(voice[6]);
    tick();

  phase(12)
    voice_8(voice[3]);
    voice_5(voice[4]);
    voice_2(voice[5]);
    tick();

  phase(13)
    voice_9(voice[3]);
    voice_6(voice[4]);
    voice_3(voice[5]);
    tick();

  phase(14)
    voice_7(voice[4]);
    voice_4(voice[5]);
    voice_1(voice[7]);
    tick();

  phase(15)
    voice_8(voice[4]);
    voice_5(voice[5]);
    voice_2(voice[6]);
    tick();

  phase(16)
    voice_9(voice[4]);
    voice_6(voice[5]);
    voice_3(voice[6]);
    tick();

  phase(17)
    voice_1(voice[0]);
    voice_7(voice[5]);
    voice_4(voice[6]);
    tick();

  phase(18)
    voice_8(voice[5]);
    voice_5(voice[6]);
    voice_2(voice[7]);
    tick();

  phase(19)
    voice_9(voice[5]);
    voice_6(voice[6]);
    voice_3(voice[7]);
    tick();

  phase(20)
    voice_1(voice[1]);
    voice_7(voice[6]);
    voice_4(voice[7]);
    tick();

  phase(21)
    voice_8(voice[6]);
    voice_5(voice[7]);
    voice_2(voice[0]);
    tick();

  phase(22)
    voice_3a(voice[0]);
    voice_9(voice[6]);
    voice_6(voice[7]);
    echo_22();
    tick();

  phase(23)
    voice_7(voice[7]);
    echo_23();
    tick();

  phase(24)
    voice_8(voice[7]);
    echo_24();
    tick();

  phase(25)
    voice_3b(voice[0]);
    voice_9(voice[7]);
    echo_25();
    tick();

  phase(26)
    echo_26();
    tick();

  phase(27)
    misc_27();
    echo_27();
    tick();

  phase(28)
    misc_28();
    echo_28();
    tick();

  phase(29)
    misc_29();
    echo_29();
    tick();

  phase(30)
    misc_30();
    voice_3c(voice[0]);
    echo_30();
    tick();

  phase(31)
    voice_4(voice[0]);
    voice_1(voice[2]);
    tick();

  phase_end()
}
Пример #3
0
void DSP::enter() {
  while(true) {
    if(scheduler.sync.i == Scheduler::SynchronizeMode::All) {
      scheduler.exit(Scheduler::ExitReason::SynchronizeEvent);
    }

    voice_5(voice[0]);
    voice_2(voice[1]);
    tick();

    voice_6(voice[0]);
    voice_3(voice[1]);
    tick();

    voice_7(voice[0]);
    voice_4(voice[1]);
    voice_1(voice[3]);
    tick();

    voice_8(voice[0]);
    voice_5(voice[1]);
    voice_2(voice[2]);
    tick();

    voice_9(voice[0]);
    voice_6(voice[1]);
    voice_3(voice[2]);
    tick();

    voice_7(voice[1]);
    voice_4(voice[2]);
    voice_1(voice[4]);
    tick();

    voice_8(voice[1]);
    voice_5(voice[2]);
    voice_2(voice[3]);
    tick();

    voice_9(voice[1]);
    voice_6(voice[2]);
    voice_3(voice[3]);
    tick();

    voice_7(voice[2]);
    voice_4(voice[3]);
    voice_1(voice[5]);
    tick();

    voice_8(voice[2]);
    voice_5(voice[3]);
    voice_2(voice[4]);
    tick();

    voice_9(voice[2]);
    voice_6(voice[3]);
    voice_3(voice[4]);
    tick();

    voice_7(voice[3]);
    voice_4(voice[4]);
    voice_1(voice[6]);
    tick();

    voice_8(voice[3]);
    voice_5(voice[4]);
    voice_2(voice[5]);
    tick();

    voice_9(voice[3]);
    voice_6(voice[4]);
    voice_3(voice[5]);
    tick();

    voice_7(voice[4]);
    voice_4(voice[5]);
    voice_1(voice[7]);
    tick();

    voice_8(voice[4]);
    voice_5(voice[5]);
    voice_2(voice[6]);
    tick();

    voice_9(voice[4]);
    voice_6(voice[5]);
    voice_3(voice[6]);
    tick();

    voice_1(voice[0]);
    voice_7(voice[5]);
    voice_4(voice[6]);
    tick();

    voice_8(voice[5]);
    voice_5(voice[6]);
    voice_2(voice[7]);
    tick();

    voice_9(voice[5]);
    voice_6(voice[6]);
    voice_3(voice[7]);
    tick();

    voice_1(voice[1]);
    voice_7(voice[6]);
    voice_4(voice[7]);
    tick();

    voice_8(voice[6]);
    voice_5(voice[7]);
    voice_2(voice[0]);
    tick();

    voice_3a(voice[0]);
    voice_9(voice[6]);
    voice_6(voice[7]);
    echo_22();
    tick();

    voice_7(voice[7]);
    echo_23();
    tick();

    voice_8(voice[7]);
    echo_24();
    tick();

    voice_3b(voice[0]);
    voice_9(voice[7]);
    echo_25();
    tick();

    echo_26();
    tick();

    misc_27();
    echo_27();
    tick();

    misc_28();
    echo_28();
    tick();

    misc_29();
    echo_29();
    tick();

    misc_30();
    voice_3c(voice[0]);
    echo_30();
    tick();

    voice_4(voice[0]);
    voice_1(voice[2]);
    tick();
  }
}