示例#1
0
        private void SetPlayChord(int[] chord) //chord without kbtrans applied
        {
            if (chord == null)
            {
                return;
            }
            int[] chordkbtrans = new int[chord.Length];
            for (int i = 0; i < chord.Length; i++)
            {
                int pc        = chord[i];
                int pckbtrans = (pc - P.frmSC.Play.TransposeKB).Mod12();
                chordkbtrans[i] = pckbtrans;
            }
            PlayChord = new clsPlay.clsChordEv(P.frmSC.Play, chordkbtrans, true);

            ChordDB.clsDesc desc = ChordDB.GetChord(ActiveBoolChordMouse);
            if (desc == null)
            {
                lblNewChord.Text = "xxx";
            }
            else
            {
                string name = NoteName.GetNoteNameOrRoman(desc.Root, Key);
                lblNewChord.Text = name + desc.Qualifier;
            }
            picPC.Refresh();
        }
示例#2
0
 private void ShowPlayChord(int[] chord)
 {
     PlayChord = new clsPlay.clsChordEv(P.frmSC.Play, chord, true);
     //string txt = clsManChords.ShowChordText(chord, Key);
     //lblNewChord.Text = (txt == "") ? "null" : txt;
     ChordDB.clsDesc desc = ChordDB.GetChord(ActiveBoolChord);
     if (desc == null)
     {
         lblNewChord.Text = "xxx";
     }
     else
     {
         string name = NoteName.GetNoteNameOrRoman(desc.Root, Key);
         lblNewChord.Text = name + desc.Qualifier;
     }
     picPC.Refresh();
 }