Jérôme Plût | 27 Jul 19:41 2015
Picon

Changing staff size

I saw in the documentation how to change the size of a single staff
(such as the solist part in a piano accompaniment score) with the
\with command. However, since I might need to do this for several
scores, I would like to factor out the \with snippet in a macro.

My question is therefore: is there a simple way to write a macro such
that
\new Staff \mymacro << ... >>
(or \new Staff << \mymacro ... >>)
would be equivalent to
\new Staff \with { [some properties set] }

 ? (I know about magnifyStaff in 2.19, but I only have 2.18 here).

Also two, maybe-related, questions:
 - what does the \with block do precisely? The index link for
   \with sends to

http://lilypond.org/doc/v2.18/Documentation/notation/modifying-context-plug_002dins#index-_005cwith-1 ,
   which gives a few examples, but not the definition, of \with.

 - as I understand it, changing only fontSize and
   StaffSymbol.staff-space only reduces a single staff, but not the
   inter-staff symbol. I may access this via the StaffGrouper object,
   but what if the piano accompanies two instruments ? Say:
\new StaffGroup <<
  \new Staff \oboe
  \new Staff \clarinet
  \new PianoStaff << \new Staff \righthand \new Staff \lefthand >>
>>
(Continue reading)

Tim Reeves | 27 Jul 18:07 2015

Re: sharping naturals


Message: 1
Date: Sat, 25 Jul 2015 12:07:19 +0200
From: David Kastrup <dak <at> gnu.org>
To: Wols Lists <antlists <at> youngman.org.uk>
Cc: lilypond-user <at> gnu.org
Subject: Re: sharping naturals
Message-ID: <87wpxok0tk.fsf <at> fencepost.gnu.org>
Content-Type: text/plain

Wols Lists <antlists <at> youngman.org.uk> writes:

> On 25/07/15 08:04, David Kastrup wrote:
>> If we wanted to support "natural English note entry", it would become
>> LilyPond's problem.
>
> As an irrelevant aside :-)
>
> Throwing another little spanner in the works - about what words mean ...
>
> I really hate it when people say "English", and mean "American" ...
>
> (yes, we use the same names for pitch, but we do not use the same names
> for length ...)

Because UK went metric and the US loves the royals so much they stuck
with Imperial?

At any rate, Americans tend to write C4 instead of c' so I am not sure
why you are objecting against my characterization.

--
David Kastrup



---------------------------------------------------

I think he's referring to crotchets and quavers vs. quarter notes and eighth notes, but that doesn't enter into the Lilypond language directly, so it's of no consequence.


Tim
_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Paul Scott | 27 Jul 16:57 2015

tag and cue conflict?

Is my syntax wrong?:

This works until I add the line:
  \tag #'score { R1 } % adding this line kills the cue in partA
which is intended to remove informational cues from the score

TIA for any help,

Paul 

\version "2.19.23"

