Re: LilyPond 2.23.8 released

2022-04-26 Thread Joram Noeck

Hi,

will there be a .sh file like for older releases?
https://lilypond.org/download/binaries/linux-64/

The Download page https://lilypond.org/development.html links to
https://gitlab.com/lilypond/lilypond/-/releases/v2.23.8/downloads/lilypond-2.23.8-linux-x86_64.tar.gz
whereas it used to link to an installer (.sh) in the past.

Best,
Joram



Re: Persian accidentals (koron and sori)

2021-12-06 Thread Noeck

Dear Werner,

I am all for it and know nothing about Persian music.

One comment: When looking at Fig. 11 in your PDF, two suggestions came
to my mind. The handwritten accidentials show some less sharp edges
because the ink is flowing in the inner angles of the glyph. As you
already take the liberty to match the style of classical accidentials,
how about avoiding some sharp inner  angles by

1. filling the tiny white triangle in the sharp-like glyph (I am less
convinced)

2. making the right inner angle round (looks good to me)

I have two images attached where the additinal ink is painted in red and
in black.

Of course, this is just a suggestion.

Joram






I know, thanks.  Here you can find some glyph examples

   https://corp.unicode.org/~roozbeh/sori-koron.pdf


 Werner



Re: header material too close to staff

2021-02-01 Thread Noeck
Hi David,

you are looking for markup-system-spacing:

\paper {
  markup-system-spacing.basic-distance = #10
}

Flexible vertical spacing \paper variables:
http://lilypond.org/doc/v2.20/Documentation/notation/flexible-vertical-spacing-paper-variables

Cheat Sheet:
https://joramberger.de/files/LilypondSpacing.pdf

Best,
Joram



Re: crescendi/decrescendi on one note in Lilypond? and how does a pianist do this?

2021-01-30 Thread Noeck
>   How does a pianist do this?

Scores can describe what a player should think or feel even though the
note fades on its own in this case.

>   And, even more importantly, how to engrave this?

You can search the list archives for "\after" a small function that can
make it easier to do that (easier than manually create two voices which
also works).

Cheers,
Joram



New Musescore

2021-01-22 Thread Noeck
FYI: The new MuseScore version 3.6 comes with a new default music font
and text font.

https://musescore.org/de/node/315523

There is a sample image in this article
https://gnulinux.ch/neue-version-von-musescore

Cheers,
Joram



Re: Why does -dbackend=svg -dcrop remove system-system-spacing?

2021-01-12 Thread Noeck
Hi,

many years ago, I asked for a -dcrop options for SVG for a very similar
usecase: adding SVG images to a website (a markdown extension in
particular). It was then implemented some time later and I was happy
with it (with my single line scores). It might be that Étienne Beaulé
implemented it, but that is just a guess from a distant memory - git
could surely tell.

I am writing that here, because I’d like to add that as far as I
remember, the intention for -dcrop was like Trevor explained and the
removal of inter-system white-space seems like an accident to me.

Cheers,
Joram



Re: Scores of Beauty

2020-12-19 Thread Noeck
I’ve made the same experience with Wordpress. I’ve contacted Urs some
weeks ago about this. And he pointed me to the admin who is not Urs and
whom I contacted also. So he should know. Knute said he had other
issues. So I guess, currently we cannot do anything.

I might post another blog entry at some time and others perhaps, too.
There were good articles on it. So I think it would be definitely worth
it getting that site up again, whenever that is possible. And it shows
that there should always be more than one admin.

Joram



Re: Margin between Header and Music

2020-11-23 Thread Noeck
Dear Marc,

it's markup-system.minimum-distance

(or basic-distance or padding – depending on what want)

https://joramberger.de/files/LilypondSpacing.pdf

HTH
Joram



Re: Spreadsheet - Python – Ly

2020-11-20 Thread Noeck
Dear Max,

what you describe sounds somewhat similar to gridly:
https://github.com/openlilylib/gridly

I have never been in need for such an approach. Which is why I don't
know enough about gridly to describe it properly. And it is not about
spreadsheets just the time/voice-segmentation sounds similar to me. But
perhaps you can have a look at it.

More links:
http://lilypond.1069038.n5.nabble.com/Gridly-simple-Segmented-Grid-td171558.html#a171704
http://web.archive.org/web/20191223132852/http://lilypondblog.org/2014/10/segment-grid/

But implementing a conversion from spreadsheet to a Python list of lists
is pretty straight forward, too. I would use pandas or openpyxl to read
the spreadsheet. Sth. like

import pandas as pd
pd.read_excel(filename).values.tolist()

I have doubts that I myself would like to edit it in a spreadsheet - I
just appreciate the text based approach and git too much to do that.

HTH
Joram



Re: PDF not shown in Frescobaldi

2020-06-16 Thread Noeck



Am 16.06.20 um 14:13 schrieb Federico Bruni:
> IMO Frescobaldi package should not have lilypond as dependency

To be more precise: frescobaldi "recommends" and "enhances" lilypond.
But with default apt settings that means, installing frescobaldi will
install lilypond, too.

Joram




Re: PDF not shown in Frescobaldi

