コード例 #1
0
        public RootFor_V(string keyNote)
        {
            string note2, note3, note4, note5;

            WS_Sharp ws_sharp = new WS_Sharp();
            HS_Sharp hs_sharp = new HS_Sharp();
            WS_Flat  ws_flat  = new WS_Flat();
            HS_Flat  hs_flat  = new HS_Flat();

            // Find the root for the V degree
            // W W H W
            if (keyNote.Equals("d") || keyNote.Equals("e") || keyNote.Equals("a") || keyNote.Equals("c#") ||
                keyNote.Equals("d#") || keyNote.Equals("f#") || keyNote.Equals("g#") || keyNote.Equals("a#"))
            {
                //intervalli1 = "W";
                note2 = ws_sharp.getScales(keyNote);

                //intervalli2 = "W";
                note3 = ws_sharp.getScales(note2);

                //intervalli3 = "H";
                note4 = hs_sharp.getScales(note3);

                //intervalli4 = "W";
                note5 = ws_sharp.getScales(note4);

                this.newRoot4V = note5;
            }
            else if (keyNote.Equals("c") || keyNote.Equals("f") || keyNote.Equals("g") || keyNote.Equals("b") ||
                     keyNote.Equals("db") || keyNote.Equals("eb") || keyNote.Equals("gb") || keyNote.Equals("ab") || keyNote.Equals("bb"))
            {
                //intervalli1 = "W";
                note2 = ws_flat.getScales(keyNote);

                //intervalli2 = "W";
                note3 = ws_flat.getScales(note2);

                //intervalli3 = "H";
                note4 = hs_flat.getScales(note3);

                //intervalli4 = "W";
                note5 = ws_flat.getScales(note4);

                this.newRoot4V = note5;
            }
            else
            {
            }
        }
コード例 #2
0
        public V_Altered(string keyNote)
        {
            string note2, note3, note4, note5;

            WS_Sharp ws_sharp = new WS_Sharp();
            HS_Sharp hs_sharp = new HS_Sharp();
            WS_Flat  ws_flat  = new WS_Flat();
            HS_Flat  hs_flat  = new HS_Flat();

            // Find the new root for melodic minor scale used on for Alt V scale
            // W W W W
            if (keyNote.Equals("d") || keyNote.Equals("e") || keyNote.Equals("a") || keyNote.Equals("c#") ||
                keyNote.Equals("d#") || keyNote.Equals("f#") || keyNote.Equals("g#") || keyNote.Equals("a#"))
            {
                //intervalli1 = "H";
                note2 = ws_sharp.getScales(keyNote);

                //intervalli2 = "W";
                note3 = ws_sharp.getScales(note2);

                //intervalli3 = "W";
                note4 = ws_sharp.getScales(note3);

                //intervalli4 = "W";
                note5 = ws_sharp.getScales(note4);

                this.newRoot4MMScaleV = note5;
            }
            else if (keyNote.Equals("c") || keyNote.Equals("f") || keyNote.Equals("g") || keyNote.Equals("b") ||
                     keyNote.Equals("db") || keyNote.Equals("eb") || keyNote.Equals("gb") || keyNote.Equals("ab") || keyNote.Equals("bb"))
            {
                //intervalli1 = "W";
                note2 = ws_flat.getScales(keyNote);

                //intervalli2 = "W";
                note3 = ws_flat.getScales(note2);

                //intervalli3 = "W";
                note4 = ws_flat.getScales(note3);

                //intervalli4 = "W";
                note5 = ws_flat.getScales(note4);

                this.newRoot4MMScaleV = note5;
            }
            else
            {
            }
        }
コード例 #3
0
        public RootFor_II(string keyNote)
        {
            string note2;

            WS_Sharp ws_sharp = new WS_Sharp();
            //HS_Sharp hs_sharp = new HS_Sharp();
            WS_Flat ws_flat = new WS_Flat();

            //HS_Flat hs_flat = new HS_Flat();

            // Find the root for the II degree
            // W
            if (keyNote.Equals("d") || keyNote.Equals("e") || keyNote.Equals("a") || keyNote.Equals("c#") ||
                keyNote.Equals("d#") || keyNote.Equals("f#") || keyNote.Equals("g#") || keyNote.Equals("a#"))
            {
                //intervalli1 = "W";
                note2 = ws_sharp.getScales(keyNote);

                this.newRoot4II = note2;
            }
            else if (keyNote.Equals("c") || keyNote.Equals("f") || keyNote.Equals("g") || keyNote.Equals("b") ||
                     keyNote.Equals("db") || keyNote.Equals("eb") || keyNote.Equals("gb") || keyNote.Equals("ab") || keyNote.Equals("bb"))
            {
                //intervalli1 = "W";
                note2 = ws_flat.getScales(keyNote);

                this.newRoot4II = note2;
            }
            else
            {
            }
        }
