Re: Fonts for text

2020-04-26 Thread Jinsong Zhao
On 2020/4/26 17:28, Werner LEMBERG wrote: The "," trigger the magic. However, I do not find the document about it. Maybe I am in a wrong way. In http://lilypond.org/doc/v2.20/Documentation/notation/fonts#single-entry-fonts there's: "font-name can be described using a comma-separated list of

Replace the notes in a phrase (drum notation) with scheme?

2020-04-26 Thread Stefano Antonelli
Hello list, This might be a tall ask, but is there any way to take a complicated music expression and after it's fully evaluated replace a note? It's very typical to have a drum groove that lasts for many bars, but the very first bar starts with a crash cymbal.  What I would like to do is

Re: Optional arguments for scheme functions

2020-04-26 Thread David Kastrup
Aaron Hill writes: > On 2020-04-26 10:01 am, David Kastrup wrote: >> Predicates used in argument parsing have to be "primary" in that they >> have to deliver a result for anything thrown at them. >> positive? only delivers results for numbers but throws an error for >> anything else. > > Would

Re: Optional arguments for scheme functions

2020-04-26 Thread Aaron Hill
On 2020-04-26 10:01 am, David Kastrup wrote: Predicates used in argument parsing have to be "primary" in that they have to deliver a result for anything thrown at them. positive? only delivers results for numbers but throws an error for anything else. Would there be harm in redefining an R5RS

Re: Lilypond requires Python2

2020-04-26 Thread Noeck
Hi David, > lilypond-book is a regular part of the LilyPond distribution, not a mere > build dependency. Yes, I understood. Perhaps my wording was not clear. When Jonas explained that lilypond-book needs python2, I understood the lilypond deb-package dependency on python2. Cheers, Joram

Re: Break visibility for notes?

2020-04-26 Thread Fr. Samuel Springuel
Okay, I’ve been applying this to my project and came across a problem with the version I posted earlier: ledger lines are visible for the invisible notes. Now, I’ve tried applying the line-position function to LedgerLineSpanner.transparent, but that doesn’t have any effect. There is

Re: Optional arguments for scheme functions

2020-04-26 Thread Fr. Samuel Springuel
> On 26 Apr, 2020, at 1:01 PM, David Kastrup wrote: > > Predicates used in argument parsing have to be "primary" in that they > have to deliver a result for anything thrown at them. > Can that be noted in the docs

Re: Lilypond requires Python2

2020-04-26 Thread David Kastrup
Noeck writes: > Hi Jonas, > > Am 26.04.20 um 16:30 schrieb Jonas Hahnfeld: >> Yes, 2.20.0 "requires" Python2 for building and scripts like lilypond- >> book (not for running lilypond itself though). > > Ah, lilypond-book makes sense. Because a deb-package does not provide > the whole building

Re: Optional arguments for scheme functions

2020-04-26 Thread David Kastrup
"Fr. Samuel Springuel" writes: >> On 26 Apr, 2020, at 4:30 AM, Thomas Morley wrote: >> >> I've no clue why positive? fails here. >> Though, for integers >= 0 we have the index? predicate, which works in >> your function. > > Well, I’m glad I’m not the only one baffled. And the index?

Re: Fonts for text

2020-04-26 Thread Ignacio Lois
Hey everyone, Thank you all very much for the input. I installed the latest Frescobaldi and the font wasn't showing in the list. As it turns out, I hadn't installed them properly. I dropped the .otf files onto the Windows config screen from a random folder. I reinstalled them properly from

Re: Lilypond requires Python2

2020-04-26 Thread Jonas Hahnfeld
Am Sonntag, den 26.04.2020, 16:37 +0200 schrieb Noeck: > Hi Jonas, > > Am 26.04.20 um 16:30 schrieb Jonas Hahnfeld: > > Yes, 2.20.0 "requires" Python2 for building and scripts like lilypond- > > book (not for running lilypond itself though). > > Ah, lilypond-book makes sense. Because a

Re: Lilypond requires Python2

2020-04-26 Thread Noeck
Hi Jonas, Am 26.04.20 um 16:30 schrieb Jonas Hahnfeld: > Yes, 2.20.0 "requires" Python2 for building and scripts like lilypond- > book (not for running lilypond itself though). Ah, lilypond-book makes sense. Because a deb-package does not provide the whole building environment, does it? So the

Re: Optional arguments for scheme functions

2020-04-26 Thread Fr. Samuel Springuel
> On 26 Apr, 2020, at 4:30 AM, Thomas Morley wrote: > > I've no clue why positive? fails here. > Though, for integers >= 0 we have the index? predicate, which works in > your function. Well, I’m glad I’m not the only one baffled. And the index? predicate does seem to work. > On 26 Apr,

