Exemplo n.º 1
0
        public static double CentsToPitch(int cents)
        {//does not return a frequency, only the 2^(1/12) value.
            int key = cents / 100;

            cents -= key * 100;
            if (key < -127)
            {
                key = -127;
            }
            else if (key > 127)
            {
                key = 127;
            }
            return(Tables.SemitoneTable(127 + key) * Tables.CentTable(100 + cents));
        }