Re: bookOutputName seems broken in 2.25.12

2024-02-29 Thread Werner LEMBERG

> I've tried both of the methods of naming an output file in the book
> environment.  \bookOutputSuffix works fine.

Please give complete examples – I can't reproduce the issue (with
current git).  I've tried

```
\book {
  \bookOutputName "Comin-Home-Baby_Tenor-1"

  { c'4 }
}
```

and

```
\book {
  \paper {
output-filename = "Comin-Home-Baby_Tenor-1"
  }

  { c'4 }
}
```

Both snippets produce file `Comin-Home-Baby_Tenor-1.pdf`, as expected.


Werner


Re: Lilypond and digital readers

2024-02-29 Thread Robert Garrigos
Thanks, Laurie. I never thought of having an adapted PDF for my reader (a 
remarkable), but based on your example, here it is what I’m doing right now. 
This is a different approach because I want to have also a normal PDF for 
printing, I have two book entries on my lilypond file, something like this:


%
%% REMARKABLE %%%
%

\book {
 \bookOutputSuffix "remarkable"
 \header {
   % titles
 }
 \score {
 % music score
   \layout {
 % layout settings
   }
 }

 \paper {
   #(set-paper-size '(cons (* 155 mm) (* 210 mm)))
   indent = 0\mm
   top-margin = #10
   bottom-margin = #0
   left-margin = #0
   right-margin = #0
   % other size settings
 }
}

%%%
% PDF %%%
%%%

\book {
 \header {
  % titles
 }
 \score {
   % music
   \layout {
 % layout settings
   }
 }
 \paper {
   set-paper-size = "a4"
   top-margin = 10
   left-margin = 15
   indent = 10
   % other size settings
 }
}

Of course, I use variables to add the music to the \score scope, so I don’t 
have to make changes in both books. 

Hope I might help someone.

Robert Garrigos

> El 24 febr. 2024, a les 1:51, Laurie Savage  va 
> escriure:
> 
> Hi,
> 
> I use a tablet for storing my lead sheets, most of which I prepare in 
> Lilypond. I have just stumbled on a trick I thought I'd share with you - 
> although it might be obvious to you, it wasn't to me. (Tip to Jamie Anderson 
> of the Get your sax together Youtube channel)
> 
> I use a Samsung Galaxy Tab A 10.1 and Mobile Sheets Pro. I use a paper block 
> that I store as "tabA" in an include file called "digital.ily"
> It looks like this:
> 
> tabA = \paper {
> %set the paper size to the screen dimensions 
> #(set-paper-size '(cons (* 13.5 cm) (* 21.7 cm)))
> 
> % Adjust according to taste   
> indent = 0\mm
> top-margin = #0
> bottom-margin = #0
> left-margin = #0
> right-margin = #0
> }
> 
> voila, combined with a sensible staff size I have a legible score that I 
> don't need reading glasses for.
> 
> Laurie Savage




Re: Volta spanner missing edge when using "|" as endRepeatType

2024-02-29 Thread Thomas Morley
Am Do., 29. Feb. 2024 um 07:53 Uhr schrieb Andy Bradford
:
>
> Hello,
>
> I want to place an interlude that  happens only the first time through a
> a section that has  a repeat and a second interlude  for the second time
> through. I don't want the repeat measure bar showing up in the middle of
> the piece, so  I set the endRepeatType  to "|", but when I  do that, the
> right edge of the volta spanner  loses the stright edge line. I've tried
> various combinations of bars to see if  I can get it to work but haven't
> succeeded so far.
>
> I also tried  just using a solid  line Text spanner but  couldn't find a
> way to get any text "inside" the spanner (only on the ends).
>
> Any clues on how this could be done?
>
> %%%
> \version "2.22.2"
>
> voltaprima = \markup { \text \italic { First time only } }
> voltaseconda = \markup { \text \italic { On repeat only } }
> \relative {
>   c''1
>   \repeat volta 2 {
>   c
>   \once \set Score.startRepeatType = "|"
>   \set Score.endRepeatType = "|" % or "||"
>   \set Score.repeatCommands = #(list (list 'volta voltaprima) 'start-repeat)
>   c4 b d e
>   \set Score.repeatCommands = #(list (list 'volta #f) (list 'volta 
> voltaseconda)
>  'end-repeat)
>   c b a b
>   \set Score.repeatCommands = #'((volta #f) end-repeat)
>   f'1
>   \set Score.endRepeatType = ":|."
>   e
>   }
>   \alternative {
> { d }
> { a' }
>   }
>   f \bar "|."
> }
> %%%
>
> Thanks,
>
> Andy
>
>
>
>

