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); }
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); }
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); }
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); }
/// <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); }