Melody Generator (Python)
Channel: VLearnX
Date: 14/05/2022

This video is about a simple algorithmic melody generator written in Python. The idea is to start with a noise waveform and transform it into piano key presses. As of now it produces music similar to a nursery rhyme.

Thanks to Moritz Wechtler - for discussions and insights on music theory, python and signal processing.

Jim Cathode, Tiffany Spectrum - both are fictional characters. Azure TTS is used for their voices.

Source code can be found here:
https://github.com/vinaynk/VLearnX/blob/main/python/projects/wavsynth/

Feel free to try this at home! 
(Expect a lot of code changes and cleanups. So to get the exact version as in this video, look for commit 1a694a8d50a8c64df23f765a0a8ad30b29b56d37)
--

00:00 - Introduction
00:32 - Example melody (demo)
02:23 - Algorithm for melody generation
04:57 - Tone curve
06:21 - Hit pattern
07:25 - Single melody
11:50 - Multi-part melody
16:06 - Credits and thanks

--

NOTE:

We are not experts in music. If you find a mistake, kindly let us know.

Credits 
Piano samples: Alexander Holm (Wavforms generated follows license CC BY 3.0)
Thumbnail: Photo by EKATERINA  BOLOVTSOVA from Pexels
(They are not associated with the project)


#python #music #melody #algorithm