- A small piece of program that plays totally differnt tune each time, based on the randomness of Java's Math.random() function and sets of tonal unit that I considered would sound beautiful in randomness.
- This program only uses java's built-in sound library and some formula to generate sounds and has no dependency against any external libralies or external sound files.
openjdk 1.8.0_171 or later.
git clone https://github.com/gustav-m/threee_billion_notes.git
cd threee_biliion_notes
javac *.java
java ThreeBillion
- The program has sets of frequencies which I chose arbitrary from equal temperament system.
- As of now the sets are based on Dorian Scale(natural minor scale with raised 6th); and each set is more or less characterized by its fourth intervals.
- Four independent threads plays notes chosen randomly from the set of notes described above.
- Sin waves to play chosen notes are calculated and generated in run time.
- Each note's duration and envelope are decided also randomly in run time.
- The tonal centers of the song change in run time randomly.
Hisashi "Gustav" Mizuno
open for hire
GPL-3.0