Vertical alignment of segments in multi-segment lines

Hi,
I tried to create a custom, multi-segment line style, that would represent wavy beams (like in Lutosławski’s scores). My idea was to make a font with a number of segments (narrow slices), so any misalignment (when note spacing changes) would be hardly visible.

What I get, with just four segments, is this:
image

The problem is that Dorico appears to center horizontally all the segments, ignoring their position relatively to the font’s baseline, while I need the segment to maintain their vertical offsets. Is there any way to override this behaviour?

Well, here is the font:
WavyBeam.zip (1023 Bytes)

Type B followed by C to get two wavy beams, for example: BCBCBCBC will give you this:

Enjoy!

2 Likes

Thank you. I had made a font like this.

The problem with this solution is that you have to put texts of different length in parts and in score (due to varying spacing.).

What I need is a line attached to given notes, not a piece of text. I wonder if there is a way to force Line Body Editor to take into account vertical positions of glyphs relative to font’s baseline instead of centering them vertically.

1 Like

I think you have to do that in the font. Make sure both segments start in the middle.

Jesper

Edit: or make just one symbol with the whole curve

1 Like

A symbol with the whole curve segment is not the solution as it gets misattached (or needs manual tweaking of note spacing):

The characters in font are aligned perfectly. I’m afraid it’s Dorico that stubbornly messes with the vertical position of characters.

Perhaps divide it even further. 4 segments perhaps.

Jesper

Select the whole wavy text then try to stretch it a bit.

I think it’s a line with repeatable objects.

Jesper

That was the idea, perhaps with even more thin slices (like 16 per space). But it seems Dorico assumes the segments in line are always vertically symmetrical. So if it encounters a glyph that is vertically moved away from the baseline of the font, it pulls the glyph back down. You can set horizontal repeat offset for any segment (in Edit Repeatable Symbols window), but I cannot see any way to manipulate vertical offsets of repeatable symbol. Moving the glyph:
image
doesn’t change its vertical positioning within the line. :frowning:

Yes, I see the problem, perhaps easier to import the finished piece into Affinity Designer and do the curves there. If Dorico could just end the line in the middle of a segment.

Jesper

1 Like

Well, fiddling with graphic software may work for a solo or choir piece, but not for an opera.

I wonder if there is a setting that could be written in a relevant json file, but that are mysterious arcana of secret knowledge to me.

No, I guess not. I know I wished for this before, that you could end a line mid-segment, that would solve it. Don’t think any json fiddling would help I’m afraid.

Jesper

I think it’s possible if you add some empty space around the line.
I tried in Affinity Designer and exported it as an SVG.

Jesper

Not quite right here but you get the point.

But I still think you need at least 4 segments since the line can’t stop short.

Slightly better.

1 Like

@jesele, thank you, with svg graphics it works indeed.

The strange thing, that I haven’t noticed, is that ‘continuation’ of the line appears to work correctly.
image
Am I mistaken if I consider this being a bug?

You can try mine. I made them far too large so scaled here to 2%

Jesper

Curve.dorico (522.4 KB)

@jesele, @Nordine,
thank you very much for your help.

De nada. Also did it for myself.

Jesper

I also tried with 4 segments but that didn’t help.

I think it can be done in Dorico, please install my Wavy Beam font and open this .dorico example:

Wavy Beam.dorico (484.8 KB)

Here is a screenshot:

1 Like

That is very nice. Didn’t know that having different values for x and y had any effect. I don’t think they used to.

Jesper