Sonic Pi is a programming environment that lets you create music and other sounds with code while learning programming concepts at the same time, is included with Raspbian (the Raspberry Pi OS), but it is also available as a free download for MacOS, Windows, and Linux:
This activity, part of a group of Sonic Pi projects, will allow learners to program a short tune. It could be used as a doorbell chime, a mobile phone ringtone, an alert notification on a computer or included in a web page.
Teachers and session leaders should access the project materials and notes directly from the Code Club website, where they will also find more resources and interactive versions of the projects.
Code Club is a network of volunteers and educators leading STEM clubs worldwide. You can register your club on Code Club's website to get updates on new content and access to exclusive competitions and giveaways.