Title: I&#x27;m excited to share with HN a new pet project I&#x27;ve been working on to explore how AI can create and explain harmonic chord progressions - Chord Variations.<p>The project uses GPT-4 to generate unique and interesting chord combinations based on user input chord progression. It&#x27;s akin to having a virtual musical assistant that can help non-musicians and musicians alike explore and create harmonious sound without needing any prior knowledge of music theory. The generated chord suggestions maintain a similar vibe to the user input. Alternative chord progression includes extended chords, chord substitutions, unique passing chords, and more.<p>Additionally, musical theory explanations within the tool is helpful for users not just to create music, but understand the underlying structure it&#x27;s built on a bit better. These chord progression suggestions can be used for practice or composition. As a musician myself, I am having quite a lot of fun playing around with it.<p>One of the things I&#x27;m proud of is how the application really dips into music theory. It includes nuanced aspects such as dominant chords, secondary dominant chords, and the famous 2-5-1 chord progressions.<p>That said, the development journey was full of lessons. Dealing with the latency of the GPT-4 API was particularly challenging. I used a Celery based queue system + client polling to manage the delay between request and response (from OpenAI API). Additionally, to keep the chord names consistent, I used a combination of prompting and regex. There are still some bugs that need to be squashed but overall I am pretty happy with the results.<p>I&#x27;d love to hear your thoughts and feedback on the project. Also, if you&#x27;re curious about anything, I am happy to delve into the details in comments.<p>Feel free to take Chord Variations for a spin here: <a href="https:&#x2F;&#x2F;chord-alt.vercel.app&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;chord-alt.vercel.app&#x2F;</a><p>Looking forward to some interesting discussions!
Upvote: