Re: Circles

2022-08-11 Thread Andrew Bernard
Thanks Silvain, As I mentioned previously on the list my background is maths and I understand Beziers, and I have implemented very compact code to do this. I appreciate your help in any case. Actaully, the main basis for the original post was to query what approach Lilypond takes. I also

Re: Circles

2022-08-11 Thread Silvain Dupertuis
You can draw a quasi perfect circle with a Bezier curve (cubic) with 4 main points. The optimal distance between main and secondary control points is 0.5517847391957151 * radius (you do not need as many decimal places...!) (optimal value calculated with wxMaxima and checked with Inkscape) Le

Re: Circles

2022-08-11 Thread David Kastrup
Werner LEMBERG writes: >>> Well, Metafont uses a third-order Bézier approximation to build up >>> circles (from four quarter circles). However, the Metafont book >>> says that the difference to a real circle is less than 0.06%, which >>> is thus i

Re: Circles

2022-08-11 Thread Werner LEMBERG
>> Well, Metafont uses a third-order Bézier approximation to build up >> circles (from four quarter circles). However, the Metafont book >> says that the difference to a real circle is less than 0.06%, which >> is thus imperceptible. >> >> The s

Re: Circles

2022-08-11 Thread David Kastrup
Werner LEMBERG writes: >>> There's a lot of oldish webpages with complex Bezier curve >>> constructions for circles. >> >> Those must be approximate constructions. It is not mathematically >> possible to construct a Bézier curve which is at the same time an

Re: Circles

2022-08-11 Thread Andrew Bernard
There are a whole lot of custom noteheads I need that are based on circles with all sorts of additions like dots and things for a contemporary modernist work. Very special case, but they may end up being useful for others when I finish. I'll see if draw-circle can fit into the scheme of things

Re: Circles

2022-08-11 Thread Jean Abou Samra
> Le 11 août 2022 à 09:38, Andrew Bernard a écrit : > > All my other custom noteheads use curveto heavily. I was wondering if I could > scrimp time by using an arc command. I'm trying to avoid raw postscript as I > think that obviates the ability to output SVG - not that I use it but others

Re: Circles

2022-08-11 Thread Andrew Bernard
All my other custom noteheads use curveto heavily. I was wondering if I could scrimp time by using an arc command. I'm trying to avoid raw postscript as I think that obviates the ability to output SVG - not that I use it but others do, Thanks all! Andrew On 11/08/2022 5:16 pm, Jean Abou

Re: Circles

2022-08-11 Thread Jean Abou Samra
> Le 11 août 2022 à 09:06, Andrew Bernard a écrit : > > As to the _real_ question (XY? ;-) ), I am needing to do custom circular > noteheads, also with bits and bobs such as middle dots and so on and I was > not able to find an arc operator in the markup path commands, so one needs to >

Re: Circles

2022-08-11 Thread Andrew Bernard
As to the _real_ question (XY? ;-) ), I am needing to do custom circular noteheads, also with bits and bobs such as middle dots and so on and I was not able to find an arc operator in the markup path commands, so one needs to user curveto, which is a Bezier operator. Is that right? Andrew

Re: Circles

2022-08-11 Thread Andrew Bernard
Thanks all, Comments much appreciated, but I know all that, as my background is maths. I was just wanting to see how Lilypond does it. And of course after I posted about oldish pages I recall of course that you have to do circles with Beziers in fonts, as the arc operator is not available

Re: Circles

2022-08-11 Thread Silvain Dupertuis
Both Postscript and SVG have a built-in arc function capable of drawing an arc (or an entire circle). Bézier 2-D curves can approximate a circle, but cannot create a mathematical exact circle (although an approximation using 4 points is so precise that it is practically indistinguishable from

Re: Circles

2022-08-11 Thread Werner LEMBERG
>> There's a lot of oldish webpages with complex Bezier curve >> constructions for circles. > > Those must be approximate constructions. It is not mathematically > possible to construct a Bézier curve which is at the same time an > exact circle. Well, Metafont u

Re: Circles

2022-08-11 Thread Jean Abou Samra
    0 360 arc closepath     stroke_and_fill? } bind def Simple use of 360 degree arc. Answers what I wanted to know. OK. Out of curiosity, what was the context? There's a lot of oldish webpages with complex Bezier curve constructions for circles. Those must be approximate constructions

