/random-walk-music-generator

🎵 This program creates music using random walks, starting from A and then exploring nearby notes to create a tune.

Primary LanguageJupyter Notebook

Creating Music with Random Walks

This program tries to create music using random walks, starting from A and then exploring nearby notes to create a tune. image

I started by applying a Fourier Transform to deconstruct a sound of a C note on the piano, creating a graph of frequencies like this: image

I then used this info on the info on the ratios between the dominant frequency and the other frequencies to construct piano-like sounds for every other note in the A Minor scale.

Finally, I used a random walk to generate a tune, and visualized this using Matplotlib :)