\allowVoltaHook = "|"
placed toplevel, should do the trick.

Cheers,
  Harm



installation

2024-02-29 Thread carsonmark
Hello,

 

I am installing Lilypond 2.24. It has been unzipped to my folder under
\users.

Frescobaldi 3.30 has been installed and opened to connect to Lilypond.

Going to preferences this appears:

 



 

This is not what is shown on the installation page
https://lilypond.org/doc/v2.24/Documentation/learning/graphical-setup-under-
windows

 

How should I proceed?

 

Thank you for your kind attention.

 

Mark



Re: Lilypond and digital readers

2024-02-29 Thread Kevin Cole
This is similar to something I learned to do from this list. Thank you,
list wizards.

I generate scores for both printing (paginated PDFs) and displaying on a
website generated by the Sphinx documentation system (unpaginated SVGs).
Sometimes, I want to regenerate ALL the scores. So I have a Bash script to
do the work and a command-line argument that determines which type  (PDF or
SVG) will be generated. I have two include scripts: svg.ily and pdf.ily
(which I keep in ~/.local/lib/lilypond/). In all of my Frescobaldi
templates, I have the lines:


% Use environment variable to decide if discrete pagination (PDF) or
% continuous pagination (SVG). Default to SVG if not defined.
%
pageBreaking = #(string-append (getenv "HOME") "/.local/lib/lilypond/" (if
(getenv "PAGE_BREAKING") (getenv "PAGE_BREAKING") "svg") ".ily")
\include \pageBreaking


Then, in my Bash scripts, I can have code like:

###
for source in $(find . -name "*.ly")
do
  PAGE_BREAKING=svg lilypond --svg $source
  # ... generate MP3 from MIDI, reduce SVG size, etc.
done
###

The two include files:

pdf.ily:
%
% PDF
% 8.5" x 11" (Letter) page size
%

\paper {
  #(include-special-characters)
  #(set-paper-size "letter")
  print-page-number = ##f
  ragged-last-bottom = ##t
}
%

svg.ily:
%%%
% Web SVG (Sphinx Cloud theme):
% One long continuous page
%

#(ly:set-option 'backend 'cairo)
\paper {
  #(include-special-characters)
  oddHeaderMarkup = \markup \null
  evenHeaderMarkup = \markup \null
  page-breaking = #ly:one-page-breaking

  #(define fonts
 (set-global-fonts
  #:roman "Open Sans"
  #:sans "Open Sans"
  #:typewriter "DejaVu Sans Mono"
  ; unnecessary if the staff size is default
  #:factor (/ staff-height pt 20)
  ))
}
%%%


Re: installation

2024-02-29 Thread Karlin High
On Thu, Feb 29, 2024 at 5:42 AM  wrote:

> This is not what is shown on the installation page
>
>
> https://lilypond.org/doc/v2.24/Documentation/learning/graphical-setup-under-windows
>
>
>
> How should I proceed?
>

Maybe the window size is hiding the "Edit" button described in the
documentation page.

Try the scroll bar circled in red below:

[image: image.png]
-- 
Karlin High
Missouri, USA


Re: extracting a single “vocal line” (including lyrics) from multiple variables

2024-02-29 Thread Simon Albrecht

Hi Kieren,

huge respect for the kind of projects you are doing :)