partA = \relative{ R1 \cueDuring qb #up R1 d' }

partB = \relative{
  \tag #'parts { \cueDuring qc #up R1 }
  \tag #'score { R1 } % adding this line kills the cue in partA
  g'2 a b c
}
\addQuote qb \partB

partC = \relative{
  d'1 e f 
}
\addQuote qc \partC

\score{ \new Staff \new Voice \keepWithTag #'parts \partA }
Avner Dorman | 25 Jul 18:03 2015
Picon

German Hyphenation

Does anyone have experience Hyphenating German text with the Frescobaldi tool?

I don't see German in the list of languages and I'm not sure how to add it. 

Any suggestions would be appreciated!

All the best,
Avner
Socrates Leptos | 25 Jul 16:45 2015
Picon

Fret Diagrams in Open Office Writer

Dear lilypond users,

I am new to lilypond so I half expect my question to be so ridiculous... I 
hope that you believe me when I say I made every effort within my still 
confused mind to solve this issue to no avail. Here goes...

In Frescobaldi, I input:

\version "2.18.2"
\markup \fret-diagram #"s:3;6-x;5-x;4-o;3-2;2-3;1-2;"

and I get a perfect D major fret diagram.

However when I copy the exact same command in Open Office Writer (using 
OOolilypond), I get the beginning of a staff with a treble clef and a time 
signature.

Could anyone help me? I tried upgrading Open Office but it didn't help.

Thank you in advance.

Socrates
Juan Cristóbal Cerrillo | 25 Jul 08:12 2015
Picon

nested tuplet problem

Hello everyone,

I recently began working with Lilypond and am very excited about the possibilities.
I have however encountered a problem I can't seem to work around and wonder if this is a bug.

If you have a nested tuplet that begins as the first event of the enveloping tuplet, any options of direction
or placement for the larger tuplet are transferred to the enclosed tuplet as well.

A simple example: the 5 should be up, and the 3 down, but both are down.

\version "2.18.2"
{ \tupletUp \tuplet 5/4 { \tupletDown \tuplet 3/4 {c' c' c'} c4}}

This however, works as it should:
{ \tupletUp \tuplet 5/4 { c4 \tupletDown \tuplet 3/4 {c' c' c'}}}

Am I doing something wrong or is there a workaround for this issue?

all best,

jc
Beda Szukics | 25 Jul 08:06 2015
Picon

Lilypond and LaTeX - margins

Hello all

I try to print a songbook with gregorian and modern songs. For the
gregorian part I use gregorio, for the modern songs I use lilypond.

The main document is a (Lua)LaTeX-file that has text and scores in it.

My example (Versuch.lytex):

====
\documentclass[a5paper,pagesize,DIV=13,12pt]{scrbook}
\usepackage{fontspec}
\setmainfont{Cambria}
\usepackage[german]{babel}
\usepackage{gregoriotex} % for gregorio score inclusion

\begin{document}
\includescore{Gregorianum}

\lilypondfile{Tescht.ly}
\end{document}
===

with Gregorianum.gabc:

===
name:;
%%
(c3) La(h) la(i) la(h) %x10
la(i) la(h) la(i) la(h) la(i) la(h) la(i) la(h) la(i) la(h) la(i) la(h)
la(i) la(h) la(i) la(h) la(i) la(h)
===

and Tescht.ly:

===
\version "2.18.0"
\header {
  title=Tescht
}
\relative c''{
   \key g\major \time 4/4
   g4 g g g | a a a a |
   g g g g | a a a a|
   g g g g | a a a a \bar "|."
}
\addlyrics {
  La la la la lu lu lu lu
  le le le le li li li li
  lo lo lo lo lä lä lä lä
}
===

lilypond-book --pdf Versuch.lytex tells me:

lilypond-book.py: warning: Unable to auto-detect default settings:

lilypond-book.py: warning: cannot detect textwidth from LaTeX

and the song "Tescht" shows no respect for the margins :-(

So I used the package layouts.sty to determine the length of my
gregorian score lines and adapted Tescht.ly with

\paper{
line-width = 323.92374\pt
left-margin = 0\pt
}

That gave me lines of Tescht that were equal to the lines of Gregorianum
but the Tescht score is still printed about 3 mm to the left.

Why? What can I do to suppress the right margin, that lilypond is creating?

More general: Is there a way to tell the lilypond-part to adapt to the
measures of the LaTeX-file?

Greetings            Beda

_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Paul Morris | 24 Jul 06:30 2015

Centering a stencil on another stencil

After I didn’t find anything for it in the LSR or mailing list, I came up with a scheme procedure for centering one stencil on another, on either the X or Y axis.  I uploaded it to the LSR and I’m posting it here for future seekers of centered stencils.

http://lsr.di.unimi.it/LSR/Item?id=1009

Cheers,
-Paul


%%%%%%%%%%%%%

\version "2.18.2"

#(define (center-stencil-on-stencil axis stil-a stil-b)
   "Return a copy of stencil <at> var{stil-b} that has been 
    moved so it is centered on stencil <at> var{stil-a} on 
    <at> var{axis}. <at> var{axis} is 0 for X axis, 1 for Y axis."
   (let* ((ext-a (ly:stencil-extent stil-a axis))
          (ext-b (ly:stencil-extent stil-b axis))
          (width-a (- (cdr ext-a) (car ext-a)))
          (width-b (- (cdr ext-b) (car ext-b)))
          (width-diff (- width-a width-b))
          (position-diff (- (car ext-a) (car ext-b)))
          (offset (+ position-diff (/ width-diff 2)))
          (new-stil-b (ly:stencil-translate-axis stil-b offset axis)))
     new-stil-b))

%%%%%%%%%%%%%

circle = #(make-circle-stencil 3 0.4 #f)

square =
#(stencil-with-color
  (make-connected-path-stencil
   '((0 0) (3 0) (3 3) (0 3) (0 0))
   0.4 1 1 #f #f)
  blue)

\markup \line {
  \stencil #(ly:stencil-add circle square)
  "   "
  \stencil #(ly:stencil-add circle (center-stencil-on-stencil X circle square))
  "   "
  \stencil #(ly:stencil-add circle (center-stencil-on-stencil Y circle square))
  "   "
  \stencil #(ly:stencil-add circle (center-stencil-on-stencil Y circle
                                     (center-stencil-on-stencil X circle square)))
}

%%%%%%%%%%%%%


_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Joshua Nichols | 24 Jul 03:29 2015
Picon

difficult question to ask about spacing

I'm thinking about making some piano music that has a very distinct section break. I'm not sure how to describe it, so I'm sure I've missed it in the manuals somewhere.

Anywho, I'm trying to break a system mid line and re start another one on the same line with a small amount of space between where the last one let off. I'm also trying to do it in a vocal context with lyrics.

Does this make sense? Not sure if I am, and I can draw a picture if you all would like. Thanks in advance.

​Sincerely,

Josh
_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Brother Gabriel-Marie | 23 Jul 22:51 2015

header below the score

How can I display a "header" below the score?

I want some text to tell the reader to repeat the chorus after each verse.

I've read through this page and tried various things:
http://lilypond.org/doc/v2.18/Documentation/notation/custom-titles-headers-and-footers

So I know how to add headers and subtitles above the score, but not below

\markup \italic "Repeat Chorus again "



_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Brother Gabriel-Marie | 23 Jul 19:02 2015

hyphenation tool

Funny, the hyphenation tool does not know some words like:
  • Eucharistic
  • Mary
  • Crusader

Is there a way to edit the dictionary in Frescobaldi?


American
Eu -- charis -- tic Cru -- saders we come here now,

British
Euchar -- ist -- ic Cru -- saders we come here now,

American
 Cru -- sad -- er hearts are yours, O Mary! Cru -- sad -- er hearts are yours, O Mary!

British
 Cru -- sader hearts are yours, O Mary! Cru -- sader hearts are yours, O Mary!
_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Gmane