Exemple #1
0
 public void writeResults(int currentImprovisation)
 {
     Results.Append("--------------------------------------------------------------------------------------------");
     Results.Append(Environment.NewLine + "Improvisation Number: " + currentImprovisation + Environment.NewLine);
     Results.Append("--------------------------------------------------------------------------------------------");
     for (int i = 0; i < HMSize; i++)
     {
         Results.Append(Environment.NewLine);
         Results.Append(i + " Harmony: ");
         //Results += Environment.NewLine;
         for (int j = 0; j < TotalNotes; j++)
         {
             Results.Append("\t");
             Results.Append("Note " + j + ": " + Math.Round(Memory[i].notes[j], 6));
         }
         //Results += Environment.NewLine;
         Results.Append("\t Aesthetics: " + Math.Round(getHarmonyAesthetics(Memory[i]), 9));
         //Results += Environment.NewLine;
     }
     Results.Append(Environment.NewLine);
     if (currentImprovisation == (NI - 1))
     {
         saveResultsToFile();
     }
 }
Exemple #2
0
        public void PrintResults(IEnumerable <IElement> articleLink)
        {
            //Every element needs to be cleaned and displayed
            foreach (var element in articleLink)
            {
                CleanUpResults(element);

                Results.Append($"{Title} - {Url}{Environment.NewLine}");
            }
        }