public override void DoLayout()
{
switch (_duration)
{
case Duration.QuadrupleWhole:
case Duration.DoubleWhole:
case Duration.Whole:
case Duration.Half:
case Duration.Quarter:
case Duration.Eighth:
case Duration.Sixteenth:
Width = 9 * Scale;
break;
case Duration.ThirtySecond:
Width = 12 * Scale;
break;
case Duration.SixtyFourth:
Width = 14 * Scale;
break;
case Duration.OneHundredTwentyEighth:
case Duration.TwoHundredFiftySixth:
Width = 20 * Scale;
break;
}
}