Re: layout of markup text (Peter Gentry)

2018-08-01 Thread Simon Albrecht

On 23.07.2018 16:22, Peter Gentry wrote:

It looks as though in this case the compiler is treating each
"addTextSpannerText.ly" in the parts as music rather than scheme.


\include acts in a way that is completely indistinguishable from just 
pasting the content of the file instead of the include. So you need to 
organise your input files in a way that allows for this, and that’s 
nearly always just a matter of thinking it all the way through and 
finding the right setup.
If the variable definition in your include file throws a mistake, then 
apparently at the point where you write \include you’re still in an 
environment where variable definitions aren’t possible.
Since it’s superfluous to include a file multiple times, you might also 
look at the openlilylib/oll-core module, which implements a function to 
only include a file if it hasn’t been included yet.


Best, Simon

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


Re: repeats in polymetric score

2018-08-01 Thread Simon Albrecht

On 01.08.2018 23:38, Simon Albrecht wrote:

On 23.07.2018 23:02, holl...@hollandhopson.com wrote:

On Jul 23, 2018, at 1:23 PM, David Kastrup  wrote:

"holl...@hollandhopson.com"  writes:


How can I use \repeat volta in a polymetric score? Removing
Default_bar_line_engraver from the Score context and adding it to the
Staff context seems to be the issue. When I restore
Default_bar_line_engraver to the Score context then the repeats are
displayed, but of course the score isn’t polymetric anymore.

Have you tried moving Repeat_acknowledge_engraver ?

--
David Kastrup

That did it. Adding

\consists “Repeat_acknowledge_engraver” to the Staff context in the 
layout block brings the repeats back.


Doesn’t that also show the need to find an easier, more standardised 
way to set up polymetric scores, as in the thread about metronome 
marks in polymetric situations a week ago?


I followed a little through on the idea of a TimingGroup and came up 
with the attached proof of context, which I like – apart for the fact 
that it doesn’t work… apparently the Timing_translator isn’t quite OK 
with being moved to a custom context (or that’s my layman’s guess).

Sorry, I forgot to include the required library file as well. Here you go.


Best, Simon


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


\version "2.19.82"
\include "mark-line.ily"

\layout {
  \context {
\Score
\remove "Timing_translator"
\remove "Default_bar_line_engraver"
\remove "Repeat_acknowledge_engraver"
  }
  \context {
\name TimingGroup
\type "Engraver_group"
\alias StaffGroup

\consists "Timing_translator"
\consists "Default_bar_line_engraver"
\consists "Repeat_acknowledge_engraver"

\defaultchild "Staff"

%\accepts "ChoirStaff"
%\accepts "ChordNames"
%\accepts "DrumStaff"
%\accepts "FiguredBass"
%\accepts "FretBoards"
%\accepts "GrandStaff"
%\accepts "Lyrics"
\accepts "MarkLine"
%\accepts "OneStaff"
%\accepts "PianoStaff"
%\accepts "RhythmicStaff"
\accepts "Staff"
%\accepts "StaffGroup"
%\accepts "TabStaff"
  }
  \inherit-acceptability "TimingGroup" "StaffGroup"
}

timingOne = {
  \time 3/4
  s2.*2
}
marksOne = {
  \tempo 4 = 90
}
musicOne = \context Bottom <<
  \timingOne
  \fixed c' {
c4 c c
\repeat volta 2 { c c c }
  }
>>

timingTwo = {
  \time 2/4
  \set Timing.measureLength = #(ly:make-moment 3/8)
  s4.*2
  \repeat volta 2 { s4.*2 }
}
marksTwo = {
  \tempo 4 = 120
}
musicTwo = \context Bottom <<
  \timingOne
  \scaleDurations 3/4
  \fixed c' {
c4 c
c c
\repeat volta 2 {
  c c
  c c
}
  }
>>

<<
  \new TimingGroup <<
\new MarkLine \marksOne
\new Staff \musicOne
  >>
  \new TimingGroup <<
