Tetris music programmed within Java code that you can use in any project in a very simple way.
Clone repo and import the files to the project. To start the music use:
Music m = new Music(); // To create the music Object
m.start(); // To start the music
To stop the music use:
m.end(); // To start the music
This code plays the music for 60 seconds:
public static void main(String[] args) {
Music m = new Music();
m.start();
try {
Thread.sleep(60000);
} catch (InterruptedException e) {}
m.end();
}
GPL v3