Re: Circles

2022-08-10 Thread Andrew Bernard
Ah yes it is in the postscript area of the source code. /draw_circle % filled? radius thickness draw_circle {     setlinewidth    % f? r     currentpoint    % f? r x0 y0     3 2 roll    % f? x0 y0 r     dup 0 rmoveto     0 360 arc closepath     stroke_and_fill? } bind

Re: Circles

2022-08-10 Thread Andrew Bernard
Well I suppose it is actually postscript. So I had better look at the full source? On 11/08/2022 11:40 am, Andrew Bernard wrote: Where is the code that actually draws a circle stencil? I am interested to see if it is done with Bezier curve techniques and to study that. I could not seem to

Circles

2022-08-10 Thread Andrew Bernard
Where is the code that actually draws a circle stencil? I am interested to see if it is done with Bezier curve techniques and to study that. I could not seem to find it in the scm area. Andrew

Re: Using circles in \tabFullNotation

2021-02-04 Thread Jean Abou Samra
Le 05/02/2021 à 06:15, Kuredant a écrit : On 1/31/2021 10:41 PM, Jean Abou Samra wrote: Sorry, this line:     \override Stem.Y-extent = #grob::always-Y-extent-from-stencil should have been commented out. Also, I now believe that the behavior of X-offset here is a bug:

Re: Using circles in \tabFullNotation

2021-02-04 Thread Kuredant
On 1/31/2021 10:41 PM, Jean Abou Samra wrote: Sorry, this line:     \override Stem.Y-extent = #grob::always-Y-extent-from-stencil should have been commented out. Also, I now believe that the behavior of X-offset here is a bug:

Re: Using circles in \tabFullNotation

2021-01-31 Thread Jean Abou Samra
Sorry, this line:     \override Stem.Y-extent = #grob::always-Y-extent-from-stencil should have been commented out. Also, I now believe that the behavior of X-offset here is a bug: https://lists.gnu.org/archive/html/bug-lilypond/2021-01/msg00014.html Jean

Re: Using circles in \tabFullNotation

2021-01-30 Thread Jean Abou Samra
Hi, (Also forwarding to the list, please keep it in CC.) Le 30/01/2021 à 16:57, Kuredant a écrit : Thanks a lot! I wouldn't have been able to come up with that myself. The code works very well, especially for chords. I have two minor issues: – The stem is right below the lowest fret

Using circles in \tabFullNotation

2021-01-29 Thread Jean Abou Samra
Hello, I'm trying to have an output similar to the attached images when using \tabFullNotation: half-notes and chords circled with a single stem and whole notes and chords circled with no stem. Reading the source code for \tabFullNotation, I think I need to \override TabStaff.Stem.stencil

Re: Circles round fingerings

2020-07-02 Thread Pierre Perol-Schneider
You're welcome Paul. Cheers, Pierre PS. Be sure to respond to the list. Le jeu. 2 juil. 2020 à 14:31, Paul McKay a écrit : > Thanks for this Pierre. I can now do just what I'd hoped. I'm still > struggling to write the appropriate markup function, but I'll keep going! > Paul > > On Wed, 24 Jun

Re: Circles round fingerings