\new MarkLine \marksTwo
\new Staff \musicTwo
\new Staff \musicTwo
  >>
>>\version "2.18.2"

\layout {
  \context {
\name "MarkLine"
\type "Engraver_group"
\consists Output_property_engraver
\consists Axis_group_engraver
\consists Mark_engraver
\consists Metronome_mark_engraver
\override RehearsalMark.extra-spacing-width = #'(0 . 1)
\override MetronomeMark.extra-spacing-width = #'(0.5 . 0)
\override VerticalAxisGroup.minimum-Y-extent = #'(-2 . 2)
\override VerticalAxisGroup.staff-staff-spacing =
#'((basic-distance . 1)
   (minimum-distance . 1)
   (padding . 1)
   (stretchability . 3))
  }
  \context {
\Score
\remove Mark_engraver
\remove Metronome_mark_engraver
\accepts MarkLine
  }
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: repeats in polymetric score

2018-08-01 Thread Simon Albrecht

On 23.07.2018 23:02, holl...@hollandhopson.com wrote:

On Jul 23, 2018, at 1:23 PM, David Kastrup  wrote:

"holl...@hollandhopson.com"  writes:


How can I use \repeat volta in a polymetric score? Removing
Default_bar_line_engraver from the Score context and adding it to the
Staff context seems to be the issue. When I restore
Default_bar_line_engraver to the Score context then the repeats are
displayed, but of course the score isn’t polymetric anymore.

Have you tried moving Repeat_acknowledge_engraver ?

--
David Kastrup

That did it. Adding

\consists “Repeat_acknowledge_engraver” to the Staff context in the layout 
block brings the repeats back.


Doesn’t that also show the need to find an easier, more standardised way 
to set up polymetric scores, as in the thread about metronome marks in 
polymetric situations a week ago?


I followed a little through on the idea of a TimingGroup and came up 
with the attached proof of context, which I like – apart for the fact 
that it doesn’t work… apparently the Timing_translator isn’t quite OK 
with being moved to a custom context (or that’s my layman’s guess).


Best, Simon
\version "2.19.82"
\include "mark-line.ily"

\layout {
  \context {
\Score
\remove "Timing_translator"
\remove "Default_bar_line_engraver"
\remove "Repeat_acknowledge_engraver"
  }
  \context {
\name TimingGroup
\type "Engraver_group"
\alias StaffGroup

\consists "Timing_translator"
\consists "Default_bar_line_engraver"
\consists "Repeat_acknowledge_engraver"

\defaultchild "Staff"

%\accepts "ChoirStaff"
%\accepts "ChordNames"
%\accepts "DrumStaff"
%\accepts "FiguredBass"
%\accepts "FretBoards"
%\accepts "GrandStaff"
%\accepts "Lyrics"
\accepts "MarkLine"
%\accepts "OneStaff"
%\accepts "PianoStaff"
%\accepts "RhythmicStaff"
\accepts "Staff"
%\accepts "StaffGroup"
%\accepts "TabStaff"
  }
  \inherit-acceptability "TimingGroup" "StaffGroup"
}

timingOne = {
  \time 3/4
  s2.*2
}
marksOne = {
  \tempo 4 = 90
}
musicOne = \context Bottom <<
  \timingOne
  \fixed c' {
c4 c c
\repeat volta 2 { c c c }
  }
>>

timingTwo = {
  \time 2/4
  \set Timing.measureLength = #(ly:make-moment 3/8)
  s4.*2
  \repeat volta 2 { s4.*2 }
}
marksTwo = {
  \tempo 4 = 120
}
musicTwo = \context Bottom <<
  \timingOne
  \scaleDurations 3/4
  \fixed c' {
c4 c
c c
\repeat volta 2 {
  c c
  c c
}
  }
>>

<<
  \new TimingGroup <<
\new MarkLine \marksOne
\new Staff \musicOne
  >>
  \new TimingGroup <<
\new MarkLine \marksTwo
\new Staff \musicTwo
\new Staff \musicTwo
  >>
