langel / vixxen20

Commodore VIC 20 simulation environment
Other
8 stars 2 forks source link

add tunings #31

Closed langel closed 5 years ago

langel commented 6 years ago

apparently the note values given in the Programmer's Reference Guide are not based on A440

kulor came up with A440 note tables for both NTSC & PAL https://pastebin.com/6KyF53S8

need a way to switch between "traditional" / "440 based NTSC" / "440 based PAL" / "420..."

440 tuning chart https://pages.mtu.edu/~suits/notefreqs.html

kulor's tables:

;PAL version
;NoteTable
;       ;   C       C#      D       D#      E       F       F#      G       G#      A       A#      B
;   .byte           131,    138,    144,    150,    156,    162,    167,    172,    177,    181,    185         ;1
;   .byte   189,    193,    196,    200,    203,    206,    208,    211,    214,    216,    218,    220         ;2
;   .byte   222,    224,    226,    227,    229,    230,    232,    233,    234,    235,    237,    238         ;3
;   .byte   239,            240,    241,    242,    243,            244,            245,    246                 ;4
;   .byte   247,                    248,            249,                            250                         ;5
;   .byte   251,                                    252                                                         ;6
;   .byte   253                                                                                                 ;7
;   .byte           254                                                                                         ;8

;NTSC version
NoteTable
        ;   C       C#      D       D#      E       F       F#      G       G#      A       A#      B
    .byte   133,    140,    146,    152,    158,    163,    169,    173,    178,    182,    186,    190         ;1
    .byte   194,    197,    201,    204,    207,    209,    212,    214,    217,    219,    221,    223         ;2
    .byte   224,    226,    228,    229,    231,    232,    233,    235,    236,    237,    238,    239         ;3
    .byte   240,    241,            242,    243,            244,    245,            246,            247         ;4
    .byte           248,                    249,                    250,                            251         ;5
    .byte                                   252,                                                    253         ;6
    .byte                                                                                           254         ;7
    .byte 0