compile the program by typing: javac randommelody326.java
run the program by typing: java randommelodyapp
The program makes a random melody and plays the same melody in different modes and keys . The program sometimes modulates to a closely related key
the program starts playing music when the start button is clicked. when the program is finish playing a song, it starts playing the next song. it keeps on playing music until the stop button is clicked or the program's window is closed.
each song has a seed, you can repeat any song, if you know it's seed. The seed field shows the seed of the current song. The tempo of the song can be changed by entering a new value into the tempo field. higher values speed up a song and lower values slow down a song.
here are some other versions that make different music.
this version plays chords using notes from the diatonic scale
it sometimes modulates to a closely related key
download
this version plays chords using notes from a random scale
it also changes the scale as it plays the music
the random scale uses notes from the 31 equal temperament scale
download