Answering these questions is difficult because they can depend a lot on 
the specifics of the music and any solution can become cumbersome 
because of only a little instance that doesn’t fit the schematic. A few 
thoughts:


On 27.02.24 15:05, Kieren MacMillan wrote:

In terms of efficiency (e.g., compilation time) and complexity (q.v., code 
maintenance) would it be better to:

1. \tag the various sections in question and then try to combine them (using 
\partcombine?) into a single vocal line; or


This could be preferable if you can delineate the sections well. Trying 
out \partcombine quickly made me avoid it until absolutely necessary, 
but maybe it becomes manageable with clever and experienced use of 
\partCombineApart and friends. In choral pieces, I often use a single 
variable that contains all the lyrics, tagged depending on who does and 
doesn’t use which part and then filtered in the score setup. I believe 
that it makes a key difference to use both \keepWithTag _and_ 
\removeWithTag like this:



text = \lyricmode {
  \tag A { on -- ly al -- to }
  \tag nA { ev’ -- ry -- one ex -- cept al -- to }
}

\score {
<<
%{ simultaneous music expression with everything for soprano part %}
\keepWithTag A \removeWithTag nA <<
  \variableThatContainsAltoNotes
  \addlyrics \text
>>
%{ likewise for other parts %}
>>
}
%%

(addlyrics only for brevity of the example)



2. \addQuote everything and then \quoteDuring the appropriate sections? n.b. I 
believe lyrics aren’t quoteable (right?)…


I haven’t tried quoting lyrics, but I’ve often used a hybrid approach: 
quotes in the music, lyrics managed with tags.


HTH, yours
Simon




Re: extracting a single “vocal line” (including lyrics) from multiple variables

2024-02-29 Thread Kieren MacMillan
Hi Simon,

> huge respect for the kind of projects you are doing :)

Thanks — I need all the [psychological] help I can get!  LOL

> Answering these questions is difficult because they can depend a lot on the 
> specifics of the music and any solution can become cumbersome because of only 
> a little instance that doesn’t fit the schematic.

Of course.

> A few thoughts:
> 
> Trying out \partcombine quickly made me avoid it until absolutely necessary, 
> but maybe it becomes manageable with clever and experienced use of 
> \partCombineApart and friends. In choral pieces, I often use a single 
> variable that contains all the lyrics, tagged depending on who does and 
> doesn’t use which part and then filtered in the score setup. I believe that 
> it makes a key difference to use both \keepWithTag _and_ \removeWithTag like 
> this:
> 
> 
> text = \lyricmode {
>   \tag A { on -- ly al -- to }
>   \tag nA { ev’ -- ry -- one ex -- cept al -- to }
> }

#mindblown

Why didn’t I think of using set theory?!
THANK YOU! That hint alone makes your response gold.

>> 2. \addQuote everything and then \quoteDuring the appropriate sections? n.b. 
>> I believe lyrics aren’t quoteable (right?)…
> I haven’t tried quoting lyrics, but I’ve often used a hybrid approach: quotes 
> in the music, lyrics managed with tags.

Right.

I didn’t see an issue/request for quoting lyrics, so I added one 
(https://gitlab.com/lilypond/lilypond/-/issues/6700) and we’ll see how the 
discussion goes.  :)

Thanks!
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: extracting a single “vocal line” (including lyrics) from multiple variables

2024-02-29 Thread David Kastrup
Simon Albrecht  writes:

