Re: Old style bass clef

2021-09-16 Thread Stanton Sanderson



> On Sep 15, 2021, at 10:58 PM, Aaron Hill  wrote:
> 
> (re-adding mailing list for visibility...)
> 
> On 2021-09-15 8:26 pm, Stanton Sanderson wrote:
>> Unfortunately, no. With Lilypond 2.23.3, substituting \clef my-clef
>> for \cleff bass in the code results in Frescobaldi’s Lilypond Log
>> spitting out a list of supported types:
>> warning: unknown clef type `my-clef'
>> warning: supported clefs: C F G G2 GG…. (And so on). Will look further 
>> tomorrow.
> 
> Wait... what error were you getting with the original LSR snippet?  Was it 
> not something like this?
> 

> 
> GNU LilyPond 2.22.0
> Processing `custom-bass-clef.ly'
> Parsing...
> Interpreting music...
> Preprocessing graphical objects...
> Finding the ideal number of pages...
> Fitting music on 1 page...
> Drawing systems...
> Layout output to `custom-bass-clef.cropped.eps'...
> warning: unknown line-cap-style: (quote round)
> /usr/local/lilypond/usr/share/lilypond/current/scm/output-ps.scm:272:49: In 
> procedure symbol->string in expression (symbol->string join):
> /usr/local/lilypond/usr/share/lilypond/current/scm/output-ps.scm:272:49: 
> Wrong type argument in position 1 (expecting symbol): (quote round)
> 
> 
> "\clef my-clef" is nonsense.  You would have to register a new clef type (if 
> that is even possible), and the LSR snippet certainly is not doing that.  It 
> is replacing the stencil for a bass clef, but you still say \clef bass.

Aaron, thanks for your help, time and the clarification.The desired clef shape 
now appears in the proper location.
-Stan





Re: Old style bass clef

2021-09-16 Thread Aaron Hill

On 2021-09-16 4:30 am, Paul Hodges wrote:

That works fine.  I note that it doesn't update the CueClef stencil to
match, but I guess similar code to the Clef update given would suffice
(if felt necessary at all!).

Your correction raises a question in my mind (which may or may not have
helped here): is there anywhere a list of dates of release of the
various stable versions (at least) of LilyPond?  Many old snippets
benefit from, or require, updating because of changes; and when they
don't specify the version used, but have a date, a reference list would
enable us to put in an appropriate version statement so that we could
run an update on the code.


LSR is currently 2.18.2 (last line in [1]).  Knowing that, you can fill 
in the correct \version statement to be able to convert-ly most snippets 
to the latest version.


[1]: https://lsr.di.unimi.it/LSR/html/contributing.html


-- Aaron Hill



Re: Old style bass clef

2021-09-16 Thread Paul Hodges
That works fine.  I note that it doesn't update the CueClef stencil to 
match, but I guess similar code to the Clef update given would suffice 
(if felt necessary at all!).

Your correction raises a question in my mind (which may or may not have 
helped here): is there anywhere a list of dates of release of the 
various stable versions (at least) of LilyPond?  Many old snippets 
benefit from, or require, updating because of changes; and when they 
don't specify the version used, but have a date, a reference list would 
enable us to put in an appropriate version statement so that we could 
run an update on the code.

Paul

On 16/09/2021 03:16:59, "Aaron Hill"  wrote:

>On 2021-09-15 6:49 pm, Stanton Sanderson wrote:
>>I am trying to reproduce a manuscript which use an old style bass
>>clef. A screen shot from >> is shown below.The code
>>apparently worked at one time, but fails when I run it.
>>%% <= http://lilypond.1069038.n5.nabble.com/Old-Bass-Clef-td28833.html
>>
>>% add by P.P.Schneider on March 2014. Edited on June. 2017.
>>The LSR snippet is a bit long, so I’m not reproducing it here. I would
>>be grateful for some help- perhaps someone has an update?
>
>Seems to be some odd quoting going on.  Does this version work better?
>
>
>my-clef =
>#(ly:make-stencil
>   '(path 0.001
>  (moveto   -0.10  -0.35
>   curveto  -0.10  -1.11   0.48  -1.80   1.25  -1.80
>   curveto   1.75  -1.80   2.20  -1.60   2.50  -1.05
>   curveto   2.55  -0.95   2.50  -0.90   2.43  -0.95
>   curveto   2.20  -1.17   1.90  -1.48   1.45  -1.48
>   curveto   0.70  -1.48   0.15  -0.85   0.15  -0.15
>   curveto   0.15   0.45   0.62   0.83   1.05   0.83
>   curveto   1.55   0.83   1.90   0.50   1.90   0.05
>   curveto   1.90  -0.35   1.55  -0.71   1.20  -0.71
>   curveto   0.80  -0.71   0.60  -0.40   0.63  -0.17
>   curveto   0.75  -0.30   0.90  -0.31   1.00  -0.31
>   curveto   1.20  -0.31   1.38  -0.10   1.38   0.15
>   curveto   1.38   0.35   1.20   0.55   0.95   0.55
>   curveto   0.60   0.52   0.39   0.25   0.39  -0.05
>   curveto   0.39  -0.52   0.62  -0.89   1.20  -0.89
>   curveto   1.65  -0.89   2.07  -0.50   2.07   0.10
>   curveto   2.07   0.66   1.56   1.01   1.05   1.01
>   curveto   0.28   1.01  -0.10   0.35  -0.10  -0.35
>   moveto2.42   0.20
>   curveto   2.54   0.20   2.64   0.30   2.64   0.42
>   curveto   2.64   0.54   2.54   0.64   2.42   0.64
>   curveto   2.30   0.64   2.20   0.54   2.20   0.42
>   curveto   2.20   0.30   2.30   0.20   2.42   0.20
>   moveto2.42  -0.20
>   curveto   2.54  -0.20   2.64  -0.30   2.64  -0.42
>   curveto   2.64  -0.54   2.54  -0.64   2.42  -0.64
>   curveto   2.30  -0.64   2.20  -0.54   2.20  -0.42
>   curveto   2.20  -0.30   2.30  -0.20   2.42  -0.20
>   closepath)
>  round round #t)
>(cons -0.1 2.65)
>(cons -1.3 1))
>
>
>
>-- Aaron Hill
>



Re: Old style bass clef (resent to list)

2021-09-16 Thread Stanton Sanderson


> On Sep 15, 2021, at 9:16 PM, Aaron Hill  wrote:
> 
> On 2021-09-15 6:49 pm, Stanton Sanderson wrote:
>> I am trying to reproduce a manuscript which use an old style bass
>> clef. A screen shot from > > is shown below.The code
>> apparently worked at one time, but fails when I run it.
>> %% <= http://lilypond.1069038.n5.nabble.com/Old-Bass-Clef-td28833.html
>> 
>> % add by P.P.Schneider on March 2014. Edited on June. 2017.
>> The LSR snippet is a bit long, so I’m not reproducing it here. I would
>> be grateful for some help- perhaps someone has an update?
> 
> Seems to be some odd quoting going on.  Does this version work better?
> 
> 
> my-clef =
> #(ly:make-stencil
> '(path 0.001
>(moveto   -0.10  -0.35
> curveto  -0.10  -1.11   0.48  -1.80   1.25  -1.80
> curveto   1.75  -1.80   2.20  -1.60   2.50  -1.05
> curveto   2.55  -0.95   2.50  -0.90   2.43  -0.95
> curveto   2.20  -1.17   1.90  -1.48   1.45  -1.48
> curveto   0.70  -1.48   0.15  -0.85   0.15  -0.15
> curveto   0.15   0.45   0.62   0.83   1.05   0.83
> curveto   1.55   0.83   1.90   0.50   1.90   0.05
> curveto   1.90  -0.35   1.55  -0.71   1.20  -0.71
> curveto   0.80  -0.71   0.60  -0.40   0.63  -0.17
> curveto   0.75  -0.30   0.90  -0.31   1.00  -0.31
> curveto   1.20  -0.31   1.38  -0.10   1.38   0.15
> curveto   1.38   0.35   1.20   0.55   0.95   0.55
> curveto   0.60   0.52   0.39   0.25   0.39  -0.05
> curveto   0.39  -0.52   0.62  -0.89   1.20  -0.89
> curveto   1.65  -0.89   2.07  -0.50   2.07   0.10
> curveto   2.07   0.66   1.56   1.01   1.05   1.01
> curveto   0.28   1.01  -0.10   0.35  -0.10  -0.35
> moveto2.42   0.20
> curveto   2.54   0.20   2.64   0.30   2.64   0.42
> curveto   2.64   0.54   2.54   0.64   2.42   0.64
> curveto   2.30   0.64   2.20   0.54   2.20   0.42
> curveto   2.20   0.30   2.30   0.20   2.42   0.20
> moveto2.42  -0.20
> curveto   2.54  -0.20   2.64  -0.30   2.64  -0.42
> curveto   2.64  -0.54   2.54  -0.64   2.42  -0.64
> curveto   2.30  -0.64   2.20  -0.54   2.20  -0.42
> curveto   2.20  -0.30   2.30  -0.20   2.42  -0.20
> closepath)
>round round #t)
>  (cons -0.1 2.65)
>  (cons -1.3 1))
> 
> 
Aaron,

Unfortunately, no. With Lilypond 2.23.3, substituting \clef my-clef for \cleff 
bass in the code results in Frescobaldi’s Lilypond Log spitting out a list of 
supported types:

warning: unknown clef type `my-clef'
warning: supported clefs: C F G G2 GG…. (And so on). Will look further tomorrow.

