Slurs -- Line cap styles & Line join styles

If you'd like to see an improvement to a GVOX product, please let us know here.

Moderators: Hotch, Denkster, John Miller

Slurs -- Line cap styles & Line join styles

Postby q » Mon Jul 06, 2009 7:54 pm


    With Apple's Quartz it's possible to apply a Round Cap style so open paths (such as those used in slurs) can terminate without a blunt end.

    And it's possible to apply Round Join style to prevent long spikes at acute angles. This might prove handy if you ever choose to draw slurs using a single closed path rather than a group of open paths.

    The result of Round Cap style on the slur below (from a Windows PDF) is small but significant. In the first image the paths have butt caps; in the second they have round caps.

    Image

    For more information see:


    I assume there are similar properties in the Windows drawing system.

    q
Last edited by q on Tue Jul 07, 2009 4:26 am, edited 3 times in total.
Life is good with Encore 5 Mac OS 10.6.x — MacBook Pro /core i7 / Mac OS 10.4.11 — Mac G5 Dual 2.0 GHz
q
 
Posts: 3525
Joined: Thu Sep 13, 2007 7:24 pm
Location: San Francisco, East Bay Area

Re: Slurs -- Line cap styles & Line join styles

Postby Doug Kerr » Mon Jul 06, 2009 10:58 pm

Hi, Q,

q wrote:With Apple's Quartz it's possible to apply a Round Cap style so open paths (such as those used in slurs) can terminate without a blunt end.

And it's possible to apply Round Join style to prevents long spikes at acute angles. This might prove handy if you ever choose to draw slurs using a single closed path rather than a group of open paths.

The result of Round Cap style on the slur below (from a Windows PDF) is small but significant. In the first image the paths have butt caps; the second they have round caps

Image


Looks good to me.

I assume there are similar properties in the Windows drawing system.


I'm not sure there is such a thing as the "Windows Drawing System", although the GDI (graphics device interface) sort of has that mantle.

In my Windows-based vector illustration program (Micrografx Designer 7.1), one can in fact apply a round end to a finite-width stroke open path. One can also have a closed path with a finite-wide stroke and apply a round join to the joints (although there happens to be a bug in it).

The bug is that the round join doesn't happen at the joint that is somehow deemed "last". My workaround is that after the path is finished, I break it in the middle of a segment. That becomes the "last" joint and is where the round join fails. But since that it just a "continuation"of the path (control vectors collinear, for one thing), the shape of the join there is moot.

If I have to modify the shape of the figure, I delete the added joint, reshape the real figure, and then put the extra joint back in.

Best regards,

Doug
Doug Kerr
 
Posts: 4399
Joined: Sat Sep 15, 2007 10:38 pm
Location: Alamogordo, New Mexico, USA

Re: Slurs -- Line cap styles & Line join styles

Postby q » Tue Jul 07, 2009 4:20 am

Doug Kerr wrote:I'm not sure there is such a thing as the "Windows Drawing System", although the GDI (graphics device interface) sort of has that mantle.

Thanks for clarifying Doug. GDI is the system to which I was referring, but my Windows parlance is far behind my Mac lingo.

Doug Kerr wrote:In my Windows-based vector illustration program (Micrografx Designer 7.1), one can in fact apply a round end to a finite-width stroke open path. One can also have a closed path with a finite-wide stroke and apply a round join to the joints (although there happens to be a bug in it).

I'm not familiar with the term "finite-width stroke."

Doug Kerr wrote:The bug is that the round join doesn't happen at the joint that is somehow deemed "last". My workaround is that after the path is finished, I break it in the middle of a segment. That becomes the "last" joint and is where the round join fails. But since that it just a "continuation"of the path (control vectors collinear, for one thing), the shape of the join there is moot.

If I have to modify the shape of the figure, I delete the added joint, reshape the real figure, and then put the extra joint back in.

Don't quite follow. I've never had to tinker with an open path to get caps to work. Are you using cap styles are for open paths, and controlling angled joins with the Line Join styles? (sometimes called miters.)

q
Life is good with Encore 5 Mac OS 10.6.x — MacBook Pro /core i7 / Mac OS 10.4.11 — Mac G5 Dual 2.0 GHz
q
 
Posts: 3525
Joined: Thu Sep 13, 2007 7:24 pm
Location: San Francisco, East Bay Area

Re: Slurs -- Line cap styles & Line join styles

Postby Doug Kerr » Tue Jul 07, 2009 5:13 pm

Hi, q,
q wrote:
Doug Kerr wrote:I'm not sure there is such a thing as the "Windows Drawing System", although the GDI (graphics device interface) sort of has that mantle.

Thanks for clarifying Doug. GDI is the system to which I was referring, but my Windows parlance is far behind my Mac lingo.

Doug Kerr wrote:In my Windows-based vector illustration program (Micrografx Designer 7.1), one can in fact apply a round end to a finite-width stroke open path. One can also have a closed path with a finite-wide stroke and apply a round join to the joints (although there happens to be a bug in it).

