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);
        }
Exemplo n.º 2
0
        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);
        }