Thank you!

Re: Old style bass clef

2021-09-15 Thread Aaron Hill

(re-adding mailing list for visibility...)

On 2021-09-15 8:26 pm, Stanton Sanderson wrote:

Unfortunately, no. With Lilypond 2.23.3, substituting \clef my-clef
for \cleff bass in the code results in Frescobaldi’s Lilypond Log
spitting out a list of supported types:

warning: unknown clef type `my-clef'
warning: supported clefs: C F G G2 GG…. (And so on). Will look further 
tomorrow.


Wait... what error were you getting with the original LSR snippet?  Was 
it not something like this?



GNU LilyPond 2.22.0
Processing `custom-bass-clef.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `custom-bass-clef.cropped.eps'...
warning: unknown line-cap-style: (quote round)
/usr/local/lilypond/usr/share/lilypond/current/scm/output-ps.scm:272:49: 
In procedure symbol->string in expression (symbol->string join):
/usr/local/lilypond/usr/share/lilypond/current/scm/output-ps.scm:272:49: 
Wrong type argument in position 1 (expecting symbol): (quote round)



"\clef my-clef" is nonsense.  You would have to register a new clef type 
(if that is even possible), and the LSR snippet certainly is not doing 
that.  It is replacing the stencil for a bass clef, but you still say 
\clef bass.



-- Aaron Hill



Re: Old style bass clef

2021-09-15 Thread Aaron Hill

On 2021-09-15 6:49 pm, Stanton Sanderson wrote:

I am trying to reproduce a manuscript which use an old style bass
clef. A screen shot from > is shown below.The code
apparently worked at one time, but fails when I run it.
%% <= http://lilypond.1069038.n5.nabble.com/Old-Bass-Clef-td28833.html

% add by P.P.Schneider on March 2014. Edited on June. 2017.
The LSR snippet is a bit long, so I’m not reproducing it here. I would
be grateful for some help- perhaps someone has an update?


Seems to be some odd quoting going on.  Does this version work better?


my-clef =
#(ly:make-stencil
  '(path 0.001
 (moveto   -0.10  -0.35
  curveto  -0.10  -1.11   0.48  -1.80   1.25  -1.80
  curveto   1.75  -1.80   2.20  -1.60   2.50  -1.05
  curveto   2.55  -0.95   2.50  -0.90   2.43  -0.95
  curveto   2.20  -1.17   1.90  -1.48   1.45  -1.48
  curveto   0.70  -1.48   0.15  -0.85   0.15  -0.15
  curveto   0.15   0.45   0.62   0.83   1.05   0.83
  curveto   1.55   0.83   1.90   0.50   1.90   0.05
  curveto   1.90  -0.35   1.55  -0.71   1.20  -0.71
  curveto   0.80  -0.71   0.60  -0.40   0.63  -0.17
  curveto   0.75  -0.30   0.90  -0.31   1.00  -0.31
  curveto   1.20  -0.31   1.38  -0.10   1.38   0.15
  curveto   1.38   0.35   1.20   0.55   0.95   0.55
  curveto   0.60   0.52   0.39   0.25   0.39  -0.05
  curveto   0.39  -0.52   0.62  -0.89   1.20  -0.89
  curveto   1.65  -0.89   2.07  -0.50   2.07   0.10
  curveto   2.07   0.66   1.56   1.01   1.05   1.01
  curveto   0.28   1.01  -0.10   0.35  -0.10  -0.35
  moveto2.42   0.20
  curveto   2.54   0.20   2.64   0.30   2.64   0.42
  curveto   2.64   0.54   2.54   0.64   2.42   0.64
  curveto   2.30   0.64   2.20   0.54   2.20   0.42
  curveto   2.20   0.30   2.30   0.20   2.42   0.20
  moveto2.42  -0.20
  curveto   2.54  -0.20   2.64  -0.30   2.64  -0.42
  curveto   2.64  -0.54   2.54  -0.64   2.42  -0.64
  curveto   2.30  -0.64   2.20  -0.54   2.20  -0.42
  curveto   2.20  -0.30   2.30  -0.20   2.42  -0.20
  closepath)
 round round #t)
   (cons -0.1 2.65)
   (cons -1.3 1))



-- Aaron Hill