public override void AddGlyph(Glyph g)
{
g.X = BeatGlyphs.Count == 0
? 0
: BeatGlyphs[BeatGlyphs.Count - 1].X + BeatGlyphs[BeatGlyphs.Count - 1].Width;
g.Renderer = Renderer;
g.DoLayout();
BeatGlyphs.Add((BeatContainerGlyph)g);
Width = g.X + g.Width;
}