A much easier approach is to use midi. Through serial commands you can generate some very nice notes or full music using a midi synthesizer. I know this is easy using C# and TinyCLR. I am not sure what block support there is shot serial port in make code.
The other option is to use a mp3 decider chip on a click module plugged into the BrainPad. This is more advanced. Click modules simply plug into the BrainPad https://www.mikroe.com/mp3-click
I don’t know enough about midi nor anything about C# nor TinyCRL but I found this link on the MakeCode forum. I don’t know if this is suggesting that midi can be used with block coding but I can’t understand why it would be discussed and linked if it were not possible. Do you think this Github repository is saying that midi COULD be used with block coding? This would only be useful if it worked with Chromebooks and a BrainPad or similar device on MakeCode or Maker MakeCode.