>>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Fingering position in polyphony face to sharp glyph. Bug?

2018-08-01 Thread Simon Albrecht

On 31.07.2018 18:12, Torsten Hämmerle wrote:

David Kastrup wrote

A feature of the placement algorithm and a bug of the character design
maybe?


The sharp glyph design looks OK to me:



left: fingering and accidental skylines taken from the example (stave
removed)
right: MetaFont glyph proof printout with bounding box.

But something definitely does not work quite as intended: fingerings above
accidentals even tend to overlap the accidental to some degree, whereas
below the accidental the is an unnecessarily large gap.


I went to the issue tracker so this doesn’t get lost – it seems to be 
related to or a subset of 
.

There are also two older, fixed issues with related subjects:
 and
.

Best, Simon

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


Re: Changing Staffs

2018-08-01 Thread David Kastrup
Amir Teymuri  writes:

> Hello,
>
> How can i change a Staff for instance from a noraml one to a
> RhythmicStaff and then set back to the noraml Staff?
>
> Greetings,
> Amir

\version "2.19.80"

\new Staff \with { \accepts RhythmicStaff }
{
  c'1 g'
  \stopStaff
  \new RhythmicStaff
  { \omit Staff.TimeSignature 8. 16 8 8 8. 16 8 8 }
  \startStaff
  c''1 \bar "|."
}

-- 
David Kastrup

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


Re: Changing Staffs

2018-08-01 Thread Ben

On 8/1/2018 12:51 PM, Amir Teymuri wrote:

Hello,

How can i change a Staff for instance from a noraml one to a
RhythmicStaff and then set back to the noraml Staff?

Greetings,
Amir


Something like this what you mean?

\version "2.19.81"

global = {
\key c \major
\numericTimeSignature
\time 4/4
\tempo "Slow"
}

right = \relative c'' {
\global
c4 d e f |
\stopStaff
\override Staff.StaffSymbol.line-positions = #'(-8)
\override NoteHead.style = #'cross
\startStaff
\repeat unfold 3 \relative {b'4 b b b} | %% you can probably also change 
to drummode here

\stopStaff
\revert Staff.StaffSymbol.line-count
\revert Staff.StaffSymbol.line-positions
\revert NoteHead.style
\startStaff
\notemode {
c4 f g f
}
}
left = \relative c' {
\global
\clef bass
c,4 d e f |\bar ""
\stopStaff
s1 | s1 | s1 | \bar ""
\startStaff
c4 f g f
}
\new PianoStaff <<
\right
\left
>>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Changing Staffs

2018-08-01 Thread Amir Teymuri
Hello,

How can i change a Staff for instance from a noraml one to a
RhythmicStaff and then set back to the noraml Staff?

Greetings,
Amir
-- 
ateymur...@gmail.com

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


Re: Rehearsal Mark after PageBreaking

2018-08-01 Thread Karim Haddad
Thank you Malte 
 It works perfectly well!
 K
 

On Wed, Aug 01, 2018 at 06:15:23PM +0200,  wrote:
> On Wed, Aug 01, 2018 at 09:08:36AM -0400, lilypond-user-requ...@gnu.org wrote:
> > --
> > 
> > Message: 5
> > Date: Wed, 1 Aug 2018 14:18:36 +0200
> > From: Malte Meyn 
> > To: lilypond-user@gnu.org
> > Subject: Re: Rehearsal Mark after PageBreaking
> > Message-ID: <75c487cd-9796-2f89-f670-cd9965f1e...@maltemeyn.de>
> > Content-Type: text/plain; charset=utf-8; format=flowed
> > 
> > 
> > 
> > Am 01.08.2018 um 14:10 schrieb Karim Haddad:
> > > Hello list,
> > > 
> > > I am finalizing an orchestra score and have this problem i don't know how 
> > > to resolve :
> > > 
> > > When a Page break occurs on a rehearsal mark, the mark is printed befor 
> > > the page turn. How can i force it to be :
> > Are you sure that it?s *before* the page turn?
> > 
> > > a) printed AFTER the page turn
> > > b) printed on both BEFORE and AFTER the page turn.
> > > 
> > > Searched in the snippets for such case didn't find any..
> > 
> > a) \override Score.RehearsalMark.break-visibility = #end-of-line-invisible
> > b) \override Score.RehearsalMark.break-visibility = #all-visible
> > 
> > But a) should be the default. What you describe above seems to be
> > 
> > c) \override Score.RehearsalMark.break-visibility = #begin-of-line-invisible
> > 
> > 
> 
> -- 
> Karim Haddad

