-
Notifications
You must be signed in to change notification settings - Fork 12
/
quantizer_scales.h
139 lines (133 loc) · 6.01 KB
/
quantizer_scales.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
// Copyright 2015 Emilie Gillet.
//
// Author: Emilie Gillet ([email protected])
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
// See http://creativecommons.org/licenses/MIT/ for more information.
//
// -----------------------------------------------------------------------------
//
// Quantizer scales
#ifndef BRAIDS_QUANTIZER_SCALES_H_
#define BRAIDS_QUANTIZER_SCALES_H_
#include "quantizer.h"
namespace braids {
const Scale scales[] = {
// Off
{ 0, 0, { } },
// Semitones
{ 12 << 7, 12, { 0, 128, 256, 384, 512, 640, 768, 896, 1024, 1152, 1280, 1408} },
// Ionian (From midipal/BitT source code)
{ 12 << 7, 7, { 0, 256, 512, 640, 896, 1152, 1408} },
// Dorian (From midipal/BitT source code)
{ 12 << 7, 7, { 0, 256, 384, 640, 896, 1152, 1280} },
// Phrygian (From midipal/BitT source code)
{ 12 << 7, 7, { 0, 128, 384, 640, 896, 1024, 1280} },
// Lydian (From midipal/BitT source code)
{ 12 << 7, 7, { 0, 256, 512, 768, 896, 1152, 1408} },
// Mixolydian (From midipal/BitT source code)
{ 12 << 7, 7, { 0, 256, 512, 640, 896, 1152, 1280} },
// Aeolian (From midipal/BitT source code)
{ 12 << 7, 7, { 0, 256, 384, 640, 896, 1024, 1280} },
// Locrian (From midipal/BitT source code)
{ 12 << 7, 7, { 0, 128, 384, 640, 768, 1024, 1280} },
// Blues major (From midipal/BitT source code)
{ 12 << 7, 6, { 0, 384, 512, 896, 1152, 1280} },
// Blues minor (From midipal/BitT source code)
{ 12 << 7, 6, { 0, 384, 640, 768, 896, 1280} },
// Pentatonic major (From midipal/BitT source code)
{ 12 << 7, 5, { 0, 256, 512, 896, 1152} },
// Pentatonic minor (From midipal/BitT source code)
{ 12 << 7, 5, { 0, 384, 640, 896, 1280} },
// Folk (From midipal/BitT source code)
{ 12 << 7, 8, { 0, 128, 384, 512, 640, 896, 1024, 1280} },
// Japanese (From midipal/BitT source code)
{ 12 << 7, 5, { 0, 128, 640, 896, 1024} },
// Gamelan (From midipal/BitT source code)
{ 12 << 7, 5, { 0, 128, 384, 896, 1024} },
// Gypsy
{ 12 << 7, 7, { 0, 256, 384, 768, 896, 1024, 1408} },
// Arabian
{ 12 << 7, 7, { 0, 128, 512, 640, 896, 1024, 1408} },
// Flamenco
{ 12 << 7, 7, { 0, 128, 512, 640, 896, 1024, 1280} },
// Whole tone (From midipal/BitT source code)
{ 12 << 7, 6, { 0, 256, 512, 768, 1024, 1280} },
// pythagorean (From yarns source code)
{ 12 << 7, 12, { 0, 115, 261, 376, 522, 637, 783, 899, 1014, 1160, 1275, 1421} },
// 1_4_eb (From yarns source code)
{ 12 << 7, 12, { 0, 128, 256, 384, 448, 640, 768, 896, 1024, 1152, 1280, 1344} },
// 1_4_e (From yarns source code)
{ 12 << 7, 12, { 0, 128, 256, 384, 448, 640, 768, 896, 1024, 1152, 1280, 1408} },
// 1_4_ea (From yarns source code)
{ 12 << 7, 12, { 0, 128, 256, 384, 448, 640, 768, 896, 1024, 1088, 1280, 1408} },
// bhairav (From yarns source code)
{ 12 << 7, 7, { 0, 115, 494, 637, 899, 1014, 1393} },
// gunakri (From yarns source code)
{ 12 << 7, 5, { 0, 143, 637, 899, 1042} },
// marwa (From yarns source code)
{ 12 << 7, 6, { 0, 143, 494, 755, 1132, 1393} },
// shree (From yarns source code)
{ 12 << 7, 7, { 0, 115, 494, 755, 899, 1014, 1393} },
// purvi (From yarns source code)
{ 12 << 7, 7, { 0, 143, 494, 755, 899, 1042, 1393} },
// bilawal (From yarns source code)
{ 12 << 7, 7, { 0, 261, 494, 637, 899, 1160, 1393} },
// yaman (From yarns source code)
{ 12 << 7, 7, { 0, 261, 522, 783, 899, 1160, 1421} },
// kafi (From yarns source code)
{ 12 << 7, 7, { 0, 233, 376, 637, 899, 1132, 1275} },
// bhimpalasree (From yarns source code)
{ 12 << 7, 7, { 0, 261, 404, 637, 899, 1160, 1303} },
// darbari (From yarns source code)
{ 12 << 7, 7, { 0, 261, 376, 637, 899, 1014, 1275} },
// rageshree (From yarns source code)
{ 12 << 7, 7, { 0, 261, 494, 637, 899, 1132, 1275} },
// khamaj (From yarns source code)
{ 12 << 7, 8, { 0, 261, 494, 637, 899, 1160, 1275, 1421} },
// mimal (From yarns source code)
{ 12 << 7, 8, { 0, 261, 376, 637, 899, 1132, 1275, 1393} },
// parameshwari (From yarns source code)
{ 12 << 7, 6, { 0, 115, 376, 637, 1132, 1275} },
// rangeshwari (From yarns source code)
{ 12 << 7, 6, { 0, 261, 376, 637, 899, 1393} },
// gangeshwari (From yarns source code)
{ 12 << 7, 6, { 0, 494, 637, 899, 1014, 1275} },
// kameshwari (From yarns source code)
{ 12 << 7, 6, { 0, 261, 755, 899, 1132, 1275} },
// pa__kafi (From yarns source code)
{ 12 << 7, 7, { 0, 261, 376, 637, 899, 1160, 1275} },
// natbhairav (From yarns source code)
{ 12 << 7, 7, { 0, 261, 494, 637, 899, 1014, 1393} },
// m_kauns (From yarns source code)
{ 12 << 7, 6, { 0, 261, 522, 637, 1014, 1275} },
// bairagi (From yarns source code)
{ 12 << 7, 5, { 0, 115, 637, 899, 1275} },
// b_todi (From yarns source code)
{ 12 << 7, 5, { 0, 115, 376, 899, 1275} },
// chandradeep (From yarns source code)
{ 12 << 7, 5, { 0, 376, 637, 899, 1275} },
// kaushik_todi (From yarns source code)
{ 12 << 7, 5, { 0, 376, 637, 755, 1014} },
// jogeshwari (From yarns source code)
{ 12 << 7, 6, { 0, 376, 494, 637, 1132, 1275} },
};
} // namespace braids
#endif // BRAIDS_QUANTIZER_SCALES_H_