Logo Search packages:      
Sourcecode: aeolus version File versions  Download package

scales.cc

/*
    Copyright (C) 2003-2008 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"


// 1/4 comma meantone (Pietro Aaron, 1523)

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

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

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)

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
};

// Equal temperament

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
};


struct temper scales [NSCALES] =
{
    {  "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 }
};


Generated by  Doxygen 1.6.0   Back to index