Exemplo n.º 1
0
        public static PreciseDouble GetAdjustedFretRatio(PitchValue tuning, int fret, Temperament temperament)
        {
            if (fret == 0)
            {
                return(0d);
            }

            var           pitchAtFret = GetPitchAtFret(tuning, fret, temperament);
            PreciseDouble fretRatio   = NoteConverter.CentsToIntonationRatio(pitchAtFret.Cents - tuning.Cents);

            return(fretRatio);
        }
Exemplo n.º 2
0
 public static PitchValue FromCents(double cents)
 {
     return(new PitchValue(cents, NoteConverter.CentsToIntonationRatio(cents)));
 }