> This could be preferable if you can delineate the sections
> well. Trying out \partcombine quickly made me avoid it until
> absolutely necessary, but maybe it becomes manageable with clever and
> experienced use of \partCombineApart and friends. In choral pieces, I
> often use a single variable that contains all the lyrics, tagged
> depending on who does and doesn’t use which part and then filtered in
> the score setup. I believe that it makes a key difference to use both
> \keepWithTag _and_ \removeWithTag like this:
>
> 
> text = \lyricmode {
>   \tag A { on -- ly al -- to }
>   \tag nA { ev’ -- ry -- one ex -- cept al -- to }
> }
>
> \score {
> <<
> %{ simultaneous music expression with everything for soprano part %}
> \keepWithTag A \removeWithTag nA <<
>   \variableThatContainsAltoNotes
>   \addlyrics \text
>>>

I'd rather use

\tagGroup alto,non-alto

\lyricmode {
  \tag alto { on -- ly al -- to }
  \tag non-alto { ev’ -- ry -- one ex -- cept al -- to }
}

\keepWithTag alto ...
\keepWithTag non-alto ...

But one would need to look at the rest to see whether this kind of tag
group would end up problematic.

-- 
David Kastrup



Re: installation

2024-02-29 Thread Knute Snortum
It looks like your Preferences window is too small.  I would click and hold
the lower right corner of the window and drag to the right and down to
resize it.

--
Knute Snortum



On Thu, Feb 29, 2024 at 3:42 AM  wrote:

> Hello,
>
>
>
> I am installing Lilypond 2.24. It has been unzipped to my folder under
> \users.
>
> Frescobaldi 3.30 has been installed and opened to connect to Lilypond.
>
> Going to preferences this appears:
>
>
>
>
>
> This is not what is shown on the installation page
>
> https://lilypond.org/doc/v2.24/Documentation/learning/graphical-setup-under-windows
>
>
>
> How should I proceed?
>
>
>
> Thank you for your kind attention.
>
>
>
> Mark
>


Re: Volta spanner missing edge when using "|" as endRepeatType

2024-02-29 Thread Andy Bradford
Thus said Thomas Morley on Thu, 29 Feb 2024 10:47:06 +0100:

> \allowVoltaHook = "|"
> placed toplevel, should do the trick.

Thanks, for the archives, the correct syntax is (without the "="):

\allowVoltaHook "|"

Works great.

Andy




Make D.S. and Coda objects RED

2024-02-29 Thread gehentogo
Hello,

A friend did an arrangement in MuseScore in which he made the D.S.
symbols red, which I think is a great idea for our band.

I found how to color certain objects, such as with:

  \override Staff.TimeSignature.color = #(rgb-color 1 0 0)

but I have yet to find the names of the objects I'm hoping to change.

Does anyone have an idea?

Thank you



Re: Make D.S. and Coda objects RED

2024-02-29 Thread Werner LEMBERG


> I found how to color certain objects, such as with:
> 
>   \override Staff.TimeSignature.color = #(rgb-color 1 0 0)
> 
> but I have yet to find the names of the objects I'm hoping to change.

Have a look at

  https://lilypond.org/doc/v2.25/Documentation/ly-examples/visualindex.pdf


Werner



Re: Make D.S. and Coda objects RED

2024-02-29 Thread Jeff Kopmanis
\mark \markup { \with-color #red "Whatever" }

This is what I've been using for a few months now...works great.
Basically, use the with-color modifier in whatever markup expression you
have.

On Thu, Feb 29, 2024 at 12:12 PM  wrote:

> Hello,
>
> A friend did an arrangement in MuseScore in which he made the D.S.
> symbols red, which I think is a great idea for our band.
>
> I found how to color certain objects, such as with:
>
>   \override Staff.TimeSignature.color = #(rgb-color 1 0 0)
>
> but I have yet to find the names of the objects I'm hoping to change.
>
> Does anyone have an idea?
>
> Thank you
>
>

-- 
*Jeff Kopmanis*
Medium: https://kopmanis.medium.com
GLAAC: https://www.glaac.org/
University Lowbrow Astronomers: http://umich.edu/~lowbrows
Orange Can Astronomy: https://www.facebook.com/orangecanastronomy/

** Go Green and leave this email on the Screen! **


RE: installation

2024-02-29 Thread carsonmark
Kalin High,

 

Exactly! Thank you.

Now why didn’t I realize that a small gray horizontal line was some type of 
scroll bar?

 

Mark

 

From: Karlin High  
Sent: Thursday, February 29, 2024 6:05 AM
To: carsonm...@ca.rr.com
Cc: lilypond-user 
Subject: Re: installation

 

 

On Thu, Feb 29, 2024 at 5:42 AM mailto:carsonm...@ca.rr.com> > wrote:

This is not what is shown on the installation page

https://lilypond.org/doc/v2.24/Documentation/learning/graphical-setup-under-windows

 

How should I proceed?

 

Maybe the window size is hiding the "Edit" button described in the 
documentation page.

 

Try the scroll bar circled in red below:


 



-- 

Karlin High

Missouri, USA



RE: installation

2024-02-29 Thread carsonmark
Knute Snortum

 

Perhaps. Got installation complete with Karlin’s suggestion.
Thank you for your reply,

 

Mark

 

From: Knute Snortum  
Sent: Thursday, February 29, 2024 7:26 AM
To: carsonm...@ca.rr.com
Cc: lilypond-user 
Subject: Re: installation

 

It looks like your Preferences window is too small.  I would click and hold the 
lower right corner of the window and drag to the right and down to resize it.


 

--

Knute Snortum

 

 

 

On Thu, Feb 29, 2024 at 3:42 AM mailto:carsonm...@ca.rr.com> > wrote:

Hello,

 

I am installing Lilypond 2.24. It has been unzipped to my folder under \users.

Frescobaldi 3.30 has been installed and opened to connect to Lilypond.

Going to preferences this appears:

 



 

This is not what is shown on the installation page
https://lilypond.org/doc/v2.24/Documentation/learning/graphical-setup-under-windows

 

How should I proceed?

 

Thank you for your kind attention.

 

Mark



Re: bookOutputName seems broken in 2.25.12

2024-02-29 Thread Laurie Savage
Thanks for your help Werner. One of my include files contained a \paper{
... } block. Once I rearranged the order of commands, putting the
\bookOutputName after the functions provided by the include file everything
went as expected.

Laurie

On Thu, 29 Feb 2024 at 19:11, Werner LEMBERG  wrote:

>
> > I've tried both of the methods of naming an output file in the book
> > environment.  \bookOutputSuffix works fine.
>
> Please give complete examples – I can't reproduce the issue (with
> current git).  I've tried
>
> ```
> \book {
>   \bookOutputName "Comin-Home-Baby_Tenor-1"
>
>   { c'4 }
> }
> ```
>
> and
>
> ```
> \book {
>   \paper {
> output-filename = "Comin-Home-Baby_Tenor-1"
>   }
>
>   { c'4 }
> }
> ```
>
> Both snippets produce file `Comin-Home-Baby_Tenor-1.pdf`, as expected.
>
>
> Werner
>


Re: Lilypond and digital readers

2024-02-29 Thread Laurie Savage
Likewise, my setup includes \paper{} and \layout{} for printing and screen
display.

Laurie Savage
https://www.queensofthewest.com/

On Fri, 1 Mar 2024 at 00:18, Kevin Cole  wrote:

> This is similar to something I learned to do from this list. Thank you,
> list wizards.
>
> I generate scores for both printing (paginated PDFs) and displaying on a
> website generated by the Sphinx documentation system (unpaginated SVGs).
> Sometimes, I want to regenerate ALL the scores. So I have a Bash script to
> do the work and a command-line argument that determines which type  (PDF or
> SVG) will be generated. I have two include scripts: svg.ily and pdf.ily
> (which I keep in ~/.local/lib/lilypond/). In all of my Frescobaldi
> templates, I have the lines:
>
> 
> % Use environment variable to decide if discrete pagination (PDF) or
> % continuous pagination (SVG). Default to SVG if not defined.
> %
> pageBreaking = #(string-append (getenv "HOME") "/.local/lib/lilypond/" (if
> (getenv "PAGE_BREAKING") (getenv "PAGE_BREAKING") "svg") ".ily")
> \include \pageBreaking
> 
>
> Then, in my Bash scripts, I can have code like:
>
> ###
> for source in $(find . -name "*.ly")
> do
>   PAGE_BREAKING=svg lilypond --svg $source
>   # ... generate MP3 from MIDI, reduce SVG size, etc.
> done
> ###
>
> The two include files:
>
> pdf.ily:
> %
> % PDF
> % 8.5" x 11" (Letter) page size
> %
>
> \paper {
>   #(include-special-characters)
>   #(set-paper-size "letter")
>   print-page-number = ##f
>   ragged-last-bottom = ##t
> }
> %
>
> svg.ily:
> %%%
> % Web SVG (Sphinx Cloud theme):
> % One long continuous page
> %
>
> #(ly:set-option 'backend 'cairo)
> \paper {
>   #(include-special-characters)
>   oddHeaderMarkup = \markup \null
>   evenHeaderMarkup = \markup \null
>   page-breaking = #ly:one-page-breaking
>
>   #(define fonts
>  (set-global-fonts
>   #:roman "Open Sans"
>   #:sans "Open Sans"
>   #:typewriter "DejaVu Sans Mono"
>   ; unnecessary if the staff size is default
>   #:factor (/ staff-height pt 20)
>   ))
> }
> %%%
>
>


