コード例 #1
0
        public Head(OutputChordSymbol outputChordSymbol, Note mnxcNote)
        {
            Chord = outputChordSymbol;
            Pitch = mnxcNote.NoteheadPitch;
            if (Pitch.Contains("##"))
            {
                Alteration = 2;
            }
            else if (Pitch.Contains("#"))
            {
                Alteration = 1;
            }
            else if (Pitch.Contains("bb"))
            {
                Alteration = -2;
            }
            else if (Pitch.Contains("b"))
            {
                Alteration = -1;
            }
            else
            {
                Alteration = 0;
            }

            if (mnxcNote.Accidental != null)
            {
                this.DisplayAccidental = DisplayAccidental.force;
            }

            ID = mnxcNote.ID; // can be null;

            if (mnxcNote.Tied != null)
            {
                Tied = mnxcNote.Tied;
            }
        }