Nested quasiquoting and Scheme embedded in #{ #}

2022-08-10 Thread Jean Abou Samra
Hi, A little request for feedback from Scheme power users: Consider the following snippet from David K. \version "2.23.11" #(define-macro (pattern args result)    `(define-music-function (parser location ,@args) ,(make-list (length args) 'ly:music?)   #{ $@(list ,@result) #})) $(pattern

Re: Nested quasiquoting and Scheme embedded in #{ #}

2022-08-10 Thread Jean Abou Samra
Le 10/08/2022 à 13:32, Jean Abou Samra a écrit : Hi, A little request for feedback from Scheme power users: Apologies: I got confused in my own thinking and thought this change would simplify more than it can do. Consider this request moot. Sorry for the noise. Jean

Re: An infix syntax for Scheme ...

2022-08-10 Thread Carl Sorensen
On Tue, Aug 9, 2022 at 3:46 PM Jean Abou Samra wrote: > > > To be honest, I have no idea if what I did here is actually a good idea > at all (I for one won't use it). I'm just curious to see. On the one hand, > normal Scheme syntax is used in all Scheme tutorials, in the Guile manuals, > on ma

Re: An infix syntax for Scheme ...

2022-08-10 Thread Jean Abou Samra
Le 10/08/2022 à 18:07, Carl Sorensen a écrit : On Tue, Aug 9, 2022 at 3:46 PM Jean Abou Samra wrote: To be honest, I have no idea if what I did here is actually a good idea at all (I for one won't use it). I'm just curious to see. On the one hand, normal Scheme sy

Re: An infix syntax for Scheme ...

2022-08-10 Thread Andrew Bernard
Ah! It read like you did propose that. Hence my screed. Phew! Andrew On 11/08/2022 2:08 am, Jean Abou Samra wrote: Oh, I never proposed adding it to LilyPond.

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: 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 find

first repeat at low dynamic; next repeat at higher dynamic; how to do this for midi output?

2022-08-10 Thread Kenneth Wolcott
HI; first repeat at low dynamic; next repeat at higher dynamic; how to do this for midi output? I thought I saw an email previously in this mailing list regarding this subject; but I could not find it. I think I know how to properly display a "p then f" or "p - f" instruction at the beginning of

Re: first repeat at low dynamic; next repeat at higher dynamic; how to do this for midi output?

2022-08-10 Thread David Kastrup
Kenneth Wolcott writes: > HI; > > first repeat at low dynamic; next repeat at higher dynamic; how to do > this for midi output? << \volta 1 \p \volta 2 \f >> in the \midi section should likely work. -- David Kastrup

Re: first repeat at low dynamic; next repeat at higher dynamic; how to do this for midi output?

2022-08-10 Thread Kenneth Wolcott
HI David; Thank you! Now what happens when I have multiple repeats with this situation? Ken On Wed, Aug 10, 2022 at 7:51 PM David Kastrup wrote: > > Kenneth Wolcott writes: > > > HI; > > > > first repeat at low dynamic; next repeat at higher dynamic; how to do > > this for midi output? >

Re: first repeat at low dynamic; next repeat at higher dynamic; how to do this for midi output?

2022-08-10 Thread Kenneth Wolcott
Hi David; I must have misunderstood your suggestion :-( \midi { \tempo 4=116 \volta 1 \p \volta 2 \f } I'm using Lilypond 2.22.2, \volta inside \midi {} is not accepted by Lilypond: GNU LilyPond 2.22.2 (running Guile 2.2) Processing `Screwed_it_up.ly' Parsi

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

tempo markup problem

2022-08-10 Thread Craig Dabelstein
Hi all, I know this is not difficult but I just can't get it to work. I want the tempo to look like: Allegro moderato die *[image of crotchet] *etwa 108 M.M. I have this so far: \tempo \markup \left-column { "Allegro moderato" \smaller "die etwa 108 M.M." } To

Re: An infix syntax for Scheme ...

2022-08-10 Thread Jean Abou Samra
Le 11/08/2022 à 02:57, Andrew Bernard a écrit : Ah! It read like you did propose that. Hence my screed. Phew! If it had been a proposal for LilyPond itself, I would have posted it on the lilypond-devel list, not lilypond-user. Regards, Jean

Re: tempo markup problem

2022-08-10 Thread Andrew Bernard
Have a look at LSR 1138. Andrew

Re: An infix syntax for Scheme ...

2022-08-10 Thread Andrew Bernard
I thought you were canvassing user opinions. Andrew On 11/08/2022 3:22 pm, Jean Abou Samra wrote: If it had been a proposal for LilyPond itself, I would have posted it on the lilypond-devel list, not lilypond-user.

Re: tempo markup problem

2022-08-10 Thread Jean Abou Samra
Le 11/08/2022 à 03:11, Craig Dabelstein a écrit : Hi all, I know this is not difficult but I just can't get it to work. I want the tempo to look like: Allegro moderato die *[image of crotchet] *etwa 108 M.M. I have this so far: \tempo \markup \left-column { "Allegro moderato"            

Re: Circles

2022-08-10 Thread Jean Abou Samra
Le 11/08/2022 à 06:14, Andrew Bernard a écrit : 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    

Re: Circles

2022-08-10 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 uses a third-order Bézier approximat

Re: Circles

2022-08-10 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