AlphaTab.Rendering.Glyphs.NoteNumberGlyph.NoteNumberGlyph C# (CSharp) Method

NoteNumberGlyph() public method

public NoteNumberGlyph ( float x, float y, Note n ) : AlphaTab.Model
x float
y float
n AlphaTab.Model.Note
return AlphaTab.Model
        public NoteNumberGlyph(float x, float y, Note n)
            : base(x, y)
        {
            if (!n.IsTieDestination)
            {
                _noteString = n.IsDead ? "x" : n.Fret.ToString();
                if (n.IsGhost)
                {
                    _noteString = "(" + _noteString + ")";
                }
            }
            else if (n.Beat.Index == 0 || n.HasBend)
            {
                _noteString = "(" + n.TieOrigin.Fret + ")";
            }
            else
            {
                _noteString = "";
            }

            if (n.IsTrill)
            {
                _trillNoteString = "(" + n.TrillFret + ")";
            }
            else
            {
                _trillNoteString = "";
            }
        }