music.set_vol - Kyuchumimo/Micro-Joy-Home-Video-Computer GitHub Wiki
🧩🔊 This is a general-purpose audio-related function.
music.set_vol(channel, vol)
Parameters
- channel: Channel to be used. Valid values: 0-2.
- vol: Volume to set. Values:0-15, where 0 is silence and 15 max volume.
Description
This function is used to control the volume of one of the channels of the AY-3-8910 only.
Note that you can only control the AY-3-8910 and not the Konami SCC. This is because the Konami SCC is intended to be used exclusively for music, while the AY-3-8910 is for sound effects and noise. It is a design choice.