cielHador_RPGgame/gamePatch0_8/Noises.pde
class Noises {
  int state;
  int timer;
  int timeRainIsOn;
  int timeElapsed;

  Noises() {
    state = 0;
    timer = 0;
    timeRainIsOn  = 30360000;
  }


  void startNoisesAndEnd() {
    if (playerOne.counter == 1) {
      noises.play();
    }
    if (playerOne.counter == 0) {
      noises.rewind();
    }
    if (playerOne.counter == 1499) {
      musicTwo.rewind();
    }
    if (playerOne.counter == 1500) {
      musicTwo.play();
    }
    if (playerOne.counter == 999) {
      musicOne.rewind();
    }
    if (playerOne.counter == 1000) {
      musicOne.play();
    }
  }
}