private static MusicFontSymbol GetSymbol(Duration duration, BeamDirection direction, bool isGrace)
{
if (direction == BeamDirection.Up)
{
if (isGrace)
{
return MusicFontSymbol.FooterUpEighth;
}
switch (duration)
{
case Duration.Eighth: return MusicFontSymbol.FooterUpEighth;
case Duration.Sixteenth: return MusicFontSymbol.FooterUpSixteenth;
case Duration.ThirtySecond: return MusicFontSymbol.FooterUpThirtySecond;
case Duration.SixtyFourth: return MusicFontSymbol.FooterUpSixtyFourth;
case Duration.OneHundredTwentyEighth: return MusicFontSymbol.FooterUpOneHundredTwentyEighth;
case Duration.TwoHundredFiftySixth: return MusicFontSymbol.FooterUpTwoHundredFiftySixth;
default: return MusicFontSymbol.FooterUpEighth;
}
}
else
{
if (isGrace)
{
return MusicFontSymbol.FooterDownEighth;
}
switch (duration)
{
case Duration.Eighth: return MusicFontSymbol.FooterDownEighth;
case Duration.Sixteenth: return MusicFontSymbol.FooterDownSixteenth;
case Duration.ThirtySecond: return MusicFontSymbol.FooterDownThirtySecond;
case Duration.SixtyFourth: return MusicFontSymbol.FooterDownSixtyFourth;
case Duration.OneHundredTwentyEighth: return MusicFontSymbol.FooterDownOneHundredTwentyEighth;
case Duration.TwoHundredFiftySixth: return MusicFontSymbol.FooterDownOneHundredTwentyEighth;
default: return MusicFontSymbol.FooterDownEighth;
}
}
}