-- 
Karim Haddad

email   : karim.had...@ircam.fr
webpage : http://karim.haddad.free.fr

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


Re: Staff Group Spacing of five part score

2018-08-01 Thread David Kastrup
"Peter Gentry"  writes:

> Oh dear , what an idiot.  My troubles resolved by removing ragged bottom
> true.
>
>  
>
> I'm not surprised no one responded. Its what comes from not understanding
> all the overrides for spacings etc despite reading and re-reading the
> manuals. Nothing wrong with the manuals.

I'm pretty sure I remember that our spacing diagrams and instructions in
the manuals have lost touch with reality to a significant degree in 2.16
or so.

-- 
David Kastrup

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


Re:Staff Group Spacing of five part score

2018-08-01 Thread Peter Gentry
Oh dear , what an idiot.  My troubles resolved by removing ragged bottom
true.

 

I'm not surprised no one responded. Its what comes from not understanding
all the overrides for spacings etc despite reading and re-reading the
manuals. Nothing wrong with the manuals.

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


Re: Rehearsal Mark after PageBreaking

2018-08-01 Thread Malte Meyn



Am 01.08.2018 um 14:10 schrieb Karim Haddad:

Hello list,

I am finalizing an orchestra score and have this problem i don't know how to 
resolve :

When a Page break occurs on a rehearsal mark, the mark is printed befor the 
page turn. How can i force it to be :

Are you sure that it’s *before* the page turn?


a) printed AFTER the page turn
b) printed on both BEFORE and AFTER the page turn.

Searched in the snippets for such case didn't find any..


a) \override Score.RehearsalMark.break-visibility = #end-of-line-invisible
b) \override Score.RehearsalMark.break-visibility = #all-visible

But a) should be the default. What you describe above seems to be

c) \override Score.RehearsalMark.break-visibility = #begin-of-line-invisible

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


Rehearsal Mark after PageBreaking

2018-08-01 Thread Karim Haddad
Hello list,

I am finalizing an orchestra score and have this problem i don't know how to 
resolve :

When a Page break occurs on a rehearsal mark, the mark is printed befor the 
page turn. How can i force it to be :
a) printed AFTER the page turn
b) printed on both BEFORE and AFTER the page turn.

Searched in the snippets for such case didn't find any..

Thank you for your help
Best


-- 
Karim Haddad


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


Re: lyLuaTeX anf musixtex clashes

2018-08-01 Thread Urs Liska

Forwarded:

Am 01.08.2018 um 12:43 schrieb Ulrike Fischer:

Hello Urs,

I tried to write to the lilypond list (through gmane) but it will
probably not come through.

I can't run lilypond on my windows ("ERROR: In procedure
primitive-load-path: ERROR: Unable to find file "ice-9/boot-9.scm"
in load path") and I don't really have time to investigate and as I'm
not doing music I don't want to spent to much on it.

But I'm in no way surprised that musixtex clashes:

It uses in various places \immediate\write16 which is problematic with
luatex and can lead to various errors depending on load orders and
package versions. See e.g. https://tex.stackexchange.com/a/435226/2388
for an example where this can clash.


Am 01.08.2018 um 07:00 schrieb liebre...@grossmann-venter.com:
I understand that I cant expect all packages to work with lyLuaTeX but 
I get a clash between using musixtex in lyLuaTeX .