Re: markup for circular bowing

2024-02-29 Thread Trevor Bača
Hi Orm,

More examples here:

https://github.com/trevorbaca/baca/blob/main/baca/scm/baca-circle-bow-markups.ily

HTH,

Trevor.

On Wed, Feb 14, 2024 at 4:59 AM Orm Finnendahl <
orm.finnend...@selma.hfmdk-frankfurt.de> wrote:

> Hi,
>
>  I'd like to make a sign for circular bowing like in the attached
> png. The example was done using an epsfile, but unfortunately that
> doesn't export to svg, which I need. So it should be done using
> lilypond's builtin markup commands (or scheme code). Can someone point
> me to examples to do circular arcs with attached arrows (can also be
> scheme code)?
>
> I couldn't find anything similar in the docs/internet.
>
> --
> Orm
>


-- 
Trevor Bača
www.trevorbaca.com
soundcloud.com/trevorbaca


Re: Make D.S. and Coda objects RED

2024-02-29 Thread Laurie Savage
I wrote this little block; feel free to use it. I have started to work out
the Internals Reference document (IR), it's slowly becoming useful!

jazzTweaks = {
  \compressEmptyMeasures
  \override MultiMeasureRest.expand-limit = #2
  \override Score.CodaMark.color = "red"
  \override Score.SegnoMark.color = "red"
  \override Score.SectionLabel.color = "red"
  \override Score.RehearsalMark.color = "red"
  \override Score.JumpScript.color = "red"
}
Laurie Savage
https://www.queensofthewest.com/

On Fri, 1 Mar 2024 at 04:15, Jeff Kopmanis  wrote:

> \mark \markup { \with-color #red "Whatever" }
>
> This is what I've been using for a few months now...works great.
> Basically, use the with-color modifier in whatever markup expression you
> have.
>
> On Thu, Feb 29, 2024 at 12:12 PM  wrote:
>
>> Hello,
>>
>> A friend did an arrangement in MuseScore in which he made the D.S.
>> symbols red, which I think is a great idea for our band.
>>
>> I found how to color certain objects, such as with:
>>
>>   \override Staff.TimeSignature.color = #(rgb-color 1 0 0)
>>
>> but I have yet to find the names of the objects I'm hoping to change.
>>
>> Does anyone have an idea?
>>
>> Thank you
>>
>>
>
> --
> *Jeff Kopmanis*
> Medium: https://kopmanis.medium.com
> GLAAC: https://www.glaac.org/
> University Lowbrow Astronomers: http://umich.edu/~lowbrows
> Orange Can Astronomy: https://www.facebook.com/orangecanastronomy/
>
> ** Go Green and leave this email on the Screen! **
>