2020-06-16 Thread Noeck
> That sounds very reasonable, given the massive Qt changes we had since
> 2015. As a service to everyone you might get in touch with the Ubuntu
> package maintainers (both python3-poppler-qt and frescobaldi, if
> they're different), file a bug and tell them that the packages must be
> kept in sync.

tl;dr: problem solved with own build of python3-poppler-qt5


I build the python3-poppler-qt5 code according to the wiki and it works
now with Fresobaldi 3.1.2 from github.

Ubuntu provides a consistent (yet very old) combination of Frescobalid
3.0.0 and python3-poppler-qt5 0.24.2. So can’t see a bug on Ubuntu’s
side. Even though it is a pity that they will ship this old version
until 2025 with an LTS-update only in 2022.

As I wanted to use a new Frescobaldi (3.1.2), I had to follow the wiki
and build python3-poppler-qt5 0.75.0 myself. This combination works now.

By the way, one of several reasons to my own Frescobaldi was that the
version from the package repository depends on lilypond which depends on
python2 as the only application on my system. (I know, I could instruct
apt to ignore it and the lilypond installer also ships with python2).

Cheers,
Joram



Re: PDF not shown in Frescobaldi

2020-06-16 Thread Noeck


> Well, the *package* is not by Wilbert, which may be the problem. The
> issue is that the package has to be built against exactly the correct
> Qt/SIP version used in the OS and Frescobaldi. It seems that this is an
> issue that occasionally pops up in distributions.

Well not the package, but the code. I looked at the github page¹ and it
seems that the Ubuntu package (0.24.2 from 2015) is very old compared to
recent releases on github (0.75.0 from 2019). Should I use 0.75.0 instead?

¹: https://github.com/frescobaldi/python-poppler-qt5/releases

I will try and follow your building-python-poppler-qt5-from-source link
later today.

Cheers,
Joram



Re: PDF not shown in Frescobaldi

2020-06-16 Thread Noeck



Am 16.06.20 um 10:06 schrieb Urs Liska:
> This may well be true, but the traceback looks like this one:
> https://github.com/frescobaldi/frescobaldi/wiki/Run-Frescobaldi-3-on-Linux#workaround-building-python-poppler-qt5-from-source
> and
> https://github.com/frescobaldi/frescobaldi/issues/838

This explains the missing icon and how to add it to the application
menu. But for the music view I am still a bit at a loss.

> I wonder if it's still possible today to have that problem with Linux
> packages. What distribution/desktop do you use exactly?

I use the latest Ubuntu 20.04 LTS with the default Gnome desktop.
python3-poppler-qt5 is 0.24.2-3build7 (I did not know that this package
is also by Wilbert Berendsen).

https://packages.ubuntu.com/focal/python3-poppler-qt5

Cheers,
Joram



Re: PDF not shown in Frescobaldi

2020-06-16 Thread Noeck
Hi Urs,

Am 16.06.20 um 00:37 schrieb Urs Liska:

> Rhat diesn't seem too plausible, it looks more like a dependency issue.

I looked at the dependencies of the frescobaldi package and now
installed python3-poppler-qt5. Now Frescobaldi crashes at startup (see
traceback below).

> What about the Tools menu? Can you manually open/close an (even empty) Music 
> View from there? If so, what does it look like?

The music view is there, it is empty (gray). The tools menu looks normal
and I can choose the music view there and also deselect it. The SVG view
works and shows the document (if I compile it to SVG). The PDF-document
drop down in the symbols tool bar is gray and empty.

One other piece of information: I get this warning when starting
frescobaldi in the terminal:

> Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use 
> QT_QPA_PLATFORM=wayland to run on Wayland anyway.

And the application has no icon in the Gnome menu. Could it be a Wayland
issue? Using the second variable does not change anything obvious.

Cheers
Joram


Here is the traceback with python3-poppler-qt5 installed:

> Traceback (most recent call last):
>   File "frescobaldi-3.1.2/frescobaldi_app/plugin.py", line 79, in instance
> return _instances[cls][obj]
>   File "/usr/lib/python3.8/weakref.py", line 383, in __getitem__
> return self.data[ref(key)]
> KeyError: 
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "frescobaldi", line 28, in 
> main.main() # Parse command line, create windows etc
>   File "frescobaldi-3.1.2/frescobaldi_app/main.py", line 210, in main
> win = mainwindow.MainWindow()
>   File "frescobaldi-3.1.2/frescobaldi_app/mainwindow.py", line 129, in 
> __init__
> self.createMenus()
>   File "frescobaldi-3.1.2/frescobaldi_app/mainwindow.py", line 1105, in 
> createMenus
> menu.createMenus(self)
>   File "frescobaldi-3.1.2/frescobaldi_app/menu.py", line 61, in createMenus
> m.addMenu(menu_file(mainwindow))
>   File "frescobaldi-3.1.2/frescobaldi_app/menu.py", line 95, in menu_file
> m.addMenu(snippet.menu.TemplateMenu(mainwindow))
>   File "frescobaldi-3.1.2/frescobaldi_app/snippet/menu.py", line 146, in 
> __init__
> self.addAction(self.tool().actionCollection.templates_manage)
>   File "frescobaldi-3.1.2/frescobaldi_app/snippet/menu.py", line 58, in tool
> return panelmanager.manager(self.mainwindow()).snippettool
>   File "frescobaldi-3.1.2/frescobaldi_app/panelmanager.py", line 38, in 
> manager
> return PanelManager.instance(mainwindow)
>   File "frescobaldi-3.1.2/frescobaldi_app/plugin.py", line 84, in instance
> result.__init__(obj)
>   File "frescobaldi-3.1.2/frescobaldi_app/panelmanager.py", line 70, in 
> __init__
> self.loadPanel("musicview.MusicViewPanel", "viewers")
>   File "frescobaldi-3.1.2/frescobaldi_app/panelmanager.py", line 107, in 
> loadPanel
> __import__(module_name)
>   File "frescobaldi-3.1.2/frescobaldi_app/musicview/__init__.py", line 52, in 
> 
> import pagedview
>   File "frescobaldi-3.1.2/frescobaldi_app/pagedview.py", line 36, in 
> import popplerqt5
> ValueError: PyCapsule_GetPointer called with incorrect name





Re: PDF not shown in Frescobaldi

2020-06-15 Thread Noeck
> Are you using \bookOutputName / \bookOutputSuffix for controlling the
> names of the pdf files?

No. The PDF never appears, even with the most basic input like:

\version "2.20.0"

{ a }

I guess, the problem is related to the fact that I did not install
Frescobaldi properly but just run the Python file. But starting the
installed version does not open up Frescobaldi at all...

Joram



PDF not shown in Frescobaldi

2020-06-14 Thread Noeck
Hi,

when I compile a file with Frescobaldi, lilypond is invoked and creates
a PDF in the same folder as it should. But Frescobaldi does not show it.
When I go to Tools > Directories > Open current folder, I can open the
PDF there. It worked correctly with Frescobaldi 3.0.0 from the package repo.

Frescobaldi 3.1.2 downloaded from https://frescobaldi.org
(not installed via package manager on Linux)
I run it with this command:

python3 ~/frescobaldi-3.1.2/frescobaldi

Do you have any idea where the music view is gone?

Cheers,
Joram



Re: cello extended position fingering

2020-06-14 Thread Noeck
Hi Gleb,

when I asked a similar question in April, Harm replied with this code:

https://lists.gnu.org/archive/html/lilypond-user/2020-04/msg00061.html

Best,
Joram



Re: vertical spacing - distance staff and group

2020-05-26 Thread Noeck
Dear Hans van Eck,

you can add this to the \with block of your altoSaxPart:

\override VerticalAxisGroup.default-staff-staff-spacing.basic-distance = #30

The following overview could have helped you to find the right command:

https://joramberger.de/files/LilypondSpacing.pdf

Best,
Joram



Re: Chordname - fret-diagram line - in different order

2020-05-04 Thread Noeck
Hi Rita,

you can put the chord names below the fret-boards:

\version "2.20.0"

chrd = \chordmode { a1 c1 }
<<
  \new FretBoards \chrd
  \new ChordNames \chrd
  \chrd
>>

By the way, in the second word of your lyrics, a space is missing and
you can see the double hyphen in the image. It should be

  ha -- lá -- lo -- san

instead of

  ha --lá -- lo -- san.

Best,
Joram



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: 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 fact that GUB runs with
python2 should not result a Debian or Ubuntu deb which requires python2,
should it?

Joram



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 least as far as the user is concerned).
Is that wrong, does 2.20 still require python2?
And 2.21?

Cheers,
Joram



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-25 Thread Noeck
Hi Ignacio,

it is better to send a minimal working example (MWE) instead of
screenshots. Here is one. This should work:

\version "2.20.0"

\markup {
  \override #'(font-name . "Ubuntu Thin") "Test"
}

As you are using Frescobaldi (I hope a recent version), you can search
for the fonts this way:

Tools > Document fonts

The name there should be exactly what you can use in the code above.
If that is not the case at your end, please report back with exactly the
code you use.

Cheers,
Joram



Re: Mac mit Catalina

2020-04-23 Thread Noeck
Hallo,

das hier hat schon manchen mit Catalina geholfen
(this one did it for some users):
https://lists.gnu.org/archive/html/lilypond-user/2019-11/msg00295.html

Es gab schon einige Fragen dazu, ich habe sie aber nicht so genau
verfolgt, weil ich keinen Mac habe:
https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=catalina=Search=lilypond-user

Ich hoffe, da ist eine Lösung dabei.
I hope you find a solution in the links above or perhaps other users on
this list with a Mac know more about the current status.

Cheers,
Joram


PS: Während hier auf der Liste zwar viele deutschsprachige Nutzer
unterwegs sind, erhöht eine Mail auf Englisch die Chancen auf eine Antwort.

PPS: Solche Anfragen sind auf der lilypond-user Liste besser aufgehoben.


Quoting the original mail because of cross-posting to lilypond-user:

> Hallo zusammen,
>
> seid dem neuen Update auf dem Mac auf Catalina (10.15.3) bringt er eine 
> Fehlermeldung beim Versuch LilyPond zu öffnen.
>
>
> Gibt es für dieses Problem bald eine Lösung oder hab ich Pech gehabt?
>
> Freundliche Grüße
> Kathrin Schlecht




Re: Equal space between all notes

2020-04-23 Thread Noeck
Am 23.04.20 um 18:33 schrieb Kieren MacMillan:
> I think your best bet is packed-spacing:

Which is extremely packed when used with
\paper { ragged-last = ##t }

Cheers,
Joram



Re: notes in text

2020-04-23 Thread Noeck
It sounds like you could pick or adapt one of those:
http://lsr.di.unimi.it/LSR/Item?id=204



Re: Using shortVocalName for stanza numbers on every system

2020-04-20 Thread Noeck
I should have said that you need to adjust this value to your needs.

>     \override InstrumentName.X-offset = -1

You can move the InstrumentName to the left (-) and to the right (+).
Instrument names are right aligned with the left staff edge by default.
You can change that using either X-offset, padding or extra-offset.

<<
  \new Staff \with { shortInstrumentName = "staff" } { a1 \break b }
  \new Lyrics \with { shortInstrumentName = "lyr" } \lyricmode { a1 b }
>>

Cheers,
Joram



Re: Using shortVocalName for stanza numbers on every system

2020-04-20 Thread Noeck
I think I’ve seen solutions for that problem on this list or in the
snippets. Perhaps someone has a link.

But how about his?

\version "2.20.0"

\score {
  <<
\new Staff \new Voice = "sop" {
  \clef "treble"
  c'4 \bar "" \break c'
}
\new Lyrics  \lyricsto sop {
  \lyricmode {
\set stanza = "2. "
\set shortVocalName = "2. "
Should Should
  }
}
  >>
}

\layout {
  \context {
\Lyrics
\override InstrumentName.direction = #RIGHT
\override InstrumentName.X-offset = -1
\override InstrumentName.font-series = #'bold
  }
}



Libraries (was: Re: Read git tags using Scheme)

2020-04-18 Thread Noeck
Hi

Am 17.04.20 um 00:40 schrieb Noeck:
>  Parsing...git: /…path/to…/lilypond-2.20.0-1/lilypond/usr/lib/libz.so.1:
>  no version information available (required by git)

It seems to be a library issue. The shared library exists. It is a
symlink to libz.so.1.2.3

It could not adapt this to my situation:
https://stackoverflow.com/questions/11961400/getting-rid-of-git-usr-local-lib-libz-so-1-no-version-information-available

Any idea about this?

Cheers,
Joram



Re: Access Clef during after-line-breaking of ClefModifier

2020-04-17 Thread Noeck
Hi Aaron,

thanks a lot. This line was what I was looking for

(ly:grob-parent grob X)

Cheers,
Joram



Access Clef during after-line-breaking of ClefModifier

2020-04-16 Thread Noeck
Hi,

I have redefined the \clef command to sneak in an override to the
ClefModifier. That works but I can't use it as a layout as it is "baked
in" the music expression.

I guess there is some "after-line-breaking" solution with a lambda
function operating on the grob (ClefModifier). But I could not find it.
I would need access to the kind of clef, the ClefModifier is attached to.


\version "2.20.0"

% this works but is redefining a standard command
clef =
#(define-music-function (clf) (string?)
   #{
 \override Staff.ClefModifier.extra-offset = #(cond
   ((string=? clf "treble_8") '(1.5 . 1)) ; exaggerated position
   ; there are more conditions in real function
   (#t '(0 . 0))
   )
 #(make-clef-set clf)
   #})

{
  \clef "treble_8"
  a1
  \clef "bass_8"
  c,1
}

% how can I know what kind of clef it is here?
{
  \override Staff.ClefModifier.after-line-breaking =
  #(lambda (grob)
(ly:grob-set-property! grob 'extra-offset '(1.5 . 1)))
  \clef "treble_8"
  a1
  \clef "bass_8"  % should not work here!
  c,1
}

Best,
Joram



Read git tags using Scheme

2020-04-16 Thread Noeck
Hi,

I am using the function below which is adapted from
http://lilypondblog.org/2014/01/why-use-version-control-for-engraving-scores/#more-2151

While it works and the .ly files compile successfully, the function
issues a warning (?) I’d like to get rid of.

1) If the document is in a git directory, this is printed:

 Parsing...git: /…path/to…/lilypond-2.20.0-1/lilypond/usr/lib/libz.so.1:
 no version information available (required by git)

