Melody Generation with Markov Chains - Generative Music AI
Valerio Velardo - The Sound of AI via YouTube
Build with Azure OpenAI, Copilot Studio & Agentic Frameworks — Microsoft Certified
Build the Finance Skills That Lead to Promotions — Not Just Certificates
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
Implement a Markov chain to generate melodies in Python through this comprehensive tutorial video. Learn how to create a MarkovChainMelodyGenerator class, train the model using a dataset, and generate new melodies. Explore the main function, train and generate methods, and discuss potential code expansions. Gain hands-on experience by following along with the provided code and lecture slides, and join the discussion in The Sound of AI Slack Community. Discover additional resources for music AI consulting, recruitment, and advanced Python programming to further enhance your skills in generative music AI.
Syllabus
Intro
Running the script + melody example
Main function
MarkovChainMelodyGenerator
Train method
Generate method
Revisiting the main function
Possible code expansions
What next?
Taught by
Valerio Velardo - The Sound of AI