Re: /usr/local/lilypond/usr/bin/lilypond: not found

2023-04-11 Thread David Wright
On Tue 11 Apr 2023 at 17:04:07 (-0700), JD Margulici wrote:
> Hello, I am running the following commands to install Lilypond on Alpine
> Linux:
> 
> wget https://lilypond.org/download/binaries/linux-64/$LILYPOND_INSTALLER
> sh $LILYPOND_INSTALLER
> 
> with LILYPOND_INSTALLER set to lilypond-2.23.6-1.linux-64.sh

… (a 64-bit version).

> The installation proceeds without glitches. However when I try to run
> Lilypond I get the following error message, which in spite of its apparent
> simplicity is rather cryptic since the file that is not found actually
> exists:
> 
> /usr/local/bin/lilypond: exec: line 4:
> /usr/local/lilypond/usr/bin/lilypond: not found
> 
> Similar error with lilypond-book:
> 
> /usr/local/bin/lilypond-book: exec: line 6:
> /usr/local/lilypond/usr/bin/python3: not found
> 
> I found a 15-year old post that reports the same error, but the
> resolution was not clear:
> https://lists.gnu.org/archive/html/lilypond-user/2009-01/msg00725.html

Reading that post and its OP, it looks as if they installed a 32-bit
version on a 64-bit OS. Can you check that you're not doing the opposite?

My machine:

$ uname -a
Linux axis 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 
GNU/Linux
$ 
 ↑   ↑↑

Apropos the version that you're installing, 2.23.6. That's the last
version of LP that comes as an insaller. More recent versions come
as an archive which you just unpack somewhere. Does this change
have anything to do with why you're running this old and otherwise
unnotable version?

Cheers,
David.



Re: /usr/local/lilypond/usr/bin/lilypond: not found

2023-04-11 Thread William Rehwinkel via LilyPond user discussion

Dear JD,

I'm not sure I can help much but will just write two things that come to 
mind.


Did you double check that the path /usr/local/lilypond/usr/bin/lilypond 
exists, and is not just a slightly different path? When I install 
lilypond from 
https://gitlab.com/lilypond/lilypond/-/releases/v2.24.1/downloads/lilypond-2.24.1-darwin-x86_64.tar.gz 
the binary is usually found at /path/to/lilypond-x.x.x/bin/lilypond, not 
/<..>/lilypond/usr/bin/lilypond. Something doesn't seem right about the 
path to lilypond and python3, as if it is supposed to be 
/usr/bin/{lilypond,python3} without /usr/local/lilypond appended to it. 
But again I haven't tried installing in this way.


My other guess is it is a sort of permissions error, like that directory 
or file is owned by a different user.


Other than that, hopefully someone else will be of better help.

-Will

On 4/11/23 20:04, JD Margulici wrote:
Hello, I am running the following commands to install Lilypond on Alpine 
Linux:


wget https://lilypond.org/download/binaries/linux-64/$LILYPOND_INSTALLER 


sh $LILYPOND_INSTALLER

with LILYPOND_INSTALLER set to lilypond-2.23.6-1.linux-64.sh 



The installation proceeds without glitches. However when I try to run 
Lilypond I get the following error message, which in spite of its 
apparent simplicity is rather cryptic since the file that is not found 
actually exists:


/usr/local/bin/lilypond: exec: line 4: 
/usr/local/lilypond/usr/bin/lilypond: not found


Similar error with lilypond-book:

/usr/local/bin/lilypond-book: exec: line 6: 
/usr/local/lilypond/usr/bin/python3: not found


I found a 15-year old post that reports the same error, but the 
resolution was not clear: 
https://lists.gnu.org/archive/html/lilypond-user/2009-01/msg00725.html 



Thank you for your help!

JD


--
+ --- +
|   William Rehwinkel - Oberlin College and   |
|  Conservatory '24   |
|will...@williamrehwinkel.net |
| PGP key:|
| https://ftp.williamrehwinkel.net/pubkey.txt |
+ --- +


OpenPGP_signature
Description: OpenPGP digital signature


/usr/local/lilypond/usr/bin/lilypond: not found

2023-04-11 Thread JD Margulici
Hello, I am running the following commands to install Lilypond on Alpine
Linux:

