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; } }
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; } }
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; } }