I'm not familiar with the term "finite-width stroke."
This is contrasted with a path that is (in my drawing program) defined as of "hairline width" (numerically: width =0), meaning mathematically of zero width, to be actually presented as the smallest pixel width that makes it reasonably visible at the scale of viewing or printing. (More about this later.)

Doug Kerr wrote:The bug is that the round join doesn't happen at the joint that is somehow deemed "last". My workaround is that after the path is finished, I break it in the middle of a segment. That becomes the "last" joint and is where the round join fails. But since that it just a "continuation"of the path (control vectors collinear, for one thing), the shape of the join there is moot.

If I have to modify the shape of the figure, I delete the added joint, reshape the real figure, and then put the extra joint back in.

Don't quite follow. I've never had to tinker with an open path to get caps to work. Are you using cap styles are for open paths, and controlling angled joins with the Line Join styles? (sometimes called miters.)

Firstly, this applies to a closed path join, not an open path. (I may have not made that clear.)

In any case, don't get tangled up by this. This is a bug in my drawing program, not any conceptual notion or a property of the curve defining language. (And I find just now there is in fact a way to avoid it, other than the "kludge" I described to you before.)

As a matter of interest:

I have the choice of three kinds of caps for a curve: flat, square (extends beyond the anchor point by half the width of the stroke) and round.

I have the choice of three kinds of joins for curves (whether the overall curve is closed or open): round, bevel, or miter.

If I am working with zero-width paths, I can still set both the cap and join property, and they remain properties of the curve or figure, but have no significance while the stroke width remains at zero. But if I later set a finite stroke width, those properties come into effect.

Sorry to have set you off on a wild goose chase.

Best regards,

Doug
Doug Kerr
 
Posts: 4399
Joined: Sat Sep 15, 2007 10:38 pm
Location: Alamogordo, New Mexico, USA

Re: Slurs -- Line cap styles & Line join styles

Postby q » Tue Jul 07, 2009 5:53 pm

Doug Kerr wrote:As a matter of interest:

I have the choice of three kinds of caps for a curve: flat, square (extends beyond the anchor point by half the width of the stroke) and round.

Yes, and the Round Cap extends beyond the anchor point by a radius equal to half the stroke-width.

Doug Kerr wrote: One can also have a closed path with a finite-wide stroke and apply a round join to the joints (although there happens to be a bug in it).
q wrote:I'm not familiar with the term "finite-width stroke."

This is contrasted with a path that is (in my drawing program) defined as of "hairline width" (numerically: width =0), meaning mathematically of zero width, to be actually presented as the smallest pixel width that makes it reasonably visible at the scale of viewing or printing. (More about this later.)

... thus a line in the Euclidean sense. Something we can represent and conceptualize, but cannot see, for it has no breadth.

Doug wrote:I have the choice of three kinds of joins for curves (whether the overall curve is closed or open): round, bevel, or miter.

If I am working with zero-width paths, I can still set both the cap and join property, and they remain properties of the curve or figure, but have no significance while the stroke width remains at zero. But if I later set a finite stroke width, those properties come into effect.

This is exactly correct.

In Adobe Illustrator parlance, when you add a weight (i.e. width) property to a line, it is called stroked. A line without a wieght property is called unstroked — but zero-width makes perfect sense for the latter. Finite-width is a term I'm less comfortable with, because I immediately begin to ponder the meaning of infinite width. Too bad Illustrator didn't use the term width instead of weight.

Also true in Illustrator, only stoked paths are affected by the non-default join and end styles.

q
Last edited by q on Tue Jul 07, 2009 6:16 pm, edited 1 time in total.
Life is good with Encore 5 Mac OS 10.6.x — MacBook Pro /core i7 / Mac OS 10.4.11 — Mac G5 Dual 2.0 GHz
q
 
Posts: 3525
Joined: Thu Sep 13, 2007 7:24 pm
Location: San Francisco, East Bay Area

Re: Slurs -- Line cap styles & Line join styles

Postby q » Tue Jul 07, 2009 6:14 pm

Life is good with Encore 5 Mac OS 10.6.x — MacBook Pro /core i7 / Mac OS 10.4.11 — Mac G5 Dual 2.0 GHz
q
 
Posts: 3525
Joined: Thu Sep 13, 2007 7:24 pm
Location: San Francisco, East Bay Area

Re: Slurs -- Line cap styles & Line join styles

Postby Nor » Sat Jan 16, 2010 7:59 pm

I'd love John@developpement make ROUND caps rather then butt caps, that way would fit standard music engraving and handwritten style. And I'd love to see hat happen to the triplet arced bracket especially for handwritten style and TIES too!

I'm ready to make a SAMPLE inside a font for easy use, then John will have to tell Encore how to draw the shape in different angles and sizes.
Nor Eddine Bahha

©NorMusic/BopMusic/NorScript/BopScript Fonts© | MacBook Pro 17" / 2.8 GHz Intel Core 2 Duo / 8 GB 1333 MHz DDR3/ NVIDIA GeForce 9400M 256 MB / OS X 10.8.2 (12C60)
The Encyclopedia of Jazz Theory for All Musicians
Nor
 
Posts: 645
Joined: Sat Sep 15, 2007 2:32 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 0 guests

cron