public Beat FindBeatAtPos(float x, float y)
{
BeatBounds beat = null;
for (int i = 0; i < Bars.Count; i++)
{
var b = Bars[i].FindBeatAtPos(x);
if (b != null && (beat == null || beat.RealBounds.X < b.RealBounds.X))
{
beat = b;
}
}
return beat == null ? null : beat.Beat;
}