2020-06-24 Thread Pierre Perol-Schneider
Hi Paul, How about: \version "2.20.0" customFingering = { \override Fingering.font-name = "Arial Black" \override Fingering.font-size = #-1 \override Fingering.color = #(x11-color "DarkRed") } cust = -\tweak font-name #"Arial Black" -\tweak font-size #-2 -\tweak color #(x11-color

Circles round fingerings

2020-06-24 Thread Paul McKay
Hi I'd like to put a circle round occasional fingering marks. I have tried *\circle*, but seem to have no control of the resulting thickness nor of the font features. I can find no way to customize the fingering font within the *\circle: *I always get some error message or other. I tried

Re: How do I stop circles from wobbling?

2011-01-14 Thread Neil Puttock
On 2 January 2011 19:18, David Kastrup d...@gnu.org wrote: I don't see anything in the notation manual that would tell me why. The circles don't change the baselines of the text, hence why you get uneven alignment. \general-align #Y #DOWN simply shifts the baseline to the bottom of each circle

Re: How do I stop circles from wobbling?

2011-01-14 Thread David Kastrup
Neil Puttock n.putt...@gmail.com writes: On 2 January 2011 19:18, David Kastrup d...@gnu.org wrote: I don't see anything in the notation manual that would tell me why. The circles don't change the baselines of the text, hence why you get uneven alignment. \general-align #Y #DOWN simply

Re: How do I stop circles from wobbling?

2011-01-02 Thread Neil Puttock
On 31 December 2010 14:49, David Kastrup d...@gnu.org wrote: What I use currently is #(define-markup-list-command (buttons layout props str) (string?)  (map (lambda (str)        (interpret-markup layout props (markup #:hcenter-in 10.8 #:circle #:pad-to-box '(0 . 0) '(-0.5 . 2) #:hcenter-in

Re: How do I stop circles from wobbling?

2011-01-02 Thread David Kastrup
Neil Puttock n.putt...@gmail.com writes: On 31 December 2010 14:49, David Kastrup d...@gnu.org wrote: What I use currently is #(define-markup-list-command (buttons layout props str) (string?)  (map (lambda (str)        (interpret-markup layout props (markup #:hcenter-in 10.8 #:circle

Re: How do I stop circles from wobbling?

2010-12-31 Thread Robin Bannister
David Kastrup wrote: the vertical extent should fit in the circles necessitated by the horizontal extent. The 4 is big enough to ensure that all the vertical extents do fit, but (because of this) they all fit loosely. This looseness means that to decide where to position a circle

Re: How do I stop circles from wobbling?

2010-12-31 Thread David Kastrup
Robin Bannister r...@dataway.ch writes: David Kastrup wrote: the vertical extent should fit in the circles necessitated by the horizontal extent. The 4 is big enough to ensure that all the vertical extents do fit, but (because of this) they all fit loosely. This looseness means

How do I stop circles from wobbling?

2010-12-28 Thread David Kastrup
The following is wobbly, likely because of different vertical extends of the strings. But the vertical extent should fit in the circles necessitated by the horizontal extent. Can anybody tell me what to do to keep the circles from wobbling? #(define-markup-list-command (buttons layout props

Re: String numbers in circles

2005-02-09 Thread Warren Stickney
Walter, The suggestion a2^\markup {$\\!\\!$\\textbf{\\textcircled{\\small{1 gives me just the circle, with no number on my 2.4.2 (cygwin) also, but if I add $'s around the number, as below, it works OK. a2^\markup {$\\!\\!$\\textbf{\\textcircled{\\small{$1$ Warren

Re: String numbers in circles

2005-02-08 Thread Walter Hofmeister
On 2/7/05 8:16 PM, Graham Percival [EMAIL PROTECTED] wrote: On 7-Feb-05, at 4:15 PM, Walter Hofmeister wrote: On 2/7/05 5:14 PM, Graham Percival [EMAIL PROTECTED] wrote: You have lily 2.4.2 installed, right? From the fink package? It did not work. I got the circle above the note but

Re: String numbers in circles

2005-02-08 Thread Mats Bengtsson
I'd suspect your TeX installation. First of all, if you run lilypond with the flag 'lilypond --verbose myfile.ly', you should get much more information printed out that might help to sort out the problems. Another test you could try is to save the following lines in a file called tinytest.tex:

Re: String numbers in circles

2005-02-08 Thread Walter Hofmeister
On 2/8/05 10:07 AM, Mats Bengtsson [EMAIL PROTECTED] wrote: I'd suspect your TeX installation. First of all, if you run lilypond with the flag 'lilypond --verbose myfile.ly', you should get much more information printed out that might help to sort out the problems. Another test you could

Re: String numbers in circles

2005-02-08 Thread Mats Bengtsson
Did the resulting file tinytest.ps contain the number or not? If it did, then the I have no more ideas unless you send also the output of lilypond --verbose thefile.ly /Mats Walter Hofmeister wrote: On 2/8/05 10:07 AM, Mats Bengtsson [EMAIL PROTECTED] wrote: I'd suspect your TeX installation.

Re: String numbers in circles

2005-02-08 Thread Graham Percival
On 8-Feb-05, at 7:31 AM, Walter Hofmeister wrote: I updated to 2.4.2-2 and it made no difference. I have a lot of packages installed and issuing an update all command could take days to perform. Do you have any ideas which package(s) might be responsible? Might it be a configuration problem?

Re: String numbers in circles

2005-02-07 Thread Mats Bengtsson
You don't say what platform you use. If you run the Cygwin version in Windows, it might help to rerun setup.exe and add the packages tetex-base and tetex-extra. /Mats Walter Hofmeister wrote: Can anyone tell me how to achieve numbers in circles? I used to be able to get this to work on 2.1.x

Re: String numbers in circles

2005-02-07 Thread Tapio Tuovila
Mats Bengtsson kirjoitti: You don't say what platform you use. If you run the Cygwin version in Windows, it might help to rerun setup.exe and add the packages tetex-base and tetex-extra. /Mats Walter Hofmeister wrote: Can anyone tell me how to achieve numbers in circles? I used to be able

Re: String numbers in circles

2005-02-07 Thread Walter Hofmeister
to achieve numbers in circles? I used to be able to get this to work on 2.1.x: ces^\markup {\\textcircled{\\tiny 1}} I think I got this from David Raleigh Arnold in a previous post. It no longer works under 2.4.2. It gives the circle but no number inside of it. I ran an old file through convert-ly

Re: String numbers in circles

2005-02-07 Thread Mats Bengtsson
say what platform you use. If you run the Cygwin version in Windows, it might help to rerun setup.exe and add the packages tetex-base and tetex-extra. /Mats Walter Hofmeister wrote: Can anyone tell me how to achieve numbers in circles? I used to be able to get this to work on 2.1.x: ces^\markup

Re: String numbers in circles

2005-02-07 Thread Graham Percival
On 7-Feb-05, at 7:12 AM, Walter Hofmeister wrote: I'm on Mac OS X. I'm using Fink and there appears to be no tetex-extra. Here is a list of the packages that are available: You have lily 2.4.2 installed, right? From the fink package? Try this: \version 2.4.2 \layout{raggedright=##t} {

Re: String numbers in circles

2005-02-07 Thread Walter Hofmeister
On 2/7/05 5:14 PM, Graham Percival [EMAIL PROTECTED] wrote: On 7-Feb-05, at 7:12 AM, Walter Hofmeister wrote: I'm on Mac OS X. I'm using Fink and there appears to be no tetex-extra. Here is a list of the packages that are available: You have lily 2.4.2 installed, right? From the

Re: String numbers in circles

2005-02-07 Thread Walter Hofmeister
{\\textcircled{\\small{1}}}\\dots} ces'^\markup {$\\!\\!$\\textbf{\\textcircled{\\small{2 }} To use letters for strings \\textsc{} (smallcaps) work well. DaveA I tried this as well and got the same results. Circles with nothing in them. Thanks for trying though. I am attempting to update

Re: String numbers in circles

2005-02-07 Thread David Raleigh Arnold
On Sunday 06 February 2005 10:15 pm, Walter Hofmeister wrote: ces^\markup {\\textcircled{\\tiny 1}} It's hard to keep up. This works for 2.4.2: \version 2.4.2 \score { \new Staff { a' b' ces'^\markup {$\\!\\!$\\textbf{\\textcircled{\\small{1}}}\\dots} ces'^\markup

String numbers in circles

2005-02-06 Thread Walter Hofmeister
Can anyone tell me how to achieve numbers in circles? I used to be able to get this to work on 2.1.x: ces^\markup {\\textcircled{\\tiny 1}} I think I got this from David Raleigh Arnold in a previous post. It no longer works under 2.4.2. It gives the circle but no number inside of it. I ran

Re: String numbers in circles

2005-02-06 Thread Thomas Scharkowski
Can anyone tell me how to achieve numbers in circles? I used to be able to get this to work on 2.1.x: ces^\markup {\\textcircled{\\tiny 1}} Hi Walter, just tested: works for me on 2.4.2 cygwin. Strange! Thomas ___ lilypond-user mailing list