Jump to content

Expand Stroke gives bad results


Recommended Posts

Designer v2.5.5, Windows 10 x64.

I'm working with music sheets. Certain music elements generated by notation software have both fill and stroke. I realized that expanding stroke of long ties (concave line joining two notes) gives odd results.

Here's a tie before expansion:

image.png.7c8e8abbce0af68eaa27b6566748d45d.png

And after:

image.png.405d1dd0c065b90cf8d7ada7f7c92b0a.png

I'm also attaching a part of the original score with the tie in question for further inspection.

expand_stroke.afpub

Link to comment
Share on other sites

  • Staff

Hi @SirPL,

This looks like an issue with the software that created that curve. Before you Expand Stroke, if you check out the 2 Nodes for this curve, they are Sharp nodes but they both have 2 control handles and a Sharpe Node should only have 1 control handle.   I also can't recreate a Curve like this that shows the same issue after expanding stroke.

How did you import this into Affinity?

 

Link to comment
Share on other sites

  • 3 weeks later...

Hi @stokerg. Sorry for the delay in response.
 

On 10/2/2024 at 11:54 AM, stokerg said:

How did you import this into Affinity?

I saved the music score first as PDF and then imported into Designer.

Out of curiosity I decided to export it as SVG instead and here's the code for the tie:

<path xmlns="http://www.w3.org/2000/svg" class="TieSegment" stroke="#000000" stroke-width="2.48" stroke-linecap="round" stroke-linejoin="round" fill-rule="evenodd" d="M575.239,423.833 C743.713,470.457 1249.13,470.457 1417.61,423.833 C1249.13,476.409 743.713,476.409 575.239,423.833"/>

It's a path made of two Bézier curves. It's not against SVG specification.

Full SVG, as exported by music notation software, in the attachment.

tie.svg

Link to comment
Share on other sites

On 10/2/2024 at 10:54 AM, stokerg said:

Sharpe Node should only have 1 control handle

That's certainly not true.

Quote

I also can't recreate a Curve like this that shows the same issue after expanding stroke.

It's a trivial task to create a similar problematic Curve in Affinity.

 

 

Link to comment
Share on other sites

Looks to me like Sharp Nodes can have more than one....

sharpnode-2Handles.jpg

Affinity Photo 2.5..; Affinity Designer 2.5..; Affinity Publisher 2.5..; Affinity2 Beta versions. Affinity Photo,Designer 1.10.6.1605 Win10 Home Version:21H2, Build: 19044.1766: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, 3301 Mhz, 6 Core(s), 12 Logical Processor(s);32GB Ram, Nvidia GTX 3070, 3-Internal HDD (1 Crucial MX5000 1TB, 1-Crucial MX5000 500GB, 1-WD 1 TB), 4 External HDD

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.