コード例 #1
0
        protected virtual void Add(Glyph noteGlyph, int noteLine)
        {
            var info = new ScoreNoteGlyphInfo(noteGlyph, noteLine);

            _infos.Add(info);
            if (MinNote == null || MinNote.Line > info.Line)
            {
                MinNote = info;
            }
            if (MaxNote == null || MaxNote.Line < info.Line)
            {
                MaxNote = info;
            }
        }
コード例 #2
0
        public void AddNoteGlyph(Glyph noteGlyph, Note note, int noteLine)
        {
            var info = new ScoreNoteGlyphInfo(noteGlyph, noteLine, note);

            _infos.Add(info);
            _noteLookup[note.String] = noteGlyph;
            if (MinNote == null || MinNote.Line > info.Line)
            {
                MinNote = info;
            }
            if (MaxNote == null || MaxNote.Line < info.Line)
            {
                MaxNote = info;
            }
        }
コード例 #3
0
 public void AddNoteGlyph(Glyph noteGlyph, Note note, int noteLine)
 {
     var info = new ScoreNoteGlyphInfo(noteGlyph, noteLine);
     _infos.Add(info);
     _noteLookup[note.String] = noteGlyph;
     if (MinNote == null || MinNote.Line > info.Line)
     {
         MinNote = info;
     }
     if (MaxNote == null || MaxNote.Line < info.Line)
     {
         MaxNote = info;
     }
 }