AlphaTab.Rendering.Glyphs.BeamGlyph.GetSymbol C# (CSharp) 메소드

GetSymbol() 개인적인 정적인 메소드

private static GetSymbol ( Duration duration, BeamDirection direction, bool isGrace ) : MusicFontSymbol
duration Duration
direction BeamDirection
isGrace bool
리턴 MusicFontSymbol
        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;
                }
            }
        }