How do we play the 'song' assets in MakeCode Arcade?

Hi all,

I seem to recall in the past (my memory may be off here) that to play a song asset you would type something along the lines of music.play_song(assets.song(“song name”), True) to get it to loop. I can’t seem to do anything to get one of those song assets to play now and I can’t find any info in the docs?

Any suggestions?

@richard I’m guessing this changed with the last minute consolidation of music category blocks? Looks like the current javascript will be:

music.play(
    music.createSong(hex`00780004080200`),
    music.PlaybackMode.LoopingInBackground
)

and likely more useful from the formatting of the the function you have will be python

music.play(music.create_song(hex("""
        00780004080200
    """)),
    music.PlaybackMode.LOOPING_IN_BACKGROUND)

@jwunderl correct! this was changed right before release, sorry about that! That’s why we don’t recommend people use beta for important projects. I hope we didn’t trip you up too much!