UK
games/alis / src / Alis / MusicV0Vars.php · commit 9c722cf
<?phpnamespace App\Alis;/** File-scope variables of audio/music_v0.c (v1.0 YM music, Manhattan Dealers). */final class MusicV0Vars{    // Tables from the Atari v1.0 interpreter. Durations are read with index & 31,    // past the 24 real entries into the period table, as the original does.    public const mv0_tabdur = [        0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x03, 0x03, 0x04, 0x06, 0x06, 0x08, 0x0c, 0x0c, 0x10,        0x18, 0x18, 0x20, 0x30, 0x30, 0x00, 0x30, 0x19, 0x0e, 0xee, 0x0e, 0x18, 0x0d, 0x4d, 0x0c, 0x8e];    public const mv0_tabfrq = [        0x0eee, 0x0e18, 0x0d4d, 0x0c8e, 0x0bda, 0x0b2f, 0x0a8f, 0x09f7, 0x0968, 0x08e1, 0x0861, 0x07e9,        0x0777, 0x070c, 0x06a7, 0x0647, 0x05ed, 0x0598, 0x0547, 0x04fc, 0x04b4, 0x0470, 0x0431, 0x03f4,        0x03bc, 0x0386, 0x0353, 0x0324, 0x02f6, 0x02cc, 0x02a4, 0x027e, 0x025a, 0x0238, 0x0218, 0x01fa,        0x01de, 0x01c3, 0x01aa, 0x0192, 0x017b, 0x0166, 0x0152, 0x013f, 0x012d, 0x011c, 0x010c, 0x00fd,        0x00ef, 0x00e1, 0x00d5, 0x00c9, 0x00be, 0x00b3, 0x00a9, 0x009f, 0x0096, 0x008e, 0x0086, 0x007f,        0x0077, 0x0071, 0x006a, 0x0064, 0x005f, 0x0059, 0x0054, 0x0050, 0x004b, 0x0047, 0x0043, 0x003f,        0x003c, 0x0038, 0x0035, 0x0032, 0x002f, 0x002d, 0x002a, 0x0028, 0x0026, 0x0024, 0x0022, 0x0020,        0x001e, 0x001c, 0x001b, 0x0019, 0x0018, 0x0016, 0x0015, 0x0014, 0x0013, 0x0012, 0x0011, 0x0010];    // Volume envelopes: records of (flags: 1 tone / 2 noise / 0 end, delta, rate, count).    public const mv0_tabins = [        0x01, 0x0f, 0x02, 0x01, 0x01, 0xff, 0x16, 0x0f, 0x00, 0x00, 0x00, 0x00,        0x01, 0x0f, 0x02, 0x01, 0x01, 0xff, 0x0e, 0x0f, 0x00, 0x00, 0x00, 0x00,        0x01, 0x0f, 0x02, 0x01, 0x01, 0xff, 0x08, 0x0f, 0x00, 0x00, 0x00, 0x00,        0x01, 0x0f, 0x02, 0x01, 0x01, 0xff, 0x04, 0x0f, 0x00, 0x00, 0x00, 0x00,        0x01, 0x0f, 0x02, 0x01, 0x01, 0xff, 0x02, 0x0f, 0x00, 0x00, 0x00, 0x00,        0x02, 0x0f, 0x01, 0x01, 0x02, 0xff, 0x0b, 0x0f, 0x00, 0x00, 0x00, 0x00,        0x02, 0x0f, 0x01, 0x01, 0x02, 0xff, 0x07, 0x0f, 0x00, 0x00, 0x00, 0x00,        0x02, 0x0f, 0x01, 0x01, 0x02, 0xff, 0x04, 0x0f, 0x00, 0x00, 0x00, 0x00,        0x02, 0x0f, 0x01, 0x01, 0x02, 0xff, 0x02, 0x0f, 0x00, 0x00, 0x00, 0x00,        0x02, 0x0f, 0x01, 0x01, 0x02, 0xff, 0x01, 0x0f, 0x00, 0x00, 0x00, 0x00,        0x03, 0x0f, 0x02, 0x01, 0x03, 0xff, 0x0a, 0x0f, 0x00, 0x00, 0x00, 0x00,        0x03, 0x0f, 0x02, 0x01, 0x03, 0xff, 0x04, 0x0f, 0x00, 0x00, 0x00, 0x00,        0x01, 0x0f, 0x02, 0x01, 0x01, 0x00, 0xa0, 0x02, 0x00, 0x00, 0x00, 0x00,        0x01, 0x0f, 0x02, 0x01, 0x01, 0x00, 0xa0, 0x02, 0x01, 0xff, 0x08, 0x0f, 0x00, 0x00, 0x00, 0x00,        0x01, 0x01, 0x04, 0x0a, 0x01, 0x01, 0x10, 0x05, 0x01, 0xff, 0x10, 0x05, 0x01, 0xff, 0x04, 0x0a,        0x00, 0x00, 0x00, 0x00,        0x01, 0x00, 0x38, 0x06, 0x00, 0x00, 0x00, 0x00,        0x01, 0x00, 0x38, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00];    public const mv0_insoff = [0, 12, 24, 36, 48, 60, 72, 84, 96, 108, 120, 132, 144, 156, 172, 192, 200];    /** C sMV0Audio mv0a */    public static ?sMV0Audio $mv0a = null;    public static function init(): void    {        self::$mv0a = new sMV0Audio();    }}MusicV0Vars::init();