ID Systems for Musical Scales

by Luke Knotts


When making a website, having a numeric ID for each musical scale is useful. Ian Ring used binary representations of musical scales on their website. An example of the system is below.

Binary Scale IDs

  The current tuning is 12edo. There are 4,096 scales (including transpositions) in this tuning.

Decimal12-bit BinaryPc Set
0
000000000000
0
1
000000000001
1
2
000000000010
2
3
000000000011
3
4
000000000100
4
5
000000000101
5
6
000000000110
6
7
000000000111
7
8
000000001000
8
9
000000001001
9
10
000000001010
10
11
000000001011
11
12
000000001100
12
13
000000001101
13
14
000000001110
14
15
000000001111
15
16
000000010000
16
17
000000010001
17
18
000000010010
18
19
000000010011
19
20
000000010100
20
21
000000010101
21
22
000000010110
22
23
000000010111
23
24
000000011000
24
25
000000011001
25
26
000000011010
26
27
000000011011
27
28
000000011100
28
29
000000011101
29
30
000000011110
30
31
000000011111
31
32
000000100000
32
33
000000100001
33
34
000000100010
34
35
000000100011
35
36
000000100100
36
37
000000100101
37
38
000000100110
38
39
000000100111
39
40
000000101000
40
41
000000101001
41
42
000000101010
42
43
000000101011
43
44
000000101100
44
45
000000101101
45
46
000000101110
46
47
000000101111
47
48
000000110000
48
49
000000110001
49
50
000000110010
50
51
000000110011
51
52
000000110100
52
53
000000110101
53
54
000000110110
54
55
000000110111
55
56
000000111000
56
57
000000111001
57
58
000000111010
58
59
000000111011
59
60
000000111100
60
61
000000111101
61
62
000000111110
62
63
000000111111
63
64
000001000000
64
65
000001000001
65
66
000001000010
66
67
000001000011
67
68
000001000100
68
69
000001000101
69
70
000001000110
70
71
000001000111
71
72
000001001000
72
73
000001001001
73
74
000001001010
74
75
000001001011
75
76
000001001100
76
77
000001001101
77
78
000001001110
78
79
000001001111
79
80
000001010000
80
81
000001010001
81
82
000001010010
82
83
000001010011
83
84
000001010100
84
85
000001010101
85
86
000001010110
86
87
000001010111
87
88
000001011000
88
89
000001011001
89
90
000001011010
90
91
000001011011
91
92
000001011100
92
93
000001011101
93
94
000001011110
94
95
000001011111
95
96
000001100000
96
97
000001100001
97
98
000001100010
98
99
000001100011
99



LukeKnotts.com