wget https://lilypond.org/download/binaries/linux-64/$LILYPOND_INSTALLER
sh $LILYPOND_INSTALLER

with LILYPOND_INSTALLER set to lilypond-2.23.6-1.linux-64.sh

The installation proceeds without glitches. However when I try to run
Lilypond I get the following error message, which in spite of its apparent
simplicity is rather cryptic since the file that is not found actually
exists:

/usr/local/bin/lilypond: exec: line 4:
/usr/local/lilypond/usr/bin/lilypond: not found

Similar error with lilypond-book:

/usr/local/bin/lilypond-book: exec: line 6:
/usr/local/lilypond/usr/bin/python3: not found

I found a 15-year old post that reports the same error, but the
resolution was not clear:
https://lists.gnu.org/archive/html/lilypond-user/2009-01/msg00725.html

Thank you for your help!

JD


RE: Re: How to fix markup horizontal position relative to edge of page

2023-04-11 Thread juergen . gruen

Ok. Wasn't aware of that. Still learning too...
I changed the procedure so it is just calculating the indent and not creating a 
layout block... (more code in the layout block necessary)



%%
\version "2.24.0"


#(define (get-indent lw)
   (let* (
           (pw (ly:output-def-lookup $defaultpaper 'paper-width))
           (lmd (ly:output-def-lookup $defaultpaper 'left-margin-default))
           (rmd (ly:output-def-lookup $defaultpaper 'right-margin-default)))
     ; calculate indent for use in layout blocks
     (/ (- pw lmd rmd lw) 2)))


\score {
  \layout  {
    lineWidth = 120
    ind = #(get-indent lineWidth)
    line-width = #(+ lineWidth ind)
    indent = \ind
    short-indent = \ind


    % some other stuff...
  }
  \repeat unfold 20 \relative c { c' d e f g a b  }
}


\markup   \wordwrap-string "Bacon ipsum dolor amet hamburger aliqua incididunt sunt 
in. Excepteur consequat ad laboris anim flank jowl. Irure drumstick shoulder dolor. Cupim 
tri-tip meatloaf prosciutto leberkas."
%%


Not sure what is best practice here



Juergen.





-ursprüngliche Nachricht-
Von: benja...@koine.gr
Gesendet: 11.04.2023 16:59 Uhr
An: juergen.gr...@xyz.de, lilypond-user@gnu.org
Betreff: Re: How to fix markup horizontal position relative to edge of page






I did try that, but in the output the the score appears twice since there are 
two layout blocks. Is there no way to merge them?

Ѫѯ 2023-04-11 Ѩё 08:36, juergen.gr...@xyz.de ѮѴё:
> This
>> #{
>> line-width = #(+ lw ind)
>> indent = #ind
>> short-indent = #ind
>> #}
> is part of the scheme procedure. You can use lilypond syntax - put into
> #{ ...#}  - in scheme procedures. I create a new layout-block in the
> procedure. You can not nest layout blocks but you can have parallel
> layout-blocks. So copy the procedure-call into your score but not into
> your own layout block:
>
>
> \version "2.24.0"
>
> #(define (set-score-width lw)
>    (let* (
>            (pw (ly:output-def-lookup $defaultpaper 'paper-width))
>            (lmd (ly:output-def-lookup $defaultpaper 'left-margin-default))
>            (rmd (ly:output-def-lookup $defaultpaper 'right-margin-default))
>            (ind (/ (- pw lmd rmd lw) 2)))
>
>      #{ \layout {
>        line-width = #(+ lw ind)
>        indent = #ind
>        short-indent = #ind
>      } #} )) % end of scheme code
>
> \score {
>    procedure call
>   #(set-score-width 120)
>
>    your own layout block
>   \layout {
>     % do something
>   }
>   \repeat unfold 20 \relative c { c' d e f g a b  }
> }
> \markup   \wordwrap-string "Bacon ipsum dolor amet hamburger aliqua
> incididunt sunt in. Excepteur consequat ad laboris anim flank jowl.
> Irure drumstick shoulder dolor. Cupim tri-tip meatloaf prosciutto
> leberkas."
>
>
>
>
>
> HTH, Juergen.
>
>
>
>
>
>
>
>
>> -ursprüngliche Nachricht-
>> Von: benja...@koine.gr
>> Gesendet: 11.04.2023 16:14 Uhr
>> An: juergen.gr...@xyz.de, lilypond-user@gnu.org
>> Betreff: Re: How to fix markup horizontal position relative to edge of page
>
>
>> Quick question, in the scores I am working on I already have a \layout block 
with several other settings within it. How can I insert just the line-width, indent, 
and short-indent settings into the already-existent \layout block without creating 
another one? If I try just
>>
>> #{
>> line-width = #(+ lw ind)
>> indent = #ind
>> short-indent = #ind
>> #}
>>
>> for my LilyPond code block, it gives me the error "not a note name: 
line-width".
>> Thanks for your Scheme expertise :)
>>
>> Ѫѯ 2023-04-11 Ѩё 07:38, Benjamin Bruce ѮѴё:
>> > This is exactly what I needed. I figured it could be done with some
>> > Scheme code, but that's beyond my knowledge. Thanks so much for your
>> > help!
>> >
>> > Ѫѯ 2023-04-11 Ѩё 03:55, juergen.gr...@xyz.de ѮѴё:
>> >> OK, this was not correct. There is a left-margin-default set and the
>> >> indent does not shift the line but makes it shorter(?) Here is another
>> >> approach:
>> >>
>> >> 
>> >>
>> >> \version "2.24.0"
>> >>
>> >> #(define (set-score-width lw)
>> >> (let* (
>> >> (pw (ly:output-def-lookup $defaultpaper 'paper-width))
>> >> (lmd (ly:output-def-lookup $defaultpaper 'left-margin-default))
>> >> (rmd (ly:output-def-lookup $defaultpaper 'right-margin-default))
>> >> (ind (/ (- pw lmd rmd lw) 2)))
>> >>
>> >> #{ \layout {
>> >> line-width = #(+ lw ind)
>> >> indent = #ind
>> >> short-indent = #ind
>> >> } #} ))
>> >>
>> >> \score {
>> >> #(set-score-width 120)
>> >> \repeat unfold 20 \relative c { c' d e f g a b }
>> >> }
>> >>
>> >> \markup \wordwrap-string "Bacon ipsum dolor amet hamburger aliqua
>> >> incididunt sunt in. Excepteur consequat ad laboris anim flank jowl.
>> >> Irure drumstick shoulder dolor. Cupim tri-tip meatloaf prosciutto
>> >> leberkas."
>> >>
>> >> 
>> >>
>> >> Juergen.
>>
>
>
>> -ursprüngliche Nachricht Ende-







-ursprüngliche 

Re: How to fix markup horizontal position relative to edge of page

2023-04-11 Thread Benjamin Bruce
I did try that, but in the output the the score appears twice since there are 
two layout blocks. Is there no way to merge them?

Ѫѯ 2023-04-11 Ѩё 08:36, juergen.gr...@xyz.de ѮѴё:
> This
>> #{
>> line-width = #(+ lw ind)
>> indent = #ind
>> short-indent = #ind
>> #}
> is part of the scheme procedure. You can use lilypond syntax - put into 
> #{ ...#}  - in scheme procedures. I create a new layout-block in the 
> procedure. You can not nest layout blocks but you can have parallel 
> layout-blocks. So copy the procedure-call into your score but not into 
> your own layout block:
>
>
> \version "2.24.0"
>
> #(define (set-score-width lw)
>    (let* (
>            (pw (ly:output-def-lookup $defaultpaper 'paper-width))
>            (lmd (ly:output-def-lookup $defaultpaper 'left-margin-default))
>            (rmd (ly:output-def-lookup $defaultpaper 'right-margin-default))
>            (ind (/ (- pw lmd rmd lw) 2)))
>
>      #{ \layout {
>        line-width = #(+ lw ind)
>        indent = #ind
>        short-indent = #ind
>      } #} )) % end of scheme code
>
> \score {
>    procedure call
>   #(set-score-width 120)
> 
>    your own layout block
>   \layout {
>     % do something
>   }
>   \repeat unfold 20 \relative c { c' d e f g a b  }
> }
> \markup   \wordwrap-string "Bacon ipsum dolor amet hamburger aliqua 
> incididunt sunt in. Excepteur consequat ad laboris anim flank jowl. 
> Irure drumstick shoulder dolor. Cupim tri-tip meatloaf prosciutto 
> leberkas."
>
>
>
>
>
> HTH, Juergen.
>
>
>
>
>
>
>
>
>> -ursprüngliche Nachricht-
>> Von: benja...@koine.gr
>> Gesendet: 11.04.2023 16:14 Uhr
>> An: juergen.gr...@xyz.de, lilypond-user@gnu.org
>> Betreff: Re: How to fix markup horizontal position relative to edge of page
>
>
>> Quick question, in the scores I am working on I already have a \layout block 
>> with several other settings within it. How can I insert just the line-width, 
>> indent, and short-indent settings into the already-existent \layout block 
>> without creating another one? If I try just
>>
>> #{
>> line-width = #(+ lw ind)
>> indent = #ind
>> short-indent = #ind
>> #}
>>
>> for my LilyPond code block, it gives me the error "not a note name: 
>> line-width".
>> Thanks for your Scheme expertise :)
>>
>> Ѫѯ 2023-04-11 Ѩё 07:38, Benjamin Bruce ѮѴё:
>> > This is exactly what I needed. I figured it could be done with some
>> > Scheme code, but that's beyond my knowledge. Thanks so much for your
>> > help!
>> >
>> > Ѫѯ 2023-04-11 Ѩё 03:55, juergen.gr...@xyz.de ѮѴё:
>> >> OK, this was not correct. There is a left-margin-default set and the
>> >> indent does not shift the line but makes it shorter(?) Here is another
>> >> approach:
>> >>
>> >> 
>> >>
>> >> \version "2.24.0"
>> >>
>> >> #(define (set-score-width lw)
>> >> (let* (
>> >> (pw (ly:output-def-lookup $defaultpaper 'paper-width))
>> >> (lmd (ly:output-def-lookup $defaultpaper 'left-margin-default))
>> >> (rmd (ly:output-def-lookup $defaultpaper 'right-margin-default))
>> >> (ind (/ (- pw lmd rmd lw) 2)))
>> >>
>> >> #{ \layout {
>> >> line-width = #(+ lw ind)
>> >> indent = #ind
>> >> short-indent = #ind
>> >> } #} ))
>> >>
>> >> \score {
>> >> #(set-score-width 120)
>> >> \repeat unfold 20 \relative c { c' d e f g a b }
>> >> }
>> >>
>> >> \markup \wordwrap-string "Bacon ipsum dolor amet hamburger aliqua
>> >> incididunt sunt in. Excepteur consequat ad laboris anim flank jowl.
>> >> Irure drumstick shoulder dolor. Cupim tri-tip meatloaf prosciutto
>> >> leberkas."
>> >>
>> >> 
>> >>
>> >> Juergen.
>>
>
>
>> -ursprüngliche Nachricht Ende-



RE: Re: How to fix markup horizontal position relative to edge of page

2023-04-11 Thread juergen . gruen

This

#{
line-width = #(+ lw ind)
indent = #ind
short-indent = #ind
#}

is part of the scheme procedure. You can use lilypond syntax - put into #{ 
...#}  - in scheme procedures. I create a new layout-block in the procedure. 
You can not nest layout blocks but you can have parallel layout-blocks. So copy 
the procedure-call into your score but not into your own layout block:


\version "2.24.0"

#(define (set-score-width lw)
   (let* (
           (pw (ly:output-def-lookup $defaultpaper 'paper-width))
           (lmd (ly:output-def-lookup $defaultpaper 'left-margin-default))
           (rmd (ly:output-def-lookup $defaultpaper 'right-margin-default))
           (ind (/ (- pw lmd rmd lw) 2)))

     #{ \layout {
       line-width = #(+ lw ind)
       indent = #ind
       short-indent = #ind
     } #} )) % end of scheme code

\score {
   procedure call
  #(set-score-width 120)
 
   your own layout block
  \layout {
    % do something
  }
  \repeat unfold 20 \relative c { c' d e f g a b  }
}
\markup   \wordwrap-string "Bacon ipsum dolor amet hamburger aliqua incididunt sunt 
in. Excepteur consequat ad laboris anim flank jowl. Irure drumstick shoulder dolor. Cupim 
tri-tip meatloaf prosciutto leberkas."





HTH, Juergen.









-ursprüngliche Nachricht-
Von: benja...@koine.gr
Gesendet: 11.04.2023 16:14 Uhr
An: juergen.gr...@xyz.de, lilypond-user@gnu.org
Betreff: Re: How to fix markup horizontal position relative to edge of page




Quick question, in the scores I am working on I already have a \layout block 
with several other settings within it. How can I insert just the line-width, 
indent, and short-indent settings into the already-existent \layout block 
without creating another one? If I try just

#{
line-width = #(+ lw ind)
indent = #ind
short-indent = #ind
#}

for my LilyPond code block, it gives me the error "not a note name: line-width".
Thanks for your Scheme expertise :)

Ѫѯ 2023-04-11 Ѩё 07:38, Benjamin Bruce ѮѴё:
> This is exactly what I needed. I figured it could be done with some
> Scheme code, but that's beyond my knowledge. Thanks so much for your
> help!
>
> Ѫѯ 2023-04-11 Ѩё 03:55, juergen.gr...@xyz.de ѮѴё:
>> OK, this was not correct. There is a left-margin-default set and the
>> indent does not shift the line but makes it shorter(?) Here is another
>> approach:
>>
>> 
>>
>> \version "2.24.0"
>>
>> #(define (set-score-width lw)
>> (let* (
>> (pw (ly:output-def-lookup $defaultpaper 'paper-width))
>> (lmd (ly:output-def-lookup $defaultpaper 'left-margin-default))
>> (rmd (ly:output-def-lookup $defaultpaper 'right-margin-default))
>> (ind (/ (- pw lmd rmd lw) 2)))
>>
>> #{ \layout {
>> line-width = #(+ lw ind)
>> indent = #ind
>> short-indent = #ind
>> } #} ))
>>
>> \score {
>> #(set-score-width 120)
>> \repeat unfold 20 \relative c { c' d e f g a b }
>> }
>>
>> \markup \wordwrap-string "Bacon ipsum dolor amet hamburger aliqua
>> incididunt sunt in. Excepteur consequat ad laboris anim flank jowl.
>> Irure drumstick shoulder dolor. Cupim tri-tip meatloaf prosciutto
>> leberkas."
>>
>> 
>>
>> Juergen.





-ursprüngliche Nachricht Ende-




Re: How to fix markup horizontal position relative to edge of page

2023-04-11 Thread Benjamin Bruce
Quick question, in the scores I am working on I already have a \layout block 
with several other settings within it. How can I insert just the line-width, 
indent, and short-indent settings into the already-existent \layout block 
without creating another one? If I try just 

#{ 
   line-width = #(+ lw ind)
   indent = #ind
   short-indent = #ind
#}

for my LilyPond code block, it gives me the error "not a note name: line-width".
Thanks for your Scheme expertise :)

Ѫѯ 2023-04-11 Ѩё 07:38, Benjamin Bruce  ѮѴё:
> This is exactly what I needed. I figured it could be done with some 
> Scheme code, but that's beyond my knowledge. Thanks so much for your 
> help!
>
> Ѫѯ 2023-04-11 Ѩё 03:55, juergen.gr...@xyz.de ѮѴё:
>> OK, this was not correct. There is a left-margin-default set and the 
>> indent does not shift the line but makes it shorter(?) Here is another 
>> approach:
>>
>> 
>>
>> \version "2.24.0"
>>
>> #(define (set-score-width lw)
>>(let* (
>>(pw (ly:output-def-lookup $defaultpaper 'paper-width))
>>(lmd (ly:output-def-lookup $defaultpaper 'left-margin-default))
>>(rmd (ly:output-def-lookup $defaultpaper 'right-margin-default))
>>(ind (/ (- pw lmd rmd lw) 2)))
>>
>>  #{ \layout {
>>line-width = #(+ lw ind)
>>indent = #ind
>>short-indent = #ind
>>  } #} ))
>>
>> \score {
>>   #(set-score-width 120)
>>   \repeat unfold 20 \relative c { c' d e f g a b  }
>> }
>>
>> \markup   \wordwrap-string "Bacon ipsum dolor amet hamburger aliqua 
>> incididunt sunt in. Excepteur consequat ad laboris anim flank jowl. 
>> Irure drumstick shoulder dolor. Cupim tri-tip meatloaf prosciutto 
>> leberkas."
>>
>> 
>>
>> Juergen.



Re: How to fix markup horizontal position relative to edge of page

2023-04-11 Thread Benjamin Bruce
This is exactly what I needed. I figured it could be done with some Scheme 
code, but that's beyond my knowledge. Thanks so much for your help!

Ѫѯ 2023-04-11 Ѩё 03:55, juergen.gr...@xyz.de ѮѴё:
> OK, this was not correct. There is a left-margin-default set and the 
> indent does not shift the line but makes it shorter(?) Here is another 
> approach:
>
> 
>
> \version "2.24.0"
>
> #(define (set-score-width lw)
>(let* (
>(pw (ly:output-def-lookup $defaultpaper 'paper-width))
>(lmd (ly:output-def-lookup $defaultpaper 'left-margin-default))
>(rmd (ly:output-def-lookup $defaultpaper 'right-margin-default))
>(ind (/ (- pw lmd rmd lw) 2)))
>
>  #{ \layout {
>line-width = #(+ lw ind)
>indent = #ind
>short-indent = #ind
>  } #} ))
>
> \score {
>   #(set-score-width 120)
>   \repeat unfold 20 \relative c { c' d e f g a b  }
> }
>
> \markup   \wordwrap-string "Bacon ipsum dolor amet hamburger aliqua 
> incididunt sunt in. Excepteur consequat ad laboris anim flank jowl. 
> Irure drumstick shoulder dolor. Cupim tri-tip meatloaf prosciutto 
> leberkas."
>
> 
>
> Juergen.



Re: Needing space after a user-defined ornament

2023-04-11 Thread Kieren MacMillan
Hi Jean,

> I don't understand this discussion. Over here,
> […] produces the same output as
> […]
> What am I missing?

Not sure… When I tried the OP’s code, it didn’t seem to work, even when I 
played with the numbers; then I added TextScript and it started to work. 

It didn’t make sense to me that it was necessary, and running your two code 
blocks now shows that it’s not.

Maybe Mercury’s in retrograde?  ;)
K

__

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.




Re: Getting back into Lilypond/Frescobaldi

2023-04-11 Thread Jean Abou Samra
Le mardi 11 avril 2023 à 07:59 -0500, Tim's Bitstream a écrit :
> This has been my experience, also. I think if the font and/or app is not 
> installed In The Apple Way, applications like LP can't find them.  When I 
> upgrade Lilypond, each time I have to manually install the lilyjazz fonts 
> into the appropriate Lilypond subdirectories or they don't get used by LP.  
> Apple is not helpful for things like this.


Not that I like Apple, but it's LilyPond's fault here. It's exactly the same on 
Linux or Windows. See 
[#6486](https://gitlab.com/lilypond/lilypond/-/issues/6486).

(I am working on lots of font changes and this issue is on my short-term TODO 
list.)


signature.asc
Description: This is a digitally signed message part


Re: Getting back into Lilypond/Frescobaldi

2023-04-11 Thread Tim's Bitstream



> On Apr 11, 2023, at 4:43 AM, Michael Hendry  wrote:
> 
> The instructions for the installation of the lilyjazz fonts for Mac OSX 
> assume that lilypond is installed as a conventional Mac App, and refer to 
> “INSTALLDIR/Lilypond.app/Contents/Resources/share/lilypond/current” with 
> subdirectories for fonts, but there doesn’t appear to be a .DMG version 
> available, so I copied the lilyjazz fonts into the corresponding directories 
> in ~/lilypond-2.4.1

This has been my experience, also. I think if the font and/or app is not 
installed In The Apple Way, applications like LP can't find them.  When I 
upgrade Lilypond, each time I have to manually install the lilyjazz fonts into 
the appropriate Lilypond subdirectories or they don't get used by LP.  Apple is 
not helpful for things like this.



Re: Needing space after a user-defined ornament

2023-04-11 Thread Jean Abou Samra
Le mardi 11 avril 2023 à 07:14 -0400, Kieren MacMillan a écrit :
> Hi Alasdair,
> 
> 
> > Many thanks indeed - that works a treat!  How does one find out about these 
> > things?  I had tried just
> > - \tweak extra-spacing-width #'(2 . 3)
> > which hadn't worked.  Clearly I needed the extra space property of text.
> 
> 
> I tried what you did first, and it didn’t work for me either. When a tweak I 
> expect to work doesn’t work right away, I usually try adding an explicit grob 
> name next, just in case that fixes it — and in this case it did!

I don't understand this discussion. Over here,

```
\version "2.24.1"

ttr = #(define-event-function (placement) (pair?)
#{
 -\tweak extra-spacing-width #'(1 . 5)
 -\tweak extra-offset #placement
 -\markup { \fontsize #4 \musicglyph #"scripts.rcomma" }
#} )

\relative c'' {
  g8. ^\ttr #'(2.5 . -3.0) a16
}
```

produces the same output as

```
\version "2.24.1"

ttr = #(define-event-function (placement) (pair?)
#{
 -\tweak TextScript.extra-spacing-width #'(1 . 5)
 -\tweak extra-offset #placement
 -\markup { \fontsize #4 \musicglyph #"scripts.rcomma" }
#} )

\relative c'' {
  g8. ^\ttr #'(2.5 . -3.0) a16
}
```

What am I missing?


signature.asc
Description: This is a digitally signed message part


Re: Needing space after a user-defined ornament

2023-04-11 Thread Kieren MacMillan
Hi Alasdair,

> Many thanks indeed - that works a treat!  How does one find out about these 
> things?  I had tried just
> - \tweak extra-spacing-width #'(2 . 3)
> which hadn't worked.  Clearly I needed the extra space property of text.

I tried what you did first, and it didn’t work for me either. When a tweak I 
expect to work doesn’t work right away, I usually try adding an explicit grob 
name next, just in case that fixes it — and in this case it did!

Cheers,
Kieren.
__

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.




Re: Getting back into Lilypond/Frescobaldi

2023-04-11 Thread Michael Hendry
On 11 Apr 2023, at 08:26, Jean Abou Samra  wrote:

> 
> Le mardi 11 avril 2023 à 08:07 +0100, Michael Hendry a écrit :
> 
>> On 10 Apr 2023, at 23:13, Jean Abou Samra j...@abou-samra.fr 
>>  wrote:
>> 
>>> Le lundi 10 avril 2023 à 22:59 +0100, Michael Hendry a écrit :
>>> 
 Thanks, Jean, This is what’s in ~.config/fontconfig/fonts.conf:  
 That definitely does not look like a valid config file. It has a duplicate 
 XML declaration, and the  element should not be empty. Not sure what 
 software left this borked config file on this computer. I would just 
 remove it, it's not doing anything apart from triggering errors AFAICS.
 
>> I’ve deleted this file, with no apparent consequences.
>> 
> So you removed the file, yet there is still a warning mentioning that file... 
> ??
> 

Sorry, what I meant was that there were no adverse consequences (in the sense 
of Mac OS warnings, or font problems) of the deletion that I could detect - the 
warnings from Frescobaldi disappeared.
> Are you sure that it's still the same file path in the warning?
> 
> Did you check that the file was indeed not there anymore at the moment you 
> compiled the test .ly file? Maybe some background process / daemon recreated 
> it?
> 

The good news is that I’ve been able to compile one of my old leadsheets 
successfully, including the use of jazz fonts.

I downloaded lilypond-2.4.1, expanded it and moved the whole directory to my 
home directory.
The instructions for the installation of the lilyjazz fonts for Mac OSX assume 
that lilypond is installed as a conventional Mac App, and refer to 
“INSTALLDIR/Lilypond.app/Contents/Resources/share/lilypond/current” with 
subdirectories for fonts, but there doesn’t appear to be a .DMG version 
available, so I copied the lilyjazz fonts into the corresponding directories in 
~/lilypond-2.4.1
I updated Frescobaldi’s preferences to use 2.4.1 by default.
I updated Frescobaldi’s preferences to add 2.4.1’s ./bin and ./etc/fonts to the 
include path.
I loaded a leadsheet.ly file, and ran convert-ly on it (it had already been 
updated to 2.4.0).
This generated a warning about Python3.10, and I opened Privacy & Security to 
fix it.
There was no mention of Python in Privacy & Security, so I closed the warning 
and tried again.
This time there was a warning about Python, so I authorised its use.
Noticing that the first line of the .ly file was unchanged by convert-ly 
(\version “2.24.0”) I adjusted it to 2.24.1.
I then ran “Engrave (preview) and got a warning (as with Python3.10) relating 
to gs, and resolved it the same way

Et voilà! 

Problems solved.

Thanks again for your help.

Michael

Re: Getting back into Lilypond/Frescobaldi

2023-04-11 Thread Jean Abou Samra
Le mardi 11 avril 2023 à 08:07 +0100, Michael Hendry a écrit :
> On 10 Apr 2023, at 23:13, Jean Abou Samra  wrote:  
> > Le lundi 10 avril 2023 à 22:59 +0100, Michael Hendry a écrit :
> >  
> > > Thanks, Jean,
> > > This is what’s in ~.config/fontconfig/fonts.conf:
> > >   
> > That definitely does not look like a valid config file. It has a duplicate 
> > XML declaration, and the `` element should not be empty. Not sure what 
> > software left this borked config file on this computer.
> > I would just remove it, it's not doing anything apart from triggering 
> > errors AFAICS.
> 
> 
> I’ve deleted this file, with no apparent consequences.


So you removed the file, yet there is still a warning mentioning that file... ??

Are you sure that it's still the same file path in the warning?

Did you check that the file was indeed not there anymore at the moment you 
compiled the test .ly file? Maybe some background process / daemon recreated it?


signature.asc
Description: This is a digitally signed message part


Re: Getting back into Lilypond/Frescobaldi

2023-04-11 Thread Michael Hendry
On 10 Apr 2023, at 23:13, Jean Abou Samra  wrote:
> 
> Le lundi 10 avril 2023 à 22:59 +0100, Michael Hendry a écrit :
> 
>> Thanks, Jean,
>> 
>> This is what’s in ~.config/fontconfig/fonts.conf:
>> 
>>  
> That definitely does not look like a valid config file. It has a duplicate 
> XML declaration, and the  element should not be empty. Not sure what 
> software left this borked config file on this computer.
> 
> I would just remove it, it's not doing anything apart from triggering errors 
> AFAICS.
> 

I’ve deleted this file, with no apparent consequences.

 The lead-sheets deliver the same “Fontconfig…” error messages, but also 
 include the following warnings: interpreting music...
 warning: cannot find property type-check for `markFormatter' 
 (translation-type?). perhaps a typing error?
 warning: skipping assignment
 
>>> You should always (yes, always) run convert-ly before trying old scores on 
>>> new versions. It will automatically fix the syntax of your file to be 
>>> compatible with the new version of LilyPond. Developers (like me) put awful 
>>> amounts of efforts into making it work well. It's a pity not to use that. 
>>> In Frescobaldi, that's in Tools > Update with convert-ly.
>>> 
>> I’ve tried that on these old files, but it doesn’t resolve the problem.
>> 
> Are you sure that the 2.23.5 → 2.23.6 conversion step was run properly?
> 
> My guess is that you updated the \version number before running convert-ly. 
> It detects the version to upgrade from using the version statement, so you 
> should not do that, but instead let convert-ly change the version for you.
> 
> In the log from convert-ly that Frescobaldi shows you, you should see 
> "2.23.6" among the list of conversions that were run.
> 
> Another possibility is that you have a use of “markFormatter” in an include 
> file and you forgot to convert that one.
> 

That was the problem - I hadn’t run convert-ly on all of the include files.

I’m left with only one error when trying to compile my leadsheets:

fatal error: cannot find font: `lilyjazz-11’

I’ll obviously have to reinstall the jazz fonts.

Thanks again for your help,

Michael