This BarRenderer renders a bar using guitar tablature notation
Inheritance: BarRendererBase
Ejemplo n.º 1
0
        public override BarRendererBase Create(ScoreRenderer renderer, Bar bar, StaveSettings staveSettings)
        {
            var tabBarRenderer = new TabBarRenderer(renderer, bar);

            tabBarRenderer.RenderRhythm = staveSettings.Get("rhythm", tabBarRenderer.RenderRhythm);
            tabBarRenderer.RhythmHeight = staveSettings.Get("rhythm-height", tabBarRenderer.RhythmHeight);
            tabBarRenderer.RhythmBeams  = staveSettings.Get("rhythm-beams", tabBarRenderer.RhythmBeams);

            return(tabBarRenderer);
        }
Ejemplo n.º 2
0
        public override BarRendererBase Create(ScoreRenderer renderer, Bar bar, StaveSettings staveSettings)
        {
            var tabBarRenderer = new TabBarRenderer(renderer, bar);

            tabBarRenderer.ShowRests         = _showRests;
            tabBarRenderer.ShowTimeSignature = _showTimeSignature;
            tabBarRenderer.ShowTiedNotes     = _showTiedNotes;
            tabBarRenderer.RenderRhythm      = staveSettings.Get("rhythm", tabBarRenderer.RenderRhythm);
            tabBarRenderer.RhythmHeight      = staveSettings.Get("rhythmHeight", tabBarRenderer.RhythmHeight);
            tabBarRenderer.RhythmBeams       = staveSettings.Get("rhythmBeams", tabBarRenderer.RhythmBeams);

            return(tabBarRenderer);
        }
Ejemplo n.º 3
0
        public override BarRendererBase Create(ScoreRenderer renderer, Bar bar, FastDictionary <string, object> additionalSettings)
        {
            var tabBarRenderer = new TabBarRenderer(renderer, bar);

            if (additionalSettings.ContainsKey("rhythm"))
            {
                tabBarRenderer.RenderRhythm = (bool)additionalSettings["rhythm"];
            }

            if (additionalSettings.ContainsKey("rhythm-height"))
            {
                tabBarRenderer.RhythmHeight = (float)additionalSettings["rhythm-height"];
            }

            if (additionalSettings.ContainsKey("rhythm-beams"))
            {
                tabBarRenderer.RhythmBeams = (bool)additionalSettings["rhythm-beams"];
            }

            return(tabBarRenderer);
        }