Rock Music Generator
101
Published 2022-07-24
A second more diverse, interactive, and accurate version might come out.
blablabla warning ahead
Here's how I made it: I decided the music should be mostly in A minor to simplify. Each time the flag is clicked it sets the tempo to something random between 60 and 200 bpm I think? Because that's where rock music usually falls.
Then there's an electric guitar riff, that loops every 4 beats. Every song it has the same rhythm, but starts at different points. The first note of the electric guitar riff is any note that belongs in A minor (picked and stuck with for the whole song), the second note is a random interval away from that note (picked and stuck with for the whole song), the third note is another note that belongs in A minor (picked and stuck with for the whole song), the forth note is again a random interval (picked and stuck with for the whole song) away from that, and the fifth note is A. Then it rests for 1.5 beats.
Next, I have a simple four beat loop on base "aaa, aaa, aa g e e".
The drums goes at the speed of the tempo and at the beginning it picks 4 random drums suited to rock music.
Finally, the acoustic guitar melody is at a louder volume than anything else. I got a variable that follows what note the guitar riff is playing, and then the guitar melody plays that note for either 0.5, 1, 2, 3, or 4 beats. So, it can sometimes last longer than the guitar note, because it would sound boring otherwise.
I think of this music as being half random, half predetermined.
PS. If you're reading this there's a short transition between songs.
#rock #music #rockmusic #random #randomgenerator #hardrock #softrock #classicrock #altrock #drawing #art #guitar #electricguitar #drums #bass #forever