public string TranslateSelectedSongNotationToHarpNotation(string[] songlines, string[] selectedsonglines, int rowoffset, eSongFormat songFormat, eTranslateType translateType) { string sb = string.Empty; hc.shiftedKey = hc.ActualHarpInstrument.Key; if (songFormat == eSongFormat.simple) { hc.SongDefinition = hc.TranslateDefinition2SongNotesList(songlines, rowoffset, translateType); List <Notes> notessonglines = hc.TranslateNotes2SongNotesList(selectedsonglines, hc.shiftedKey, translateType); hc.SongNotesList = new List <Notes>(); hc.SongNotesList.AddRange(notessonglines); if (hc.ShiftNote != 0) { List <int> fail = hc.ShiftSongNotes(hc.ShiftNote); } sb = hc.TranslateSongNotesList2HarpText(false); hc.TranslateSongNotesList2Harp(harpPlayForm.flowLayoutPanel1, songSequenceForm.rtbSong); } else { sb = hc.TranslateABC(songlines, rowoffset); } harpSequenceForm.SetSongText(sb.ToString()); return(sb.ToString()); }
public string TranslateSongNotationToHarpNotation(string[] songlines, int rowoffset, eSongFormat songFormat, eTranslateType translateType) { string sb1 = TranslateSelectedSongNotationToHarpNotation(songlines, songlines, rowoffset, songFormat, translateType); return(sb1); /* * string sb = string.Empty; * hc.shiftedKey = hc.ActualHarpInstrument.Key; * if (songFormat == eSongFormat.simple) * { * hc.Translate2SongNotesList(songlines, hc.shiftedKey, translateType); * if (hc.ShiftNote != 0) * { * List<int> fail = hc.ShiftSongNotes(hc.ShiftNote); * } * sb = hc.TranslateSongNotesList2HarpText(false); * hc.TranslateSongNotesList2Harp(harpPlayForm.flowLayoutPanel1, songSequenceForm.rtbSong); * } * else * { * sb = hc.TranslateABC(songlines, rowoffset); * } * harpSequenceForm.SetSongText(sb.ToString()); * return sb.ToString(); */ }