This project is strongly inspired by a video of Marc Evanstein / music․py https://www.youtube.com/watch?v=wn3td88w19E I changed some thing nut the main idea is the same