I watered down the clash from a rather large document that stopped 
working since I had o use some musixtex functions.


I attach the file which is lyLuaTeX. Compile it and it will compile 
without problems.
Then activate the package musixtex in the headers as described in the 
document attached. Then the compilation fails.


Any idea of a way around? Maybe it is something really trivial that I 
overlooked, but I am tired trying to find the reason so I ask.


I use the lyLuaTeX manual headers which is a really great template.





\PassOptionsToPackage{unicode=true}{hyperref} % options for packages 
loaded elsewhere

\PassOptionsToPackage{hyphens}{url}
%
\documentclass[]{lyluatexmanual}

%#Extra Packages###
%\usepackage{amsmath}
%
\usepackage{tikz}
%\usepackage{musixtex}
%##


\usepackage[]{libertine}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\usepackage{fixltx2e} % provides \textsubscript
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
  \usepackage[T1]{fontenc}
  \usepackage[utf8]{inputenc}
  \usepackage{textcomp} % provides euro and other symbols
\else % if luatex or xelatex
  \usepackage{unicode-math}
  \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
\fi
% use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
% use microtype if available
\IfFileExists{microtype.sty}{%
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
}
\usepackage{hyperref}
\hypersetup{
    pdfauthor={Bozo the Clown},
    pdfborder={0 0 0},
    breaklinks=true}
\urlstyle{same}  % don't use monospace font for urls
\usepackage{color}
\usepackage{fancyvrb}
\newcommand{\VerbBar}{|}
\newcommand{\VERB}{\Verb[commandchars=\\\{\}]}
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
% Add ',fontsize=\small' for more characters per line
\newenvironment{Shaded}{}{}
\newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{#1}}}
\newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.56,0.13,0.00}{#1}}
\newcommand{\DecValTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}}
\newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}}
\newcommand{\FloatTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}}
\newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.53,0.00,0.00}{#1}}
\newcommand{\CharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\StringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.73,0.40,0.53}{#1}}
\newcommand{\ImportTok}[1]{#1}
\newcommand{\CommentTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textit{#1}}}
\newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.73,0.13,0.13}{\textit{#1}}} 

\newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1 

\newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1 


\newcommand{\OtherTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{#1}}
\newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.02,0.16,0.49}{#1}}
\newcommand{\VariableTok}[1]{\textcolor[rgb]{0.10,0.09,0.49}{#1}}
\newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{#1}}} 


\newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}}
\newcommand{\BuiltInTok}[1]{#1}
\newcommand{\ExtensionTok}[1]{#1}
\newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.74,0.48,0.00}{#1}}
\newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.49,0.56,0.16}{#1}}
\newcommand{\RegionMarkerTok}[1]{#1}
\newcommand{\InformationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1 

\newcommand{\WarningTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1 


\newcommand{\AlertTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{#1}}}

Re: lyLuaTeX anf musixtex clashes

2018-08-01 Thread Urs Liska

Am 01.08.2018 um 07:00 schrieb liebre...@grossmann-venter.com:
I understand that I cant expect all packages to work with lyLuaTeX but 
I get a clash between using musixtex in lyLuaTeX .


I watered down the clash from a rather large document that stopped 
working since I had o use some musixtex functions.


I attach the file which is lyLuaTeX. Compile it and it will compile 
without problems.
Then activate the package musixtex in the headers as described in the 
document attached. Then the compilation fails.


Any idea of a way around? Maybe it is something really trivial that I 
overlooked, but I am tired trying to find the reason so I ask.


I use the lyLuaTeX manual headers which is a really great template.


Please do two separate things:

1)
Remove everything from the document header that isn't related to the 
report (for example all the macros for syntax highlighting surely are 
not related to what you want to show.
If that makes the problem go away re-add them one by one to find the 
"offending" thing.
Generally speaking we need a "minimal working example" to be able to see 
the forest for the trees.


2)
I can't reproduce the error, the file compiles both with and without 
musixtex used.

So please also provide the relevant log output to investigate the issue.

Urs

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