Re: Lilypond requires Python2

2020-04-26 Thread Jonas Hahnfeld
Am Sonntag, den 26.04.2020, 15:05 +0200 schrieb Noeck: > Hi, > > Ubuntu 20.04 comes with lilypond 2.20.0-1 > https://packages.ubuntu.com/focal/lilypond > > It lists python2 as a dependency (it is actually the only package on my > system requiring python2). > > From recent lilypond-devel mails,

Lilypond requires Python2

2020-04-26 Thread Noeck
Hi, Ubuntu 20.04 comes with lilypond 2.20.0-1 https://packages.ubuntu.com/focal/lilypond It lists python2 as a dependency (it is actually the only package on my system requiring python2). >From recent lilypond-devel mails, I got the impression that there was a complete switch to python3 (at

Re: Fonts for text

2020-04-26 Thread Werner LEMBERG
>> The "," trigger the magic. However, I do not find the document about it. >> Maybe I am in a wrong way. > > In > http://lilypond.org/doc/v2.20/Documentation/notation/fonts#single-entry-fonts > there's: > "font-name can be described using a comma-separated list of ‘fonts’ > and a white-space

Re: Fonts for text

2020-04-26 Thread Thomas Morley
Am So., 26. Apr. 2020 um 10:32 Uhr schrieb Jinsong Zhao : > > On 2020/4/26 16:09, Thomas Morley wrote: > > Am So., 26. Apr. 2020 um 09:36 Uhr schrieb Jinsong Zhao > > : > > > >> The "," trigger the magic. However, I do not find the document about it. > >> Maybe I am in a wrong way. > > > > In > >

Re: Optional arguments for scheme functions

2020-04-26 Thread Lukas-Fabian Moser
Am 26.04.20 um 10:30 schrieb Thomas Morley: However, when I swap integer? for positive? (to reflect the fact that only a positive integer should be acceptable) it breaks, telling me the argument at position 1 is of the wrong type (it’s music, not a positive number). Why doesn’t scheme’s

Re: Fonts for text

2020-04-26 Thread Jinsong Zhao
On 2020/4/26 16:09, Thomas Morley wrote: Am So., 26. Apr. 2020 um 09:36 Uhr schrieb Jinsong Zhao : The "," trigger the magic. However, I do not find the document about it. Maybe I am in a wrong way. In http://lilypond.org/doc/v2.20/Documentation/notation/fonts#single-entry-fonts there's:

Re: Optional arguments for scheme functions

2020-04-26 Thread Thomas Morley
Am So., 26. Apr. 2020 um 02:35 Uhr schrieb Fr. Samuel Springuel : > > I’m trying to write a music function in scheme in which the first argument is > optional and have run into something that confuses me: > > The following works: > > \version "2.19.84" > > recite = #(define-music-function (times

Re: Fonts for text

2020-04-26 Thread Noeck
Am 26.04.20 um 09:13 schrieb Thomas Morley: > In "Times New Roman" the "Roman" is taken as font-family of font > "Times New", which does not exists, thus a fall-back font is used. What? :) (Well, I think I know some background why, but that is still really unexpected.)

Re: Fonts for text

2020-04-26 Thread Thomas Morley
Am So., 26. Apr. 2020 um 09:36 Uhr schrieb Jinsong Zhao : > The "," trigger the magic. However, I do not find the document about it. > Maybe I am in a wrong way. In http://lilypond.org/doc/v2.20/Documentation/notation/fonts#single-entry-fonts there's: "font-name can be described using a

Re: Fonts for text

2020-04-26 Thread Jinsong Zhao
On 2020/4/26 15:13, Thomas Morley wrote: Am So., 26. Apr. 2020 um 04:58 Uhr schrieb Jinsong Zhao : I tried your fonts and the demo example, it does not work. I also try another font, Times New Roman, the most common font on Windows platform. It does not work, too. \version "2.20.0" \header {

Re: Fonts for text

2020-04-26 Thread Thomas Morley
Am Sa., 25. Apr. 2020 um 23:36 Uhr schrieb Ignacio Lois < ignaciol...@gmail.com>: > AAAH!! > > \version "2.19.83" > > \header { > title = \markup { > \override #'(font-name . "ITC Souvenir") > "My Title" > } > } > > \score { > c'' > } > > *Now* that's the

Re: Fonts for text

2020-04-26 Thread Thomas Morley
Am So., 26. Apr. 2020 um 04:58 Uhr schrieb Jinsong Zhao : > I tried your fonts and the demo example, it does not work. I also try > another font, Times New Roman, the most common font on Windows platform. > It does not work, too. > > \version "2.20.0" > > \header { > title = \markup { >