This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |
yiler-music-with-code [2024/06/19 18:46] – yiler.huang | yiler-music-with-code [2024/06/19 18:49] (current) – yiler.huang |
---|
==== Generating Chord Progressions ==== | ==== Generating Chord Progressions ==== |
| |
I made a function that is capable of generating chord progressions based on the "stableness" of each chord. The more stable a chord is, the more likely the next chord is going to be an unstable one, and the more unstable a chord is, the more likely the next chord is going to be a stable one. This function also utilizes chord substitution methods such as secondary dominant, tritone substitution, and minor subdominant. | I made an algorithm that is capable of generating chord progressions based on the "stableness" of each chord. The more stable a chord is, the more likely the next chord is going to be an unstable one, and the more unstable a chord is, the more likely the next chord is going to be a stable one. This function also utilizes chord substitution methods such as secondary dominant, tritone substitution, and minor subdominant. |
| |
A short demo of chord progression generation: | A short demo of chord progression generation: |
==== Generating Melodies ==== | ==== Generating Melodies ==== |
| |
| I also made an algorithm that can generate melodies based on probabilities and mathematical rules. Users can decide what key the melody is in, the length of the melody, and the scale the algorithm uses to generate the melody. |
| |
| Here is a demo of a generated melody based on the A minor harmonic minor scale: |
| |
| <html> |
| <iframe width="560" height="315" src="https://www.youtube.com/embed/HekrBu0gio4?si=756uTBzCPpqBAHsh" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> |
| </html> |