Hello Jeff,
It’s simpler that that:
\version "2.20.0"
\paper {
#(define fonts
(set-global-fonts
#:music "lilyjazz"
#:brace "lilyjazz"
#:roman "lilyjazz-text"
#:sans "lilyjazz-chord"
#:factor (/ staff-height pt 20)
))
}
\score {
\new Staff {
c'4 c' \tuplet 3/2 { d'8-- es'-- e'-- } g'4 ~ |
g'4 r r8 f'-^ \noBeam es' c'-> \bar "|."
}
}
JM
> Le 18 avr. 2020 à 02:23, Jeff Knox <[email protected]> a écrit :
>
> Thanks guys, it's beginning to make a little more sense now.
>
> My script is here:
>
> %%%%%%%%%%%%%%%%%%%%%%
> \include "lilyjazz.ily"
>
> \score {
> \new Staff {
> \jazzOn
> c'4 c' \tuplet 3/2 { d'8-- es'-- e'-- } g'4 ~ |
> g'4 r r8 f'-^ \noBeam es' c'-> \bar "|."
> }
> }
> \version "2.20.0" % necessary for upgrading to future LilyPond versions.
> %%%%%%%%%%%%%%%%%%%%%%%
>
> I've downloaded all the files which Jacques shows in the /otf directory
> (didn't bother with the svg and woff files since i'm only interested in pdf
> output at this point ... am i assuming correctly?). Also put lilyjazz.ily,
> lilyjazz-chord, and lilyjazz-text in the same directory, but on compiling the
> above script, the result is the same result: "error: cannot find file:
> lilyjazz.ily.
>
> I can think of two possible issues:
> 1) Do the .ily files have to go in a specific directory?
>
> 2) I copied and pasted the .ily files into separate text files (couldn't see
> any way to download or install them directly from GitHub) and saved those in
> the /otf directory ... are the .ily files something more than just text?
>
> Anyway, thanks for your help so far.
>
> Jeff
>
> PS I imply from Robin's suggestion that spaces are characters ... are we also
> case sensitive?
>
> On Fri, Apr 17, 2020 at 5:30 PM Jacques Menu <[email protected]
> <mailto:[email protected]>> wrote:
> I keep an old version of LilyPond with the lilyjazz fonts in it in the
> /Applications folder, and copy the latter to new versions with this script:
>
> menu@macbookprojm: ~/Documents/PartitionsLilypond > cat
> InstallLilyJazzFontsForLilyPond.bash
> #!/bin/bash
>
> set -x
>
> cd /Applications
>
> ls
> LilyPondWithLilyjazzFont.app/Contents/Resources/share/lilypond/current/lilyjazz_fonts/*
> ls LilyPond.app/Contents/Resources/share/lilypond/current/fonts/*
>
> cp -p \
>
> LilyPondWithLilyjazzFont.app/Contents/Resources/share/lilypond/current/lilyjazz_fonts/otf/*
> \
> LilyPond.app/Contents/Resources/share/lilypond/current/fonts/otf
> cp -p \
>
> LilyPondWithLilyjazzFont.app/Contents/Resources/share/lilypond/current/lilyjazz_fonts/svg/*
> \
> LilyPond.app/Contents/Resources/share/lilypond/current/fonts/svg
>
> ls LilyPond.app/Contents/Resources/share/lilypond/current/fonts/*
>
> set +x
>
>
> #and then:
> #
> #\paper {
> # #(define fonts
> # (set-global-fonts
> # #:music "lilyjazz"
> # #:brace "lilyjazz"
> # #:roman "lilyjazz-text"
> # #:sans "lilyjazz-chord"
> # #:factor (/ staff-height pt 20)
> # ))
> #}
>
> JM
>
>> Le 17 avr. 2020 à 23:23, Jacques Menu <[email protected]
>> <mailto:[email protected]>> a écrit :
>>
>> Hello Jeff and Robin,
>>
>> Here is what I have in the /Application folder, and lilyjazz is found by
>> LilyPond:
>>
>> LilyPond.app/Contents/Resources/share/lilypond/current/fonts/otf:
>> C059-BdIta.otf emmentaler-14.otf
>> lilyjazz-26.otf
>> C059-Bold.otf emmentaler-16.otf
>> lilyjazz-brace.otf
>> C059-Italic.otf emmentaler-18.otf
>> texgyrecursor-bold.otf
>> C059-Roman.otf emmentaler-20.otf
>> texgyrecursor-bolditalic.otf
>> NimbusMonoPS-Bold.otf emmentaler-23.otf
>> texgyrecursor-italic.otf
>> NimbusMonoPS-BoldItalic.otf emmentaler-26.otf
>> texgyrecursor-regular.otf
>> NimbusMonoPS-Italic.otf emmentaler-brace.otf
>> texgyreheros-bold.otf
>> NimbusMonoPS-Regular.otf lilyjazz-11.otf
>> texgyreheros-bolditalic.otf
>> NimbusSans-Bold.otf lilyjazz-13.otf
>> texgyreheros-italic.otf
>> NimbusSans-BoldItalic.otf lilyjazz-14.otf
>> texgyreheros-regular.otf
>> NimbusSans-Italic.otf lilyjazz-16.otf
>> texgyreschola-bold.otf
>> NimbusSans-Regular.otf lilyjazz-18.otf
>> texgyreschola-bolditalic.otf
>> emmentaler-11.otf lilyjazz-20.otf
>> texgyreschola-italic.otf
>> emmentaler-13.otf lilyjazz-23.otf
>> texgyreschola-regular.otf
>>
>> LilyPond.app/Contents/Resources/share/lilypond/current/fonts/svg:
>> emmentaler-11.svg emmentaler-18.woff lilyjazz-11.svg
>> lilyjazz-18.woff
>> emmentaler-11.woff emmentaler-20.svg lilyjazz-11.woff
>> lilyjazz-20.svg
>> emmentaler-13.svg emmentaler-20.woff lilyjazz-13.svg
>> lilyjazz-20.woff
>> emmentaler-13.woff emmentaler-23.svg lilyjazz-13.woff
>> lilyjazz-23.svg
>> emmentaler-14.svg emmentaler-23.woff lilyjazz-14.svg
>> lilyjazz-23.woff
>> emmentaler-14.woff emmentaler-26.svg lilyjazz-14.woff
>> lilyjazz-26.svg
>> emmentaler-16.svg emmentaler-26.woff lilyjazz-16.svg
>> lilyjazz-26.woff
>> emmentaler-16.woff emmentaler-brace.svg lilyjazz-16.woff
>> lilyjazz-brace.svg
>> emmentaler-18.svg emmentaler-brace.woff lilyjazz-18.svg
>> lilyjazz-brace.woff
>>
>> JM
>>
>>> Le 17 avr. 2020 à 22:55, Robin Bannister <[email protected]
>>> <mailto:[email protected]>> a écrit :
>>>
>>> Jeff Knox wrote:
>>>
>>>> I chose these locations because the error message i get on compiling a
>>>> simple .ly file gives them as "search paths" (among others). Obviously, the
>>>> wrong locations as I get a message: "cannot find file: 'lily jazz.ily"
>>>
>>>
>>> Somewhere near the start of your .ly file you should have the line
>>>
>>> \include "lilyjazz.ily"
>>>
>>> The filename has no spaces in it, has it?
>>>
>>>
>>> Cheers,
>>> Robin
>>>
>>>
>>>
>>>
>>>
>>
>