Apply markup-command to every element of markuplist

2017-12-12 Thread Robert Kubosz
Hello everyone! I want to apply markup-command to every element of markup list, for example to make every element bold in \markuplist {foo bar}. I've followed the documentation, found the \map-markup-commands and I don't really understand how it works. I've tried \map-markup-commands \bold \mark

Re: Apply markup-command to every element of markuplist

2017-12-12 Thread David Kastrup
Robert Kubosz writes: > Hello everyone! > > I want to apply markup-command to every element of markup list, for > example to make every element bold in \markuplist {foo bar}. > > I've followed the documentation, found the \map-markup-commands and I > don't really understand how it works. I've tri

Re: \unfoldRepeats for midi file

2017-12-12 Thread Peter Chubb
> "Ming" == Ming Tsang writes: Ming> Peter, I did reply all and I got mail Ming> delivery fail on your rmail address. You probably included HTML, which causes my spam daemon to reject it. Ming> Thank you for the Ming> answer. One question: how can I just want to show few color Ming> lyric t

Re: Apply markup-command to every element of markuplist

2017-12-12 Thread Robert Kubosz
It works perfectly. It's a shame that I did not try that. Thanks David a lot! On Dec 12, 2017 09:35, "David Kastrup" wrote: > Robert Kubosz writes: > > > Hello everyone! > > > > I want to apply markup-command to every element of markup list, for > > example to make every element bold in \markup

Re: Apply markup-command to every element of markuplist

2017-12-12 Thread David Kastrup
Robert Kubosz writes: >> On Dec 12, 2017 09:35, "David Kastrup" wrote: >> >>> Robert Kubosz writes: >>> >>> > Hello everyone! >>> > >>> > I want to apply markup-command to every element of markup list, for >>> > example to make every element bold in \markuplist {foo bar}. >>> > >>> > I've follo

Re: \unfoldRepeats for midi file

2017-12-12 Thread David Kastrup
"Peter Chubb" writes: >> "Ming" == Ming Tsang writes: > > > Ming> Peter, I did reply all and I got mail > Ming> delivery fail on your rmail address. > You probably included HTML, which causes my spam daemon to reject it. > > Ming> Thank you for the > Ming> answer. One question: how can I jus

How to store lengths in variables

2017-12-12 Thread Urs Liska
Hi, I would like to parametrize my paper settings. But for that I need to either store the measurement unit in a variable (outside the paper block) or store the plain number in the variable and create a length from that within the paper block. tm = 5\in \paper { top-margin = #tm } This d

Re: How to store lengths in variables

2017-12-12 Thread Jan-Peter Voigt
Hi Urs, as you already said units are only known inside the paper block, because they are dependent of the paper size an the global staff size. Inside the paper block the units are just numbers. If you want to multiply numbers you can do so outside the paper block like this: xx = 2 yy = 3\xx

Re: How to store lengths in variables

2017-12-12 Thread Urs Liska
Hi Jan-Peter, Am 12.12.2017 um 14:15 schrieb Jan-Peter Voigt: Hi Urs, as you already said units are only known inside the paper block, because they are dependent of the paper size an the global staff size. Inside the paper block the units are just numbers. If you want to multiply numbers yo

Re: How to store lengths in variables

2017-12-12 Thread David Kastrup
Urs Liska writes: > Thank you. While I had to figure out how to adapt this to 2.18 I > realized that the missing information was that I can turn the symbol > "cm" into a value through ly:parser-lookup. > > This works with 2.18, and I will further refine it (the idea is to > store several sets of

Re: How to store lengths in variables

2017-12-12 Thread Jan-Peter Voigt
Hi David, thank you! Am 12.12.2017 um 15:14 schrieb David Kastrup: Why not just \paper { #(for-each (lambda (p) (ly:parser-define! (car p) (primitive-eval (cdr p paper-values) } or some suitably similar wrapper? Jan-Peter \version "2.19.80" % store the va

Conditional paper block

2017-12-12 Thread Br. Samuel Springuel
I have a project in which I'm including a bunch of scores into a pdf document using lyluatex. In the final product, lyluatex handles figuring out what the appropriate line width is for the scores and passes that information to lilypond by adding a header to score before processing. During th

Re: Question about the horizontal spacing

2017-12-12 Thread David Wright
On Tue 12 Dec 2017 at 02:22:23 (+0300), Rus wrote: > >>  It works well only without lyrics. With lyrics it works not well (see > >> attachment). > >> > >>  \version "2.18.2" > >>  \score { > >>  \new StaffGroup > >>  << > >>  << > >>  \new Staff { > >>  \relative c' { > >>  \override Staff.BarLine

Re: Conditional paper block

2017-12-12 Thread David Wright
On Tue 12 Dec 2017 at 10:52:40 (-0500), Br. Samuel Springuel wrote: > I have a project in which I'm including a bunch of scores into a pdf > document using lyluatex. In the final product, lyluatex handles > figuring out what the appropriate line width is for the scores and > passes that informatio

Re: Conditional paper block

2017-12-12 Thread Br. Samuel Springuel
On 2017-12-12 12:08 PM, David Wright wrote: You can set the default paper-size with a -d option in the LP command line. See p10 of the "Usage" manual (2.19.80 page ref.). That works perfect from the command line. Is it possible to get Frescobaldi to apply this option when running LilyPond? I

Re: \unfoldRepeats for midi file

2017-12-12 Thread Simon Albrecht
On 12.12.2017 11:27, David Kastrup wrote: "Peter Chubb" writes: Ming> Thank you for the Ming> answer. One question: how can I just want to show few color Ming> lyric text only? I try to use {}, but it shows all lyric text in Ming> color. Ming You need to delimit the coloured part. Something

Re: Auto-transposition

2017-12-12 Thread Shevek
> But as a user of Lilypond for over fifteen years, I *will* recommend that you consider avoiding relative entry mode — using absolute mode (and, when appropriate, \fixed) will like save you headaches (like the one you're encountering right now) in both the short and long term. The alternative is

Re: Auto-transposition

2017-12-12 Thread Simon Albrecht
On 12.12.2017 20:30, Shevek wrote: The alternative is to use \relative {} but to use \resetRelativeOctave religiously before every phrase, even the first one in a block. I find that more natural for composing, personally. I find that this has the disadvantage of not checking the notes immediat

Re: Auto-transposition

2017-12-12 Thread David Wright
On Tue 12 Dec 2017 at 20:32:34 (+0100), Simon Albrecht wrote: > On 12.12.2017 20:30, Shevek wrote: > >The alternative is to use \relative {} but to use \resetRelativeOctave > >religiously before every phrase, even the first one in a block. I find that > >more natural for composing, personally. > >

Re: Question about the horizontal spacing

2017-12-12 Thread Kieren MacMillan
Hi David, > It works for me, attached. Unfortunately, that requires a per-instance adjustment. It would be nice (as the OP implies) to have a global setting. Cheers, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmi

Re: color lyrics text

2017-12-12 Thread MING TSANG
hi Simon, David, Peter and Ben: Thank you for your answer. Here is so many ways to color lyric text. I am wondering, if one method is better than the other. Thank you,Ming Here is the various method. \version "2.19.80"\language "english" \header {  title = "test to set lyric text in color"} global

Re: Auto-transposition

2017-12-12 Thread Shane Brandes
Frescobaldi has a neat little tool to convert from relative to absolute pitch. I prefer relative as a pitch entry for ease and speed. Kieran is correct relative pitch entry can cause headaches if you start doing manipulations on stuff. regards, Shane On Tue, Dec 12, 2017 at 5:48 PM, David Wright