Re: Dashed Stem Fontsize !

2022-07-23 Thread Ya Gloops
Thank you very much for your help Harm !!! Gilles Le vendredi 22 juillet 2022 à 19:27:50 UTC+2, Thomas Morley a écrit : Am Fr., 22. Juli 2022 um 13:04 Uhr schrieb Ya Gloops : > > > Hello ! I try to keep the proportion of the "dashed-stem" but I can't... I

Re: Dashed Stem Fontsize !

2022-07-22 Thread Thomas Morley
Am Fr., 22. Juli 2022 um 13:04 Uhr schrieb Ya Gloops : > > > Hello ! I try to keep the proportion of the "dashed-stem" but I can't... If > someone can help me. > Gilles > > \version "2.23.10" > > > %#(set-global-staff-size 30) > >

Dashed Stem Fontsize !

2022-07-22 Thread Ya Gloops
Hello ! I try to keep the proportion of the "dashed-stem" but I can't... If someone can help me. Gilles \version "2.23.10" %#(set-global-staff-size 30) #(define (make-round-filled-box x1 x2 y1 y2 blot-diameter)    (ly:make-stencil (list 'round-filled-box (-

Re: Dashed Stem

2012-05-12 Thread David Nalesnik
On Sat, May 12, 2012 at 1:39 PM, David Kastrup wrote: > I don't really understand the function, but maybe something like > > (define (build-pos-list len on off) > (let helper ((lst '()) (next 0) (on on) (off off)) >(if (< next len) >(helper (cons next lst) (+ next on) off on) >

Re: Dashed Stem

2012-05-12 Thread David Kastrup
David Nalesnik writes: > OK!  This should do it. > > > Those functions using 'round-filled-box could be tailored to match > the capabilities of 'dashed-line. > > > > The rewrite combines both of the approaches above: it uses > 'round-filled-box for the stencil, and allows y

Re: Dashed Stem

2012-05-12 Thread David Nalesnik
((top (+ (car lst) off))) (if (< top len) (begin (set! lst (cons top lst)) (helper)) (set! lst (cons len lst) (set! lst (cons len lst) (helper) (reverse lst))) #(define (dashed-stem on off) (lambda (grob) (let* ((blot (ly:output-def-lookup (ly:grob-lay

Re: Dashed Stem

2012-05-12 Thread David Nalesnik
Hi again, > Hmmm, Setting 'blot-diameter like I did actually affects regular stems > and the newly-drawn stems not at all... > So remove this line if you use the newer function: (ly:output-def-set-variable! (ly:grob-layout grob) 'blot-diameter 0.8) -David _

Re: Dashed Stem

2012-05-12 Thread David Nalesnik
On Sat, May 12, 2012 at 7:32 AM, David Nalesnik wrote: I've come up with a simpler variant which makes use of the 'dashed-line > function. (I didn't use this initially because I couldn't figure out how > to get the roundedness of the line segments to match the ordinary stem's > and also because I

Re: Dashed Stem

2012-05-12 Thread David Nalesnik
use I wanted to ensure a full-length dash at top and bottom.) These functions require two arguments: one for the length of the dash and one for the length of the spaces in between. Setting values might require some trial and error. Some combinations won't fit the length of the stem such that a

Re: Dashed Stem

2012-05-12 Thread Urs Liska
Hi David, Hi Thomas, thank you very much! I'm increasingly fascinated by LilyPond - and this mailing list. And I'll definitely have to learn how to write Scheme functions myself ... With your suggestions I can really solve the problem at hand, so thanks. What I especially like about the new solu

Re: Dashed Stem

2012-05-11 Thread David Nalesnik
Hi Harm, I suggest the code below. It's very close to your own but it seems to > avoid the problems. > > When I tried your code out, the same problems happened for me! I concluded that this is an issue with the viewer in LilyPondTool, and sure enough, when I "view PDF with external PDF-viewer," t

Re: Dashed Stem

2012-05-11 Thread Thomas Morley
blot-diameter) (ly:make-stencil (list 'round-filled-box (- x1) x2 (- y1) y2 blot-diameter) (cons x1 x2) (cons y1 y2))) #(define ((dashed-stem num) grob) (let* ((blot (ly:output-def-lookup (ly:grob-layout grob) 'blot-diameter))

Re: Dashed Stem

2012-05-11 Thread David Nalesnik
e line at the top of the function.) I'm not sure what's going on here, if this is a limitation of 'round-filled-box, or something I'm doing wrong. Anyway, here it is: \version "2.15.38" %#(set-global-staff-size 14) #(define (dashed-stem num) (lambda (grob) (l

Re: Dashed Stem

2012-05-11 Thread David Nalesnik
I came up with. It's not ideal. If you compare the substitute stems with ordinary stems, you'll find differences. (These relate, I think, to how rounded the lines are--to 'blot-diameter.) But hopefully this will do. The argument allows you to specify the number of dashes in you

Dashed Stem

2012-05-11 Thread Urs Liska
Am I right that you can't make a Stem dashed? I didn"t find anything in the IR. What would then be the proper way to attach a dashed line to a note in place of the Stem? Thanks Urs -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.___