/// <summary> /// Create our note string used in our .ly file. /// </summary> /// <param name="notes">List of <see cref="Note"/> to be used in sheet creation.</param> /// <returns>A string in the format "a4 a4 b1 b1".</returns> private string BuildNoteString(List <Note> notes) { StringBuilder sb = new StringBuilder(); foreach (Note note in notes) { string octave = UtilMethods.GetOctaveStr(note.Frequency); sb.Append(note.Name); sb.Append(octave); sb.Append(note.Length); sb.Append(" "); } return(sb.ToString().Trim()); }