Пример #1
0
        public async Task DrawArpeggioDown(VoicePart voicePart, double x)
        {
            x += this.Location.X;
            var y      = this.Owner.GetHeight(voicePart, x);
            var bounds = await this.PrimitiveRenderer.DrawArpeggioDown(x, y, voicePart.ToDirection());

            this.EnsureHeightForOrnament(voicePart, bounds);
        }
Пример #2
0
        public async Task DrawFlag(BaseNoteValue noteValue, double x, double y, VoicePart voicePart)
        {
            if (noteValue > BaseNoteValue.Eighth)
            {
                return;
            }

            var bounds = await this.PrimitiveRenderer.DrawFlag(noteValue,
                                                               this.Location.X + x,
                                                               this.Location.Y + y,
                                                               voicePart.ToDirection());

            this.Owner.EnsureHeight(voicePart, bounds.Left - this.Style.NoteStemHorizontalMargin, bounds.Right,
                                    bounds.Top, bounds.Bottom);
        }
Пример #3
0
        public async Task DrawBeatModifier(BeatModifier modifier, VoicePart voicePart, double x)
        {
            x += this.Location.X;
            var y      = this.Owner.GetHeight(voicePart, x);
            var bounds = await this.PrimitiveRenderer.DrawBeatModifier(x, y, modifier, voicePart.ToDirection());

            this.EnsureHeightForOrnament(voicePart, bounds);
        }
Пример #4
0
        public async Task DrawArtificialHarmonicText(VoicePart voicePart, double x, string text)
        {
            x += this.Location.X;
            var y      = this.Owner.GetHeight(voicePart, x);
            var bounds = await this.PrimitiveRenderer.DrawArtificialHarmonicText(x, y, text, voicePart.ToDirection());

            this.EnsureHeightForOrnament(voicePart, bounds);
        }
Пример #5
0
        /// <remarks><paramref name="x"/> must be an absolute position</remarks>
        public async Task DrawConnectionInstruction(VoicePart voicePart, double x, string instruction)
        {
            var y      = this.Owner.GetHeight(voicePart, x);
            var bounds = await this.PrimitiveRenderer.DrawConnectionInstruction(x, y, instruction, voicePart.ToDirection());

            this.EnsureHeightForOrnament(voicePart, bounds);
        }