예제 #1
0
        public ScaleManager()
        {
            //http://en.wikipedia.org/wiki/Jazz_scale


            //  1     ♭2    2nd   ♭3     3      4    ♭5     5     ♭6     6    ♭7     7
            scaleList.Add(new ScaleItem(1, "Major",
                                        true, false, true, false, true, true, false, true, false, true, false, true,
                                        null));
            scaleList.Add(new ScaleItem(2, "Minor",
                                        true, false, true, true, false, true, false, true, true, false, true, false,
                                        "Natural Minor"));
            scaleList.Add(new ScaleItem(3, "Harmonic Minor",
                                        true, false, true, true, false, true, false, true, true, false, false, true,
                                        ""));
            scaleList.Add(new ScaleItem(4, "Pentatonic Minor",
                                        true, false, false, true, false, true, false, true, false, false, true, false,
                                        ""));
            scaleList.Add(new ScaleItem(5, "Pentatonic Minor (Blues)",
                                        true, false, false, true, false, true, true, true, false, false, true, false,
                                        ""));
            scaleList.Add(new ScaleItem(6, "Melodic Minor",
                                        true, false, true, true, false, true, false, true, false, true, false, true,
                                        "The melodic minor scale is based on the natural minor with the sixth and seventh tones raised by a semitone (half step) when the scale is ascending. When the scale is descending, the melodic minor is the same as the natural minor"));
            scaleList.Add(new ScaleItem(8, "Whole Tone",
                                        true, false, true, false, true, false, true, false, true, false, true, false,
                                        ""));
            scaleList.Add(new ScaleItem(9, "Iwato",
                                        true, true, false, false, false, true, true, false, false, false, true, false,
                                        ""));
            scaleList.Add(new ScaleItem(10, "Algerian",
                                        true, false, true, true, false, true, true, true, true, false, false, true,
                                        ""));
            scaleList.Add(new ScaleItem(11, "Double Harmonic Major",
                                        true, false, true, true, false, true, true, false, true, true, false, true,
                                        ""));
            scaleList.Add(new ScaleItem(12, "Persian",
                                        true, true, false, false, true, true, true, false, true, false, false, true,
                                        ""));
            scaleList.Add(new ScaleItem(13, "Byzantine",
                                        true, true, false, false, true, true, false, true, true, false, false, true,
                                        ""));

            scaleList.Add(new ScaleItem(14, "Phrygian Dominant", true, true, false, false, true, true, false, true, true, false, true, false, "5th Mode of the Harmonic Minor Scale"));

            scaleList.Add(new ScaleItem(0, "Chromatic",
                                        true, true, true, true, true, true, true, true, true, true, true, true,
                                        ""));

            CurrentScale = scaleList[0];
        }
예제 #2
0
 public void SetScale(String strScaleName)
 {
     for (int i = 0; i < scaleList.Count; i++)
     {
         if (scaleList[i] != null)
         {
             if (scaleList[i].Name == strScaleName)
             {
                 CurrentScale = scaleList[i];
                 return;
             }
         }
     }
 }