Notice: Trying to access array offset on value of type bool in /mnt/cpcwiki-httpdocs/includes/libs/IPSet.php on line 243

Notice: Trying to access array offset on value of type bool in /mnt/cpcwiki-httpdocs/includes/libs/IPSet.php on line 246

Notice: Trying to access array offset on value of type bool in /mnt/cpcwiki-httpdocs/includes/libs/IPSet.php on line 243

Notice: Trying to access array offset on value of type bool in /mnt/cpcwiki-httpdocs/includes/libs/IPSet.php on line 246
Changes - CPCWiki

Changes

PSG

15 bytes added, 15:02, 1 April 2025
/* Algorithm */
def envelope_step(volume, direction, shape):
volume += direction if volume > 15 or volume < 0: if shape < 8 or shape == 9 or shape == 15: direction = 0 volume = 0 elif shape == 11 or shape == 13: direction = 0 volume = 15 elif shape == 10 or shape == 14: direction *= -1 volume += direction else: # direction unchanged volume &= 0x0f return volume, direction
=== 0Eh - External Dataregister Port A ===
13,173
edits