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 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
|
/*
Copyright (C) 2003-2010 Fons Adriaensen <fons@kokkinizita.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include "scales.h"
// Pythagorean
static float scale_pythagorean [12] = {
1.00000000,
1.06787109,
1.12500000,
1.18518519,
1.26562500,
1.33333333,
1.42382812,
1.50000000,
1.60180664,
1.68750000,
1.77777778,
1.89843750,
};
// 1/4 comma meantone (Pietro Aaron, 1523)
static float scale_meanquart [12] = {
1.0000000,
1.0449067,
1.1180340,
1.1962790,
1.2500000,
1.3374806,
1.3975425,
1.4953488,
1.5625000,
1.6718508,
1.7888544,
1.8691860
};
// Andreas Werckmeister III, 1681
static float scale_werckm3 [12] = {
1.00000000,
1.05349794,
1.11740331,
1.18518519,
1.25282725,
1.33333333,
1.40466392,
1.49492696,
1.58024691,
1.67043633,
1.77777778,
1.87924088
};
// Kirnberger III
static float scale_kirnberg3 [12] = {
1.00000000,
1.05349794,
1.11848107,
1.18518519,
1.25000021,
1.33333333,
1.40625000,
1.49542183,
1.58024691,
1.67176840,
1.77777778,
1.87500000
};
// Well-tempered (Jacob Breetvelt)
static float scale_welltemp [12] =
{
1.00000000,
1.05468828,
1.12246205,
1.18652432,
1.25282725,
1.33483985,
1.40606829,
1.49830708,
1.58203242,
1.67705161,
1.77978647,
1.87711994
};
// Equally Tempered
static float scale_equaltemp [12] =
{
1.00000000,
1.05946309,
1.12246205,
1.18920712,
1.25992105,
1.33483985,
1.41421356,
1.49830708,
1.58740105,
1.68179283,
1.78179744,
1.88774863,
};
// The following five were contributed by Hanno Hoffstadt.
// The Lehman temperament was also provided by Adam Sampson.
// Vogel/Ahrend
static float scale_ahrend [12] =
{
1.00000000,
1.05064661,
1.11891853,
1.18518519,
1.25197868,
1.33695184,
1.40086215,
1.49594019,
1.57596992,
1.67383521,
1.78260246,
1.87288523,
};
// Vallotti
static float scale_vallotti [12] =
{
1.00000000,
1.05647631,
1.12035146,
1.18808855,
1.25518740,
1.33609659,
1.40890022,
1.49689777,
1.58441623,
1.67705160,
1.78179744,
1.87888722,
};
// Kellner
static float scale_kellner [12] =
{
1.00000000,
1.05349794,
1.11891853,
1.18518519,
1.25197868,
1.33333333,
1.40466392,
1.49594019,
1.58024691,
1.67383521,
1.77777778,
1.87796802,
};
// Lehman
static float scale_lehman [12] =
{
1.00000000,
1.05826737,
1.11992982,
1.18786496,
1.25424281,
1.33634808,
1.41102316,
1.49661606,
1.58560949,
1.67610496,
1.77978647,
1.88136421,
};
// Pythagorean
static float scale_pure_cfg [12] =
{
1.00000000,
1.04166667,
1.12500000,
1.1892,
1.25000000,
1.33333333,
1.40625000,
1.50000000,
1.5874,
1.66666667,
1.77777778,
1.87500000,
};
struct temper scales [NSCALES] =
{
{ "Pythagorean", "pyt", scale_pythagorean },
{ "Meantone 1/4", "mtq", scale_meanquart },
{ "Werckmeister III", "we3", scale_werckm3 },
{ "Kirnberger III", "ki3", scale_kirnberg3 },
{ "Well Tempered", "wt", scale_welltemp },
{ "Equally Tempered", "et", scale_equaltemp },
{ "Vogel/Ahrend", "ahr", scale_ahrend },
{ "Vallotti", "val", scale_vallotti },
{ "Kellner", "kel", scale_kellner },
{ "Lehman", "leh", scale_lehman },
{ "Pure C/F/G", "cfg", scale_pure_cfg },
};
|