I'm trying to make music fade out when you press a button. I've seen the RAM thing but I'm not sure how to set up the poke() command to change the volume.
Did you see https://github.com/nesbox/TIC-80/wiki/RAM? I've made a bit of edits to it recently after some research of the different sections of the RAM.