Sometimes it'd be nice to mute the music in a game you downloaded from the BBS, but not mute the sound effects. Maybe their music isn't to your taste, maybe you've played it way too much and now you want to listen to your own music instead; there are plenty of reasons.
One easy trick is just typing music=min
to kill the music completely. If you'd rather be able to toggle the music on and off, here's a quick snippet:
-- pancelor music toggle v3 -- https://www.lexaloffle.com/bbs/?tid=146963 _music_fn=music function music(...) if _music_muted then _music_last=... --save 1st arg else _music_fn(...) end end menuitem(5,"♪music",function() _music_muted=not _music_muted if _music_muted then _music_fn(-1,500) menuitem(nil,"…music") else _music_fn(_music_last) menuitem(nil,"♪music") end return true end) |

It should work for most carts, just paste it onto the end of the cart's code. It might be convenient to use this as a dev as well (not just as a player) -- it remembers the last call to music() and re-calls it when the player unmutes.
[Please log in to post a comment]