Exemplo n.º 1
0
        public FundamentalToPitch()
        {
            Tones    = new Pitch[capacity];
            Tones[0] = new Pitch(27.5f, keyLetters[0]);
            float factor = (float)Math.Pow(2, 1 / (double)12);

            for (int halftone = 1; halftone < capacity; ++halftone)
            {
                float  freq   = Tones[halftone - 1].Fundamental * factor;
                string letter = keyLetters[halftone % 12];
                Tones[halftone] = new Pitch(freq, letter);
            }
        }
Exemplo n.º 2
0
 public void ChangePitch(Pitch PITCH)
 {
     PitchLabel.Text     = PITCH.Name;
     FrequencyLabel.Text = PITCH.Fundamental.ToString();
 }