Thanks a lot! Glad you liked it.
Yes there’s some code in the main update loop that checks collision with the purple line and then plays a note. The pitch depends on the block’s y value and the tone depends on the type of block.
Uhhhh thank you for sharing this with me. This is a smart solution, I have to try this out by myself :D