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: repeats in polymetric score

2018-07-23 Thread holl...@hollandhopson.com


> 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.

Thanks for your help, David.
Holland 
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: repeats in polymetric score

2018-07-23 Thread David Kastrup
"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

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


repeats in polymetric score

2018-07-23 Thread holl...@hollandhopson.com
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. 

Thanks for your help,
Holland

Here’s an example:
*
\version "2.19.30"
\language "english"

\layout {
  \context {
\Score
\remove "Bar_number_engraver"
 %allow each part to have its own time signature and barlines
 \remove "Timing_translator"
 \remove "Default_bar_line_engraver"
  }
  
\context {
\Staff
%allow each part to have its own time signature and barlines
\consists "Timing_translator"
\consists "Default_bar_line_engraver"
  }
}


violin = \relative c'' {
  \time 5/4
  c4 c c c c
  \repeat volta 2 {
  \time 4/4
  c4 c c c
  }
  c4 c c c
}

violinTwo = \relative c'' {
  \time 4/4
  d4 d d d
  \repeat volta 2 {
  \time 5/4
  d4 d d d d
  }
  \time 4/4
  d4 d d d
}


violinPart = \new Staff \with {
  instrumentName = "Violin"
} \violin

violinTwoPart = \new Staff \with {
  instrumentName = "Violin 2"
}\violinTwo

\score {
  <<
\violinPart
\violinTwoPart
  >>
  \layout { }
}

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