private void OutputPermutation(int[] value) { string a = string.Empty; GuitarStrings GS = new GuitarStrings(); foreach (int i in value) { a += inputSet.GetValue(i - 1).ToString() + ','; } a = a.Substring(0, a.Length - 1); if (a.Contains(Pitches[0].ToString()) && a.Contains(Pitches[1].ToString()) && a.Contains(Pitches[2].ToString())) { int[] FingerPlace = GS.GetFingerPlace(a); if (FingerPlace[0] == -1 && FingerPlace[1] == 0 && FingerPlace[2] == 0 && FingerPlace[3] == 0 && FingerPlace[4] == -1 && FingerPlace[5] == -1) { } if (!Output2.Contains(FingerPlace)) { //FingerPlace[0] + "," + FingerPlace[1] + "," + FingerPlace[2] + "," + FingerPlace[3] + "," + FingerPlace[4] + "," + FingerPlace[5])) Output2.Add(FingerPlace); } //FingerPlace[0] + "," + FingerPlace[1] + "," + FingerPlace[2] + "," + FingerPlace[3] + "," + // FingerPlace[4] + "," + FingerPlace[5] + "\t"; } PermutationCount++; }
private void OutputPermutation(int[] value) { string a = string.Empty; GuitarStrings GS = new GuitarStrings(); foreach (int i in value) { a += inputSet.GetValue(i - 1).ToString() + ','; } a = a.Substring(0, a.Length - 1); if (a.Contains(Pitches[0].ToString()) && a.Contains(Pitches[1].ToString()) && a.Contains(Pitches[2].ToString())) { int[] FingerPlace = GS.GetFingerPlace(a); if (FingerPlace[0] == -1 && FingerPlace[1] == 0 && FingerPlace[2] == 0 && FingerPlace[3] == 0 && FingerPlace[4] == -1 && FingerPlace[5] == -1) { } if (!Output2.Contains(FingerPlace)) //FingerPlace[0] + "," + FingerPlace[1] + "," + FingerPlace[2] + "," + FingerPlace[3] + "," + FingerPlace[4] + "," + FingerPlace[5])) Output2.Add(FingerPlace); //FingerPlace[0] + "," + FingerPlace[1] + "," + FingerPlace[2] + "," + FingerPlace[3] + "," + // FingerPlace[4] + "," + FingerPlace[5] + "\t"; } PermutationCount++; }