Log In  
Follow
iamlukesky
[ :: Read More :: ]

Cart #sfx_speed_manipulation-0 | 2023-12-11 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

I wanted to mess with the speed of a sound-effect during runtime and couldn't find any information on how to do so when searching around. Figured it out with the help of this info about the memory layout of SFX data: https://pico-8.fandom.com/wiki/Memory#Sound_effects

Edit:
The cart code is a bit messy, here's a reusable snippet:

function sfxspd(sfx_i,spd)
    local addr=0x3200+(68*sfx_i)+64+1
    poke(mem_addr,spd)
end
P#138569 2023-12-11 20:08 ( Edited 2023-12-11 20:32)