Hey, you can check DAWG - Digital Audio Workstation Game: https://dawg-tools.itch.io/dawg-digital-audio-workstation-game
It is meant as a learning tools to help people who want to make music, but finds normal DAWS intimidating.
You can make something similar to a real track and you can even export the wav to use it in your game.