Where does it come from and why is it issued?
Doing `git --version` in bash does not issue it.

2) If the document is not in a git repository another log line is added:

 fatal: not a git repository (or any of the parent directories): .git

Which I understand but I’d like to hide it anyways because I want to use
the same file no matter if it is used with git or not.

Any ideas how to achieve this?

Cheers,
Joram


 code

\version "2.20.0"

#(use-modules (ice-9 popen))
#(use-modules (ice-9 rdelim))

#(define (strsystem_internal cmd)
   (let* ((port (open-input-pipe cmd))
  (str (read-line port)))
 (close-pipe port)
 str))

#(define gitshort (let* ((res (strsystem_internal
  "git describe --long --dirty='+' | sed 's/-/./' | sed -r
's/-g[0-9a-f]+//g'")))
  (if (string? res) res "")))
% if (string? ... is my clumsy way to ensure it returns a string

\markup { "Version" \gitshort }






Re: Temporarily Change The Font Of A Notehead?

2020-04-14 Thread Noeck
Dear Brian,

here you are:

\version "2.20.0"

\paper {
  #(define fonts
 (set-global-fonts
  #:music "mtf-arnold"
  #:brace "emmentaler"
  #:roman "Futura"
  #:sans "sans-serif"
  #:typewriter "monospace"
  #:factor (/ staff-height pt 20)
  ))
  #(add-music-fonts fonts 'emmentaler "emmentaler" "emmentaler"
 feta-design-size-mapping (/ staff-height pt 20))
}

{
  as
  \once \override Staff.Accidental.font-family = #'emmentaler
  \once \override NoteHead.font-family = #'emmentaler
  as!
}

%%

You need to define a name for the standard font ('emmentaler) and then
you can use it on objects (here Accidentals and NoteHeads).

Cheers,
Joram



Re: 3/4 time

2020-04-12 Thread Noeck
Dear Sylvia,

Am 12.04.20 um 17:39 schrieb Sylvia Cassel:
> f1:maj7 a1:aug7 bes1:maj7 d1:aug7

Your harmonies have a duration of 1 (whole note) but your measures are
only 3 quarters long (time 3/4):

f2.:maj7 a2.:aug7 …

and you can write the duration only once if it is the same as previously:

f2.:maj7 a:aug7 …


By the way, such questions should be asked on the users' list:
lilypond-user@gnu.org


Cheers,
Joram



Am 12.04.20 um 17:39 schrieb Sylvia Cassel:
> Hello out there,
> Has anyone has a chance to look at this?  Am I doing something wrong or is
> there a bug??  How can I get the chord notations over the right measure?
>
> Sylvia Cassel 
> Fri, Apr 3, 7:04 AM (9 days ago)
> to bug-lilypond
> % In doing a lead sheet in 3/4 time, the melody notation comes out correctly
> % but the chords don't line up with the measures.  They seem to assume 4/4
> time.
>
> Example:
>
>  \version "2.20.0"
> \header {
> Title = "F - Some Day My Prince Will Come"
> composer = "Frank Churchill"
> }
> melody =\relative c'
> {
> \clef treble
> \key f \major
> \time 3/4
>
> c2.  f2 cis4 e2 d4 d2.
> }
> harmonies = \chordmode
> {
> f1:maj7 a1:aug7 bes1:maj7 d1:aug7
> }
> \score {
> <<
> \new ChordNames {
> \set chordChanges = ##t
> \harmonies
>  }
> \new Staff \melody
>>>
> \layout { }
> }
> Thanks for any help.
> Sylvia
> ___
> bug-lilypond mailing list
> bug-lilyp...@gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-lilypond
>



Re: Get current staff size

2020-04-10 Thread Noeck
Am 10.04.20 um 14:12 schrieb Valentin Villenave:
> (* 4 (ly:output-def-lookup

This yields 16 for a default staff here. Should the factor be 5?

Cheers,
Joram



Fwd: Beaming in 4/4 and justify staves

2020-04-09 Thread Noeck
Hi Christopher,

please always write to the list! Your clarification of your question is
what I expected. But I don't know the answer for that.

Joram


 Weitergeleitete Nachricht 
Betreff:Re: Beaming in 4/4 and justify staves
Datum:  Thu, 9 Apr 2020 19:39:21 -0300
Von:Cristopher Bonn 
An: Noeck 



Hi Joram,

Thanks for your answer. I want a measure without rests beamed like it's
traditionally done (2 groups of 4), is this possible? In short, three
8th notes would never be beamed together in any case. I hope I'm clear...

New image attached for clarification 

On Thu, Apr 9, 2020 at 7:21 PM Noeck mailto:noeck.marb...@gmx.de>> wrote:

Hi Christopher,

>> 1) How can I have this beaming in 4/4 as default? see attached image.
>

http://lilypond.org/doc/v2.19/Documentation/learning/automatic-and-manual-beams

\version "2.20.0"

\relative {
  \overrideTimeSignatureSettings
    4/4  % whenever you use \time 4/4
    1/8  % use 8th notes as beat
    1,1,2,4  % group them like this
    #'()    % no exceptions
  \time 4/4
  r8 a' \repeat unfold 14 a
}

It was not clear to me from your image how you would like to beam a
measure without rests. So probably this answer is wrong even though the
first measure looks like yours.

>> 2) Is there a way to justify staves?
>
> http://lilypond.org/doc/v2.19/Documentation/notation/changing-spacing

In particular:

\paper {
  ragged-last-bottom = ##f
}

Cheers,
Joram



Re: Beaming in 4/4 and justify staves

2020-04-09 Thread Noeck
Hi Christopher,

>> 1) How can I have this beaming in 4/4 as default? see attached image.
> http://lilypond.org/doc/v2.19/Documentation/learning/automatic-and-manual-beams

\version "2.20.0"

\relative {
  \overrideTimeSignatureSettings
4/4  % whenever you use \time 4/4
1/8  % use 8th notes as beat
1,1,2,4  % group them like this
#'()% no exceptions
  \time 4/4
  r8 a' \repeat unfold 14 a
}

It was not clear to me from your image how you would like to beam a
measure without rests. So probably this answer is wrong even though the
first measure looks like yours.

>> 2) Is there a way to justify staves?
>
> http://lilypond.org/doc/v2.19/Documentation/notation/changing-spacing

In particular:

\paper {
  ragged-last-bottom = ##f
}

Cheers,
Joram



Re: A request on behalf of Turkish Music

2020-04-09 Thread Noeck
Hi,

Am 08.04.20 um 14:38 schrieb Werner LEMBERG:
>
>> A combination of makam.ly and this definitions.ily should be easy to
>> do.  But as Werner said, having them in the Emmentaler font (one way
>> or the other) would be better.
>
> Well, here's the question: Shall we add such glyphs at all?

Of course. My wording was wrong here.

I made a small ly-file just to show how the accidentals with numbers
(using the finger style) look like. It is in no way connected to tuning,
it is just a display for further discussions about the optics.

Cheers
Joram
\version "2.20.0"