コード例 #4
0
        public MelodicMinor(string minorKey)
        {
            string note2, note3, note4, note5, note6, note7, note8;

            WS_Sharp ws_sharp = new WS_Sharp();
            HS_Sharp hs_sharp = new HS_Sharp();
            WS_Flat  ws_flat  = new WS_Flat();
            HS_Flat  hs_flat  = new HS_Flat();

            if (minorKey.Equals("d") || minorKey.Equals("e") || minorKey.Equals("a") || minorKey.Equals("c#") ||
                minorKey.Equals("d#") || minorKey.Equals("f#") || minorKey.Equals("g#") || minorKey.Equals("a#"))
            {
                //System.out.println(" W H W W W W H ");
                //intervalli1 = "W";
                note2 = ws_sharp.getScales(minorKey);

                //intervalli2 = "H";
                note3 = hs_sharp.getScales(note2);

                //intervalli3 = "W";
                note4 = ws_sharp.getScales(note3);

                //intervalli4 = "W";
                note5 = ws_sharp.getScales(note4);

                //intervalli5 = "W";
                note6 = ws_sharp.getScales(note5);

                //intervalli6 = "W";
                note7 = ws_sharp.getScales(note6);

                //intervalli7 = "H";
                note8 = hs_sharp.getScales(note7);

                this.new_MM_Scale = minorKey + "   " + note2 + "   " + note3 + "   " + note4 + "   " + note5 + "   " + note6 + "   " + note7 + "   " + note8;
            }
            else if (minorKey.Equals("c") || minorKey.Equals("f") || minorKey.Equals("g") || minorKey.Equals("b") ||
                     minorKey.Equals("db") || minorKey.Equals("eb") || minorKey.Equals("gb") || minorKey.Equals("ab") || minorKey.Equals("bb"))
            {
                //System.out.println(" W H W W W W H ");
                //intervalli1 = "W";
                note2 = ws_flat.getScales(minorKey);

                //intervalli2 = "H";
                note3 = hs_flat.getScales(note2);

                //intervalli3 = "W";
                note4 = ws_flat.getScales(note3);

                //intervalli4 = "W";
                note5 = ws_flat.getScales(note4);

                //intervalli5 = "W";
                note6 = ws_flat.getScales(note5);

                //intervalli6 = "W";
                note7 = ws_flat.getScales(note6);

                //intervalli7 = "H";
                note8 = hs_flat.getScales(note7);

                this.new_MM_Scale = minorKey + "   " + note2 + "   " + note3 + "   " + note4 + "   " + note5 + "   " + note6 + "   " + note7 + "   " + note8;
            }
            else
            {
            }
        }
コード例 #5
0
        public void setKey(string keyNote = "c")
        {
            string note1, note2, note3, note4, note5, note6, note7, note8;

            WS_Sharp ws_sharp = new WS_Sharp();
            HS_Sharp hs_sharp = new HS_Sharp();
            WS_Flat  ws_flat  = new WS_Flat();
            HS_Flat  hs_flat  = new HS_Flat();

            if (keyNote.Equals("d") || keyNote.Equals("e") || keyNote.Equals("a") || keyNote.Equals("c#") ||
                keyNote.Equals("d#") || keyNote.Equals("f#") || keyNote.Equals("g#") || keyNote.Equals("a#"))
            {
                //System.out.println("Half diminished scale for II cord (mi7b5)");
                //System.out.println(" W H W H W W W ");

                note1 = keyNote;

                //intervalli1 = "W";
                note2 = ws_sharp.getScales(note1);

                //intervalli2 = "H";
                note3 = hs_sharp.getScales(note2);

                //intervalli3 = "W";
                note4 = ws_sharp.getScales(note3);

                //intervalli4 = "H";
                note5 = hs_sharp.getScales(note4);

                //intervalli5 = "W";
                note6 = ws_sharp.getScales(note5);

                //intervalli6 = "W";
                note7 = ws_sharp.getScales(note6);

                //intervalli7 = "W";
                note8 = ws_sharp.getScales(note7);

                this.new_MM_Scale_II = keyNote + "   " + note2 + "   " + note3 + "   " + note4 + "   " + note5 + "   " + note6 + "   " + note7 + "   " + note8;
            }
            else if (keyNote.Equals("c") || keyNote.Equals("f") || keyNote.Equals("g") || keyNote.Equals("b") ||
                     keyNote.Equals("db") || keyNote.Equals("eb") || keyNote.Equals("gb") || keyNote.Equals("ab") || keyNote.Equals("bb"))
            {
                // System.out.println("Half diminished scale for II cord (mi7b5)");
                //System.out.println(" W H W H W W W ");
                note1 = keyNote;

                //intervalli1 = "W";
                note2 = ws_flat.getScales(note1);

                //intervalli2 = "H";
                note3 = hs_flat.getScales(note2);

                //intervalli3 = "W";
                note4 = ws_flat.getScales(note3);

                //intervalli4 = "H";
                note5 = hs_flat.getScales(note4);

                //intervalli5 = "W";
                note6 = ws_flat.getScales(note5);

                //intervalli6 = "W";
                note7 = ws_flat.getScales(note6);

                //intervalli7 = "W";
                note8 = ws_flat.getScales(note7);

                this.new_MM_Scale_II = keyNote + "   " + note2 + "   " + note3 + "   " + note4 + "   " + note5 + "   " + note6 + "   " + note7 + "   " + note8;
            }
            else
            {
            }
        }