private void GetSymbol() { itemDuration = int.Parse(noteItem.Items.OfType <decimal>().FirstOrDefault().ToString()); Tuple <NoteTypeValueMusicXML, bool> value = CalculationHelpers.GetBaseDurationValue(itemDuration, partId, measureId); // item1 =NoteType... item2 true if has dot/dots restType = value.Item1; if (value.Item2) { dotCount++; } symbol = MusicSymbols.GetRestSymbolNoteType(restType); }
private void GetSymbol() { Tuple <NoteTypeValueMusicXML, bool> value = CalculationHelpers.GetBaseDurationValue(duration, partId, measureId); if (noteVisualType == NoteChoiceTypeMusicXML.grace) { noteType = noteItem.FirstOrDefault().Type.Value; } else { noteType = value.Item1; } hasDots = value.Item2; symbol = MusicSymbols.GetNoteHeadSymbolNoteType(noteType); }