flatOne = \markup \concat { \flat  \hspace # -0.55 \raise #1 \finger \fontsize #-2 "1" }
flatTwo = \markup \concat { \flat  \hspace # -0.55 \raise #1 \finger  \fontsize #-2 "2" }
flatThree = \markup \concat { \flat  \hspace # -0.55 \raise #1 \finger  \fontsize #-2 "3" }
flatFour = \markup \concat { \flat  \hspace # -0.55 \raise #1 \finger  \fontsize #-2 "4" }
sharpOne = \markup \concat { \sharp  \hspace # -0.7 \raise #1.5 \finger  \fontsize #-2 "1" }
sharpTwo = \markup \concat { \sharp  \hspace # -0.7 \raise #1.5 \finger  \fontsize #-2 "2" }
sharpThree = \markup \concat { \sharp  \hspace # -0.7 \raise #1.5 \finger  \fontsize #-2 "3" }

\markup { \flatOne \flatTwo \flatThree \flatFour \sharpOne \sharpTwo \sharpThree }

#(define (turkish-flatone grob)
 (grob-interpret-markup grob #{ \markup \flatOne  #}))

#(define (turkish-sharptwo grob)
 (grob-interpret-markup grob #{ \markup \sharpTwo  #}))

{
  \override Staff.Accidental.stencil = #turkish-flatone
  as
  \override Staff.Accidental.stencil = #turkish-sharptwo
  ais
}

Re: ANN: OOoLilyPond 1.0.0

2020-04-09 Thread Noeck
Dear Klaus,

thanks a lot for your work, the great improvements to this extension and
for getting out this new version!

Happy Easter!
Joram



Re: Strange error from \new Voice

2020-04-09 Thread Noeck



Am 09.04.20 um 18:18 schrieb Bernhard Kleine:
> This would be worth mentioning in the manual!

Hi Bernhard,

glad it works. What exactly would you mention in the manual?

1) How to use the \lyricsto construct? It is explained here:

https://lilypond.org/doc/v2.20/Documentation/notation/common-notation-for-vocal-music.html#aligning-lyrics-to-a-melody

2) That you have to use the correct characters ("" instead of „“)?
   Well, that’s trivial, isn’t it? I mean you cannot use a ` for a '
   or a { for a (.

3) That \addlyrics can fail in some cases and \lyricsto is more robust?
   There is a small sentence saying

> The command \addlyrics cannot handle polyphonic settings. … For these cases 
> one should use \lyricsto.

Best,
Joram



Re: Strange error from \new Voice

2020-04-09 Thread Noeck



Am 09.04.20 um 17:04 schrieb Bernhard Kleine:
> \new Lyrics \lyricsto „SI“

Did you copy that verbatim or use the correct "normal quotes":

\new Lyrics \lyricsto "SI"

Just to rule out that simple problem.

Joram



Re: A request on behalf of Turkish Music

2020-04-08 Thread Noeck
FWIW, SMuFL defines these code points and you can see the style in the
Bravura font. There is a sharp with the number 5, too.

The attachment shows, that they define a fixed glyph combination.

The code in bravura-smufl.ly uses the openlilylib/snippets¹ and it
requires the Bravura font to be installed. In the definitions.ily file,
you can also see how to use the font to print grobs (here the
Accidentals, line 372).

A combination of makam.ly and this definitions.ily should be easy to do.
But as Werner said, having them in the Emmentaler font (one way or the
other) would be better.

Cheers,
Joram


¹:
https://github.com/openlilylib/snippets/blob/master/custom-music-fonts/smufl/definitions.ily
\version "2.20.0"

\markup \fontsize #16 \override #'(font-name . "Bravura") \line {
  \char ##xE450
  \char ##xE451
  \char ##xE452
  \char ##xE453
  \char ##xE454
  \char ##xE455
  \char ##xE456
  \char ##xE457
}

\include "custom-music-fonts/smufl/definitions.ily"
\markup \fontsize #14 \line {
  \smuflglyph "accidental1CommaSharp"
  \smuflglyph "accidental2CommaSharp"
  \smuflglyph "accidental3CommaSharp"
  \smuflglyph "accidental5CommaSharp"
  \smuflglyph "accidental1CommaFlat"
  \smuflglyph "accidental2CommaFlat"
  \smuflglyph "accidental3CommaFlat"
  \smuflglyph "accidental4CommaFlat"
}

Re: Unwanted warnings/errors on pedals for multiple voices

2020-04-07 Thread Noeck
Hi Paolo,

well there are pros and cons both ways.

Am 07.04.20 um 18:51 schrieb Paolo Prete:
> as said to Kieren, this is not a good rule.

I know that you said it already but I disagree. I find it easier to read.

> I never saw any music engraver who uses it.

and most of my piano scores of publishing houses do it like this. I have
examples here by Schott and Henle.

Your examples to keep the pedals aligned are interesting and without
that, pedal marks inside the staff don't make sense IMHO. *With* your
alignment functions I consider the results both approaches very close.

> And you would fill the score with tons of redundant skips.

Also a matter of taste and (more importantly) use case. I have a piece
at hand with very regular pedal marks. It is basically a repitition of
the same pattern. It is much cleaner to enter this with skips than in
one of the voices. (By the way: Which one? The lowest?)

So for me, the Dynamics context still needs less manual intervention but
your alignment functions are great and I'll have a look at them for
dynamics.

Cheers,
Joram



Re: Unwanted warnings/errors on pedals for multiple voices

2020-04-07 Thread Noeck
Hi Paolo and Kieren,

I am currently running into the same issues. I also find jumping pedal
marks irritating, even the Ped * variant. My preferred algorithm for
pedal spacing and alignment (not backed up by any notation standard)
would be this:

1. Pedal marks are vertically aligned per system
2. The staff padding is a little bit larger than LY defaults to
accommodate single lower notes.
3. The padding to notes and ornaments is very small (default)
4. If still required the whole pedal line is pushed down.
5. If single notes push it down very far (~3 staff spaces), the
alignment breaks up and only this pedal bracket is pushed down.

2+3 minimize the need for exceptions (5).

I try to achieve this manually. Typically some staff-padding does (2)
but is not enough for (4). So a separate context with spacers and pedal
marks is closer. This way, (5) is much more difficult, though.
A separate Dynamics context works quite well but it needs manual
adjustments for (5).

Examples are attached.

Cheers,
Joram

\version "2.20.0"
#(set-global-staff-size 17)

\paper {
  indent = 0
  ragged-right = ##t
}
notes = {
  \clef bass
  c4 c c c | \break
  e, a,, e, e, | \break
  c,-. e, c, e, | c c c c | \break
  c,, c c c | c c c c
}

remarksA = {
  s1^"default padding"
  s1^"very close and no interference"
  s1^"jumping pedal marks" s
  s1^"again jumping" s
}

remarksB = {
  s1^"default padding"
  s1^"very close and no interference"
  s1^"push down the whole line" s
  s1^"large jumps" s
}

pedals = {
  \repeat unfold 6 { s4\sustainOn s s s\sustainOff }
}

fixpositions = {
  s1*5
  \override SustainPedal.extra-offset = #'(0 . 5)
}

\markup \bold "within Staff"
\new Staff << \notes \pedals \remarksA >>


\markup \bold "Dynamics line"
<<
  \new Staff << \notes \remarksB >>
  \new Dynamics \pedals
>>


\markup \bold "Dynamics line with manual correction"
<<
  \new Staff << \notes \remarksB >>
  \new Dynamics << \pedals \fixpositions >>
>>


pedal.pdf
Description: Adobe PDF document


Re: Grace notes immediately following repeat barline cause extra barline

2020-04-07 Thread Noeck
This is a longstanding issue. You need to add invisible grace notes in
the other staves:

http://lilypond.org/doc/v2.20/Documentation/notation/special-rhythmic-concerns.html#Known-issues-and-warnings-58

Joram



Re: Ties between Fingerings

2020-04-06 Thread Noeck
> Hm. Can it be made breakable in a way that the glissando line appears on
> both ends?

Found it: \override Glissando.after-line-breaking = #'()




Re: Ties between Fingerings

2020-04-06 Thread Noeck
Hm. Can it be made breakable in a way that the glissando line appears on
both ends?

Joram



Re: Ties between Fingerings

2020-04-06 Thread Noeck
Wow. Thanks Harm! That makes sense and looks good.

I never thought of a glissando here. But it actually makes sense. Now I
wonder if a straight glissando line would even be more appropriate than
a slur … I would read it more easily.

Joram



Ties between Fingerings

2020-04-06 Thread Noeck
Hi,

can Lilypond draw ties between fingerings?
I can fake it by using a slur and putting it above the fingering:

\version "2.20.0"
{
  % fake what I want
  \override Fingering.avoid-slur = #'inside
  cis''-4( c''-4) r
  % ties possible on one note
  c''^\markup \finger \overtie "43"
}

Is that the way to go or is there a semantically correct way of
specifying ties between fingerings instead of notes?

Cheers,
Joram



Edition engraver and upbeat

2020-04-05 Thread Noeck
Hi,

how can I address timesteps in an upbeat (partial) with the edition
engraver? Am I correct that this is still not possible?

https://lists.gnu.org/archive/html/lilypond-user/2017-04/msg00574.html

Best,
Joram



Fingering and slurs

2020-04-05 Thread Noeck
Hi,

I am transcribing piano music and I see a lot of ugly situations with
fingering and slurs.

Lilypond seems to draw the slur and then puts the fingering on the
inside if there is space and on the outside if not. From the score, I am
reading, I deduce these rules:

- fingering above the slur at slur tips
- fingering inside the slur otherwise
- fingering is above the staff for c'' and higher notes and
  inside the staff for lower notes

Is this a general practice or just happens to be what I see here?

I can regularly switch from avoid-slur between inside and outside and
set staff-padding to ##f and revert it by hand. But can you give me some
hints how to implement the rules above? I.e.

1. change avoid-slur based on slur beginnings and endings and
2. change staff-position based on the pitch of the note?

MWE:

\relative {
  \time 3/4
  \tempo "default"
  b'4.-2( a8-1 cis-2 e-4) |

  \tempo "inside"
  \override Fingering.avoid-slur = #'inside
  b4.-2( a8-1 cis-2 e-4) |
  \revert Fingering.avoid-slur

  \tempo "what I want"
  b4.-2(
  \once \override Fingering.staff-padding = ##f
  \override Fingering.avoid-slur = #'inside
  a8-1
  % I know this looks bad, but I that is the best rule I could find
  % \override Fingering.staff-padding = ##f  % manual override
  cis-2
  \revert Fingering.avoid-slur
  e-4) |
}

Thanks in advance.
Joram



Re: German bar lines documentation

2020-04-05 Thread Noeck
Hi Torsten,

well, there are various other issues. That's why I wanted to clarify
*how* to address them before I list all I found.

> has to be "*das*", not "*dass*".

Of course.

> I'd also prefer "sich /genau so/ wie […] verhält" over "sich /genauso/ wie
> […] verhält" in this case.

If this¹ is correct, I'd use "genauso".

¹: https://www.julianetopka.de/zwei-minuten-archiv/juli-2014

Cheers,
Joram



German bar lines documentation

2020-04-05 Thread Noeck
Hi,

tl;dr

- Zusätzlich kann noch "||:" verwendet werden, dass sich genauso wie
- "|:" verhält
+ Zusätzlich kann noch ".|:-||" verwendet werden, dass sich genauso wie
+ ".|:" verhält
___

the German docs read
http://lilypond.org/doc/v2.20/Documentation/notation/bars.de.html

> Zusätzlich kann noch "||:" verwendet werden, dass sich genauso wie "|:" 
> verhält

which does not work:

\version "2.20.0"

{
  a1 \bar  ".|:-||" \break   % works as expected
  a1 \bar  "||:" \break  % does not work
  a1
}

The bar should be as in the English docs:

> In addition, you can specify ".|:-||", which is equivalent to ".|:"

I guess this is from some ancient version when barline nomenclature was
different.

Well, there is a lot more which is not up to date, examples are
different or missing etc. Does it make sense to get into translating if
I can only contribute from time to time, let's say 2 paragraphs and then
2 months nothing? I could imagine that even small changes add up over
time. If that makes sense, I would read through the contributors manual
(translations) and come back to the dev list in case of questions.

Cheers,
Joram



Re: Proposal: Changing tremolo beam gap implementation

2020-03-28 Thread Noeck
Hi Torsten,

Am 28.03.20 um 16:55 schrieb Torsten Hämmerle:
> Only for non-zero gaps, the gap will start at the inside of stems

That sounds fine. You always show notes with the same pitch. It might
make sense to look at slanted beams, too. But as there is no problem
currently, I would not expect one due to the gap change.

Btw, how do you produce such a tremolo?
I know these (depending on the notehead), but how to attach one beam and
not the others?

{
  \repeat tremolo 2 { a'16 e'}
  \repeat tremolo 4 { a'16 e'}
}

Cheers,
Joram



Re: Proposal: Changing tremolo beam gap implementation

2020-03-28 Thread Noeck
Hi Torsten,

> *What do you think?*
> Wouldn't it be better to have "gap" actually mean "free space"?

I would also expect the "gap" to be the free space between stem and beam.

In your attached image, I wonder if you have drawn the upper beam from
the inner edge of the stem only for demonstration reasons, what a gap=0
would be. The stems and beams have slightly rounded corners, haven't
they? So if the beam touches the stem, it should overlap to avoid little
notches where they touch.
In other words, while currently gap=0 is a valid choice, with your
proposed gap definition, gap should either be >0 or -stem-thickness but
not 0, right?

{
  \override Beam.gap = 0.13  # roughly equivalent to free space = 0
  \repeat tremolo 4 { a32 e' }
}

Cheers,
Joram



Isolated durations on rests

2020-03-27 Thread Noeck
Hi,

is this behaviour intentional?

  \version "2.20.0"
  { r4 8 a b }

The "8" is equivalent to c'8. I think I understand what happens: the
isolated duration is given a default pitch c'.
What I would expect is that it is another rest, equivalent to

  { r4 r8 a b }

Was this just easier to implement that way for isolated durations or is
there another reasoning behind that behaviour?

Cheers,
Joram



Re: lilypond score in youtube video

2020-03-22 Thread Noeck
Hi Martin,

there is ly2video by Adam Spiers:
https://github.com/aspiers/ly2video

And you will find more in this thread from 2016:
http://lilypond.1069038.n5.nabble.com/Generation-of-Notation-Videos-with-Lilypond-Tool-Chain-td188204.html

One main idea is to use an infinitely wide page and just one line:
https://lilypond.org/doc/v2.20/Documentation/notation/one_002dline-page-breaking
and then scroll horizontally trough it.

HTH
Joram



Re: StaffSymbol stops short of end-of-\score TimeSignature or KeySignature

2020-03-20 Thread Noeck
> My question: how can I get the StaffSymbol to continue through the 4/4 
> marking at the end of the first \score (and through the key change at the end 
> of the second), as it does through the 2/4 at the end of the line above?

You could add an invisible spacer rest in both cases:
  \time 4/4 s
and
  \key b \major s }

Would that be a solution for you or just in the example?

Joram



Re: Peculiar behavior of barlines

2020-03-18 Thread Noeck
> What did I do wrong?

You didn't finish the bar line definition in line 24:

\defineBarLine "|-!" #'("|-dashedSpan" "|-dashedSpan" "



Re: Function operating on header

2020-03-14 Thread Noeck
Hi,

Am 13.03.20 um 20:36 schrieb Noeck:
>> Finally, \fromproperty is important as it defers the evaluation of the
>> property.  Using \title would give you the current value whereas
>> \fromproperty #'header:title can accommodate changes to the property.
> And that’s exactly why \fromproperty is the wrong tool for me here as I
> want to change the header fields based on what is there now not later.

I spoke too soon here. It would actually be nice to put the includes first.
Can I use fromproperty also in Scheme code? Or does the late evaluation
contradict with the usage in Scheme?

So I did another try and used the footer markup, but I can't use
fromproperty in Scheme code. This is what I tried:

\version "2.20.0"

\header { title = "Title" }
\paper {
  oddFooterMarkup = \markup \fill-line {
\null
#(if
  (string-null? (markup->string #{
\markup \fromproperty 'header:license #}))
  #{ \markup \with-url
 #(string-append "http://url/; (markup->string #{
   \markup \fromproperty 'header:license #}) "/4.0")
 \fromproperty 'header:license #} "")
% the lines above should finally produce this if license is defined:
% \with-url "http://url/cc by-sa/4.0" "cc by-sa"
\null
  }
}

\header {
  license = "cc by-sa"
}

{ b }

Cheers,
Joram



Re: Function operating on header

2020-03-13 Thread Noeck
Dear Aaron,

thank you for your mail.

> It may be your intention, but markup->string strips out formatting. 

Yes, it is my intention. I want to work with strings and not markup as I
want to completely separate the formatting from the header fields.

> Next, why use strings and string-append at all?

Because that is just a tiny example. I would like to create links to CC
licenses based on a license field etc.
What I am lacking here still, is how to do \with-url in Scheme or a
mechanism to show parts only under a certain condition:

\markup { "Text" ??if \license then \with-url #"url" "License" endif?? }

> Finally, \fromproperty is important as it defers the evaluation of the
> property.  Using \title would give you the current value whereas
> \fromproperty #'header:title can accommodate changes to the property.

And that’s exactly why \fromproperty is the wrong tool for me here as I
want to change the header fields based on what is there now not later.

Cheers,
Joram





Re: Function operating on header

2020-03-12 Thread Noeck
Thanks Francisco! That's great news!

It also works across separate header blocks and even from within
included files. And it is easier to turn it into a string than for the
\fromproperty mechanism. So this works for me:


\header {
  title = "my title"
  composer = "will be replaced"
}

% can also be included via \include
\header {
  composer = \markup { Composer of \italic
#(string-append "»" (markup->string title) "«") }
% instead of string-append, I can now work with the string
}
% end of include

{ b }

Cheers,
Joram


Am 12.03.20 um 17:42 schrieb Francisco Vila:
> This shows that header fields behave just like plain markups and can be
> used inside other markups:
>
> \header {
>   title="The title"
>   composer=\markup{Composer of \italic\title }
> }
>   { b }
>
>
> On 7/3/20 18:50, Timothy Lanfear wrote:
>> On 07/03/2020 14:52, Noeck wrote:
>>>> Thank you, Timothy,
>>>>
>>>> this is how far I got already. It is probably a step in the right
>>>> direction. But there are two issues with it:
>>>>
>>>> 1) I would like to use some Scheme code on the fields (with if etc),
>>>>     so I need the 'header:author as a string and #(markup->string …)
>>>>     did not work.
>>>> 2) Can this be put in a command which I can move to a separate file?
>>>>     Like \evaluateHeaders
>>>>
>>>> Cheers,
>>>> Joram
>>
>> Ok, so here is an example of a function to create a bookpart
>> consisting of a single blank page by clearing all the header
>> variables. It should give some clues about how to construct a header
>> in Scheme,
>>
>>
>> \version "2.19.80"
>>
>> % Print a blank page
>> blankpage = #(define-void-function () ()
>>   (let ((bookpart #{ \bookpart { \paper { page-count = 1
>> print-page-number = ##f } \markup \null } #})
>>     (header   (make-module))
>>     (props    '(dedication title subtitle subsubtitle instrument
>>     poet composer meter arranger opus piece copyright)))
>>     (for-each (lambda (prop) (module-define! header prop #f)) props)
>>     (ly:book-set-header! bookpart header)
>>     (ly:book-add-bookpart! $current-book bookpart)))
>>
>>



Re: Markup in chordmode

2020-03-11 Thread Noeck



Am 11.03.20 um 22:00 schrieb Pablo Cordal:
> In my Lilypond version both expression work, but are different (see
> attached image)

I get an error with 2.20.0 and a warning with 2.18.2:

warning: Spurious garbage following chord: (chord-colon #
# #)

which tells you that the part after the colon 3.5.8 is ignored, hence
the different output.

Cheers,
Joram



Re: Markup in chordmode

2020-03-11 Thread Noeck
Am 11.03.20 um 19:22 schrieb Carl Sorensen:
> I have no idea what f,,2/+c:3.5.8 is supposed to mean, and that gives me
> an  error when I run your file.

The order is important. The correct (working) syntax is:

\chordmode { f,,2:3.5.8/+c }

which is an f major chord with an additionall octave on top and a c,,
below. Simply adding the 8 also adds the minor 7th and adding the 5
removes the third which needs to be added again. That leads to :3.5.8

So first the colon then the slash.

Cheers,
Joram



Re: Function operating on header

2020-03-07 Thread Noeck
> Does this solve your problem?
> …
>   copyright = \markup \concat { "© " \fromproperty #'header:author }

Thank you, Timothy,

this is how far I got already. It is probably a step in the right
direction. But there are two issues with it:

1) I would like to use some Scheme code on the fields (with if etc),
   so I need the 'header:author as a string and #(markup->string …)
   did not work.
2) Can this be put in a command which I can move to a separate file?
   Like \evaluateHeaders

Cheers,
Joram



Function operating on header

2020-03-07 Thread Noeck
Hi,

I would like to populate header fields based on other header fields
(copyright based on author is just an example):

\version "2.20.0"

\header {
  author = "Name"
}

% call a function here equivalent to writng
\header {
  copyright = #(string-append "© " "Name")
  % where "Name" is the author field from above
}

{ a }

Is that possible?

Cheers,
Joram



Re: Helpless with system spacing

2020-03-01 Thread Noeck
Hi Steff,

I guess you want more system-system-spacing which is set in the \paper
block and not in a Staff context:

\paper {
   system-system-spacing =
#'((basic-distance . 30)
   (minimum-distance . 20)
   (padding . 8)
   (stretchability . 10))
}


The values are probably too large, just to show the effect.
This PDF shows which spacings have to be set in in which block:

https://joramberger.de/files/LilypondSpacing.pdf

Cheers,
Joram


PS: Your question showed me that the Lyrics and Chordname spacing is
missing from this PDF.





Re: print copyright on every page

2020-02-27 Thread Noeck
Hi,

> How can I print the copyright info on every page.

The default footer is this:

oddFooterMarkup = \markup {
  \column {
\fill-line {
  %% Copyright header field only on first page in each bookpart.
  \on-the-fly #part-first-page \fromproperty #'header:copyright
}
\fill-line {
  %% Tagline header field only on last page in the book.
  \on-the-fly #last-page \fromproperty #'header:tagline
}
  }
}

If you redefine the footer markup without \on-the-fly #part-first-page,
you get it on every page:

\version "2.19.84"

\header {
  copyright = "copy"
}

\paper {
  oddFooterMarkup = \markup {
\column {
  \fill-line {
%% Copyright header field on all pages
\fromproperty #'header:copyright
  }
  \fill-line {
%% Tagline header field only on last page in the book.
\on-the-fly #last-page \fromproperty #'header:tagline
  }
}
  }
}

{ a1 \pageBreak a }



Re: openLilyLib website

2020-02-20 Thread Noeck
Dear Urs,

it’s great that you found time for that. It looks nice and I think
MkDocs is a good choice (would have been my first choice, too).

While speaking about documentation, I very much like this approach:
https://www.divio.com/blog/documentation/

Some nitpicks from me:

- Should everyone see the "Edit this page" pencils?
   - Those links are broken for me
- If you descend into a package documentation, "Home" will not bring you
to openlilylib.org but to the page of the package. While that is
probably a consequence of your fourth bullet point, I find it confusing.
- Do you like the brown color?

>  * Each sub-site is maintained in a separate Git repository and
>included as a Git submodule, so it should be straightforward to
>manage independent authoring of the documentation by the respective
>package maintainers.

While this theoretically makes sense to separate the packages'
documentation, I would run from git submodule. But perhaps your use case
is easier than where my experience comes from and you can still change
that decision later in case it makes things easier.

> What I really *want* to have but have no idea so far how to achieve is
> additional code/API documentation retrieved from the actual source
> files. There should be a tool to retrieve that from comments (or actual
> signatures?),

What do you mean by signatures?
IMHO, this makes sense for "reference-type" documentation in addition to
other parts of the documentation (cf. link at the top).

Cheers,
Joram



Re: \fixed

2020-02-16 Thread Noeck
What happens if you compile the file? Is \fixed just marked red or is
there an error when compiling? Older versions of Frescobaldi did not
know some commands and treat them as a warning in syntax highlighting
even though the installed LilyPond version might understand the syntax.

That being said, a completely red line usually indicates an error
reported by LilyPond. So the next question is: What LilyPond version are
you using?

Cheers,
Joram



Re: Titles italic format ignored

2020-02-14 Thread Noeck
Hi,

as others said, font-name overwrites all of font-family, font-series and
font-shape. You can set the font family like this:

\version "2.19.84"

\paper {
  % define a font ‘arial’ from the font called ‘Arial’
  #(add-pango-fonts fonts 'arial "Arial"
(/ (* staff-height pt) 2.5))
}

% use the font family ‘arial’ in your markup or header markup
\markup \override #'(font-family . arial) \line {
  \bold "Bold" \italic "italic" "regular"
}

HTH
Joram



Re: Cheat sheets and LilyPond documentation [was Re: Clef "treble_8"]

2020-02-11 Thread Noeck
Hi David,

> Is SVG the file format Inkscape saves in?

Yes, SVG is the Inkscape file format. Inkscape adds some Inkscape
specific name spaces but within the spec of SVG. To quote the website¹:

Perfectly compliant SVG format file generation and editing


> Or is it only an export format for it?

No.

> Either way it does not sound like the "provide the
> source" vibe should be hard to meet in order to inspire followup work.

I am not sure I understand. You mean it is close to what you want as a
source format?

> At some point of time I have to reread the collected devastating
> dissings of dreadlord David.  This is not the first helpful project
> these days that has mentioned getting discouraged by the initial
> reaction.

I’ve read a lot of mails the last days. That’s why I wanted to give some
positive feedback. I honestly appreciate it.

Best,
Joram


¹: https://inkscape.org/about/features



Cheat sheets and LilyPond documentation [was Re: Clef "treble_8"]

2020-02-11 Thread Noeck
Hi David,

> Is there a source?  Or is it hand-written SVG?  If we are trying to
> follow the spirit of the GPL, source is defined as "preferred form for
> modification".  For a cobbled-together version, that is tricky to
> define, but we would not want to make it harder than necessary to come
> up with updated versions.

The SVG is the source in the sense "preferred form of modification" – at
least preferred by me :). It is created with Inkscape. I guess it could
be done in LilyPond or TeX or sth else but probably with a similar
amount of complexity (except some text replacement perhaps).
Personally, I would update it via Inkscape (and export to PDF
additionally). The cheat sheet is 8000 lines as SVG (with the line
breaks Inkscape introduces, but you get a feeling). The spacing sheet
3600 lines.

>> Maybe this can be re-evaluated...  An alternative is to add links to
>> to the documentation.
>
> Or from the web page, but then people might have a harder time finding
> it.  We have some diagrams with arrows in our web presence if I am not
> mistaken.  They must have been created in some kind of manner.  Of
> course something fitting well into the Texinfo creation process would be
> nice since we have a lot of output formats for our documentation.

You mean this? http://lilypond.org/text-input.html Well, yes, there
seems to be a place for that. I don’t know the Texinfo stuff enough to
tell if there is a way. For the ly code of the visual index perhaps.

Btw, I appreciate your friendly reaction very much.

Best,
Joram


¹: Inkscape: free vector graphics editor https://inkscape.org



Re: Clef "treble_8"

2020-02-11 Thread Noeck
Dear Michael,

Am 10.02.20 um 22:14 schrieb Michael Käppler:
> Would you share the source code for the visual index?

Yes, sure. I setup a small repository for it:
https://github.com/joram-berger/visualindex/blob/master/visualindex.ly

The code is not beautiful. It's 700 lines. I just got it to a stage
where it roughly did what I wanted. The positioning is not always
optimal and there are some open issues, some of which I mentioned in a
comment. But here it is. Comments and improvements are welcome.

Best,
Joram



Re: Clef "treble_8"

2020-02-10 Thread Noeck
Hi Michael and Karlin,

thank you for your positive reaction. There are 3 files¹:

- a cheat sheet: https://joramberger.de/files/lilypond_sheet_2.18_en.pdf
- “visual index”: https://joramberger.de/files/lilypond_visualindex.pdf
- spacing overview: https://joramberger.de/files/LilypondSpacing.pdf

The cheat sheet is also available in other languages (and as SVG)²:

https://joramberger.de/files/lilypond_sheet_2.18_de.pdf
https://joramberger.de/files/lilypond_sheet_2.18_fr.pdf
https://joramberger.de/files/lilypond_sheet_2.18_it.pdf
https://joramberger.de/files/lilypond_sheet_2.18_en.svg
https://joramberger.de/files/lilypond_sheet_2.18_de.svg
https://joramberger.de/files/lilypond_sheet_2.18_fr.svg
https://joramberger.de/files/lilypond_sheet_2.18_it.svg


>> Why isn't this part of the official docs?

I once tried to get them in an appropriate place in the official
documentation. But they were not accepted. For the cheat sheet, main
objections were:

- not source code (even though SVG is an open and text based format)
- needs updates for new versions (well, those basic things did not
  change for at least 7 years now and even if they did…)
- does not fit into the texinfo documentation creation process (ok)

The case of the spacing overview is similar. The visual index is created
from a LilyPond source code. If I (or someone) finds a way to create a
clickable SVG file from it, one could include it into HTML and make it
blend much better into the/a documentation website.

Cheers,
Joram


¹: A gentle introduction to overrides will follow at some point.
²: A 2.20 version will be put online as soon as 2.20 is out.



Re: Clef "treble_8"

2020-02-10 Thread Noeck
Hi Anthony,

>     \transposition c''

What you are looking for here is \transpose:
http://lilypond.org/doc/v2.18/Documentation/notation/changing-multiple-pitches#transpose

> Now I want also the time signature "C" to disappear... I've read the doc
> ,
> but don't see how.

\omit was introduced in 2.18:
http://lilypond.org/doc/v2.18/Documentation/changes/index.html

Documentation:
http://lilypond.org/doc/v2.18/Documentation/notation/visibility-of-objects

> Is there a "\omit" ?

you can basically \omit anything as soon as you know what the object it
is called:

\omit TimeSignature

If you don’t know what to look for to find the name, this page could help:
https://joramberger.de/files/lilypond_visualindex.pdf

HTH,
Joram



Re: Positioning of a tiny voice

2020-02-07 Thread Noeck
> Does this workaround/hack suit your needs?

Hi Kieren,

unfortunately not, because the "music" voice should behave like a
\oneVoice. But the following works for me:

\new Staff <<
  { \oneVoice \music } \\ { \voiceThree \shiftOff \upper } >>


Why did you use \voices 1,2 in your example?
And I’d like to understand why it does not work without the \\. I
thought that this was just a shorthand for \voiceOne and …Two
respectively. Thank you!

Best,
Joram



Positioning of a tiny voice

2020-02-07 Thread Noeck
Hi,

I would like to add small notes into an already populated staff.
It is the right hand of a piano staff and I don’t want real voices with
their shifts. The tiny font size distinguishes the "upper" voice
already. It should have the least impact possible on the "music" voice.

Here is one example measure:


\version "2.19.84"

upper = \relative {
  \tiny
  \stemUp
  s4 b''
}

music = \relative {
  \key e \minor
  \time 2/4
  b'8 16 c' 8 16 b'
}

\new Staff << \upper \music >>


How to move the b'' exactly on top of the chord below?
What to do about this warning?

warning: this Voice needs a \voiceXx or \shiftXx setting
  b'8 16 c' <
 b, e g b>8 16 b'


Cheers,
Joram



Re: Page numbers with text

2020-02-07 Thread Noeck
… and if you want this footer on every page, you can have it shorter:


  oddFooterMarkup = \markup \fill-line {
\line {
  \fromproperty #'page:page-number-string
  "–"
  \fromproperty #'header:title
}
  }

Best,
Joram



Re: Page numbers with text

2020-02-07 Thread Noeck
Dear Marco,

is this close to what you want?

%%
\version "2.19.84"

\paper {
  print-first-page-number = ##t
  oddHeaderMarkup = \markup \null
  evenHeaderMarkup = \markup \null
  oddFooterMarkup = \markup \fill-line {
\line {
  \on-the-fly \print-page-number-check-first
  \fromproperty #'page:page-number-string
  "–"
  \on-the-fly \print-page-number-check-first
  \fromproperty #'header:title
}
  }
  evenFooterMarkup = \oddFooterMarkup
}

\header {
  title = "First Title"
}

\score {
  \new Staff { a'1 \break g'1 \pageBreak f'1 }
}
%%

I am not sure why I need the \print-page-number-check-first and if the
\fill-line { \line { … } } is the cleanest solution. But I guess the
rest of it comes close.

Best,
Joram




Re: New release

2020-02-06 Thread Noeck
Thanks a lot! I installed it and tested it on my scores.
Everything works as expected.

Joram



Re: input code

2019-12-11 Thread Noeck
Hi,

I am not really familiar with the parser, but I think LilyPond uses
Bison¹ and the input syntax is defined in lilypond/lily/parser.yy

¹: https://www.gnu.org/software/bison/

Best,
Joram



Re: fonts.cache

2019-10-23 Thread Noeck
Hi David,

thanks a lot!

> Technically, I think that's .lilypond-fonts.cache-2 which means, of
> course, that it's a "hidden" dotfile.

Of course, the missing dot was just a typo.

>> I currently use a symlink (on Ubuntu, ext3 file system) and that seems
>> to work. But can I change it somewhere else?
>
> A quick search of a locally installed version throws up this file:
>
> $ cat ~/lilypond-2.19.83-1.linux-64/lilypond/usr/etc/fonts/local.conf

Thank you! I will try and change the path in this file.

> I don't know where the distribution-supplied version keeps its font
> cache; perhaps in /var/cache/… though I don't see any feta or
> emmentaler therein.

The system font cache seems to be in /var/cache/fontconfig.

> I also don't know where you prefer them to go (local ones).
> My own preference would be in ~/.cache/lilypond/…,
> .cache/ being where most applications seem to be moving their
> cached data to, in a similar manner to their configuration
> directories migrating to .config/ over time. Much tidier.

That was my intention. LilyPond is one of the few programs still using a
top-level dotfile (folder). I will try ~/.cache/lilypond/fontconfig as
new path.

Cheers
Joram


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


fonts.cache

2019-10-22 Thread Noeck
Hi,

is the path of the lilypond-fonts.cache-2 folder hardcoded somewhere or
can I have it in a different place?

I currently use a symlink (on Ubuntu, ext3 file system) and that seems
to work. But can I change it somewhere else?

Cheers,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Less intra-word space in lyrics

2019-05-27 Thread Noeck


Am 31.12.18 um 14:34 schrieb Noeck:
> Hi,
>
> How can I move syllables closer together?
>
> In the example, the word "przyjaciele" (one word) is written like "przy
> ja cie le" and looks like four words. When I remove the minimum-length
> override, I get hyphens like "przy-ja-cie-le". Both versions don't look
> good to me. I would prefer something like "przyja - ciele" or even
> "przyjaciele" centered under these notes.
>
>
> MWE (the attached image is not from this code but from the real song):
>
> \version "2.18.2"
>
> \paper {
>   line-width = 55\mm
>   ragged-right = ##f
> }
>
> \score {
>   <<
> \new Staff \new Voice = "v" { \autoBeamOff e'8 e' d' c'}
> \new Lyrics \lyricsto v { przy -- ja -- cie -- le }
>   >>
>
>   \layout {
> \override Lyrics.LyricHyphen.minimum-length = 1.0
>   }
> }


I guess this is the answer to it (and the whole thread):
http://lists.gnu.org/archive/html/lilypond-user/2019-05/msg00343.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with linebreaks and musicglyphs

2019-04-03 Thread Noeck
Dear Markus,

there are probably other solutions that center the coda glyphs and the
dash more elegantly, but this works. \line combines several markup-parts
into one line:

\relative c''
{
  c c ^\markup{
\center-column {
  "D.S." "Nach der 2. Str."
  \line {
\musicglyph #"scripts.coda"
\lower #0.47 "-"
\musicglyph #"scripts.coda"
  }
}
  } c
}

Cheers,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: "Mensurstriche" (barlines between systems) and Repeat signs.

2019-02-02 Thread Noeck
Hi,

I probably don't understand all the implications and I am certainly not
suggesting to change the function signature. But while we are at it:

A definition is usually “name” = “the thing to be defined”.

In the current \defineBarLine function, I always wondered why the first
argument contains a real barline and not just a name for it:

\defineBarLine ".|:-||" #'("||" ".|:" ".|")

The first argument mixes barlines and a suffix. ‘.|:’ is a real bar line
and the ‘-||’ part is a name extension. In order to cleanly separate the
name and the definition, this would me much clearer:

\defineBarLine "myname" #'("||" ".|:" ".|:" ".|")
i.e. "name" #'(start middle end span)

"name" could still be ".|:-||" – or anything else.

Cheers,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Less intra-word space in lyrics

2018-12-31 Thread Noeck
Hi,

How can I move syllables closer together?

In the example, the word "przyjaciele" (one word) is written like "przy
ja cie le" and looks like four words. When I remove the minimum-length
override, I get hyphens like "przy-ja-cie-le". Both versions don't look
good to me. I would prefer something like "przyja - ciele" or even
"przyjaciele" centered under these notes.


MWE (the attached image is not from this code but from the real song):

\version "2.18.2"

\paper {
  line-width = 55\mm
  ragged-right = ##f
}

\score {
  <<
\new Staff \new Voice = "v" { \autoBeamOff e'8 e' d' c'}
\new Lyrics \lyricsto v { przy -- ja -- cie -- le }
  >>

  \layout {
\override Lyrics.LyricHyphen.minimum-length = 1.0
  }
}

Cheers,
Joram


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: URL in footer

2018-12-11 Thread Noeck
Hi,

you are looking for \with-url (it is a bit hidden under the section
“Graphic”):

http://lilypond.org/doc/v2.18/Documentation/notation/graphic#index-_005cwith_002durl-1

  \with-url #"http://lilypond.org/; "LilyPond"

Best,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: reminder accidental

2018-11-25 Thread Noeck
Hi Mark,

I can only speculate what your problem was. But in case it was the order
of ' ! ? 4 etc. This is why I put one possible fixed order of note entry
elements here on my cheat sheet (upper right):

http://joramberger.de/files/lilypond_sheet_2.18_en.svg
http://joramberger.de/files/lilypond_sheet_2.18_en.pdf

Cheers,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: reminder accidental

2018-11-25 Thread Noeck
Hi Mark,

do you have a minimal example? This works for my with 2.19.80:

\version "2.19.80"

{
  \key d \major
  fis' fis'! fis' fis'?
}

Cheers,

Joram



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: staff order

2018-11-13 Thread Noeck
Dear Sean,

the Staff needs to start with a capital S: \new Staff
LilyPond is case-sensitive. That’s all.

Two other points:

1. You have some arbitrarily placed braces. I’d suggest to use them only
where they are needed.

2. Are you really using LilyPond 2.14? That’s really old. I’d suggest to
install a newer version (2.18 "stable" or a also reasonably stable
"development version" 2.19).

Here is your code such with the correct Staff:

\score {
  \new StaffGroup <<
\new Staff {
  \time 3/4
  \key ees \major
  g''2 f8 g8~ |
}
\new Staff {
  \key ees \major
  aes'8 ees'8 c'2 |
}
  >>
}

Cheers,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Avoiding the message about too many colliding rests

2018-11-11 Thread Noeck
Am 11.11.18 um 12:13 schrieb Thomas Morley:
> A very quick glance offered only one snippet where stemUp/Down is reasonable: 
> Stem and Slur in different directions.


I think \stemUp/Down has its place as a fine tuning not a replacement
for voices.

Here is a snippet where I actually think it is a reasonable choice to
use \stemUp and \stemDown:

\version "2.19.80"

\relative {
  \key c \minor
  \voiceOne
  \stemDown c'16\p^( es fis g \stemUp as\< g fis g \!
  es'\> d c g\! as[ g] \stemDown fis g) |
}

(First voice and first measure of Rachmaninoff, op. 23 No. 7.)

It's piano music and I already use 6 voices to represent the
"voice"-structure of the music. But sometimes the notes of one voice are
played by the other hand and that is indicated by the stem direction.
All other directions are kept (slurs, etc.).

Cheers,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Validity check for lilypond files

2018-11-03 Thread Noeck
Hi,

is there a way to check the validity of a .ly file?

I am thinking of a syntax check – so basically if the parser/lexer can
read it. It should (a) be quick and (b) not produce any output (could be
deleted as a last resort).

Is there something in python-ly that does that? It looks like the
Frescobaldi auto-engraving only runs if the input is valid.

I guess to check everything, I would have to run lilypond on it and see
if there are any warnings or errors. But I am willing to have less
coverage if I can get the result faster.

Thanks in advance for any hints.

Cheers,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: shortInstrumentName vertical spacing

2018-10-12 Thread Noeck
Dear David,

Am 12.10.2018 um 18:02 schrieb David Sumbler:
> \set Staff.shortInstrumentName = 
>   \markup { \override #'(baseline-skip . 6)
> \column { "2." "3." "4." } } 

Well, that works here.

{
  \set Staff.shortInstrumentName =   \markup {
\override #'(baseline-skip . 1.2)
\column { "2." "3." "4." } }
  a1 \break a
}

What is wrong with the outcome? How do you use it?
To be more safe against the fact that the staffs settings might already
be defined when you use \set, you could use it in a \with block.

Cheers,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Avoid accidentals in cadenza

2018-10-07 Thread Noeck
Hi,

Am 07.10.2018 um 19:01 schrieb Mason Hock:
> \override Voice.Accidental.stencil = ##f
> % music that doesn't need accidentals
> \override Voice.Accidental.stencil = ##t

While you can omit accidentals with the first line, you cannot set the
stencil to true. This prints a warning:

> warning: type check for `stencil' failed; value `#t' must be of type `stencil'

The right thing to do is to revert the override:

\version "2.18.2"
{
  fis
  \override Accidental.stencil = ##f
  gis
  \revert Accidental.stencil
  cis'
}

Or equivalently in more recent versions:

\version "2.19.80"
{
  fis
  \omit Accidental
  gis
  \undo \omit Accidental
  cis'
}


Cheers,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to hide fingering in the output

2018-10-02 Thread Noeck



Am 02.10.2018 um 19:34 schrieb csmcd:
> When I try to hide the fingering using either of these methods, I get a core
> dump.

Both versions compile fine and hide the fingering number here.
LilyPond 2.18.2 on Ubuntu (Linux).

Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to get a empty page?

2018-10-01 Thread Noeck
Dear Bernhard,

how about this?

{ a }
\pageBreak
\markup \null
\pageBreak
{ b }


Best,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Melisma line

2018-09-25 Thread Noeck
Hi Kaj,

Am 25.09.2018 um 14:34 schrieb 70147pers...@telia.com:
> Noeck: You suggested to print the stop character in white, the assumed
> paper colour. But what happens if you would print your score on a
> coloured paper, e.g. yellow.

Nothing happens, because a space has no colour. So that still works fine.

But that was just a fancy way of making the space so complex that it
doesn't get ignored. In case you like something like that, I'd suggest
to go with David W. and a non-breakable space:

> n = \lyricmode { \markup \char ##x00A0 }

Best,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


  1   2   3   4   5   6   7   8   9   10   >