Thank you for the feedback and I'm glad you liked it!
The music is generated based on collision of the purple line with the different blocks.