Spacing Issue

2015-02-26 Thread Joe Lowry
Hi,

I'm a relatively inexperienced Lily Pond user, I need to have a page break
after the first page (first movement) of my piece (for duo percussion).  I
am using the \break command after the last note that I want on the first
page and I am properly getting a line break.  The problem is that I only
have two systems of music in the first page, and I need them to take up only
half the page so that I can insert text into the bottom part of the page. 
Currently, Lily Pond's automatic spacing system is formatting the two
systems on my first page to take up the whole page.  Clearly, I need to
override the system spacing logic somehow, but I need to only do it for the
first page, which is in its own score block, without ruining the other pages
of the score.  I haven't yet found any particularly helpful documentation
online -- I'd love any ideas or code snippets I can get!

Thanks


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


Re: Spacing Issue

2015-02-26 Thread Urs Liska


Am 26.02.2015 um 09:07 schrieb Joe Lowry:

Hi,

I'm a relatively inexperienced Lily Pond user, I need to have a page break
after the first page (first movement) of my piece (for duo percussion).  I
am using the \break command after the last note that I want on the first
page and I am properly getting a line break.  The problem is that I only
have two systems of music in the first page, and I need them to take up only
half the page so that I can insert text into the bottom part of the page.
Currently, Lily Pond's automatic spacing system is formatting the two
systems on my first page to take up the whole page.  Clearly, I need to
override the system spacing logic somehow, but I need to only do it for the
first page, which is in its own score block, without ruining the other pages
of the score.  I haven't yet found any particularly helpful documentation
online -- I'd love any ideas or code snippets I can get!

Thanks


First: you can place your scores inside \bookpart {} sections, which 
will take care of the page breaks automatically.
if your first score contains less than one page and the second one more 
than one page this should be all you need for your case (AFAICS).


Second: you can place \paper {} sections in each of the bookparts, 
affecting them individually.


Have a \paper {} section on the first page, containing one or more of

  ragged-bottom = ##t
  ragged-last-bottom = ##t

and experiment with these variables (##t/##f, present or not) until you 
get what you need for your given document.
These and the other paper variables are documented here: 
http://lilypond.org/doc/v2.18/Documentation/notation/paper-size-and-automatic-scaling#fixed-vertical-spacing-_005cpaper-variables


HTH
Urs



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



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


Re: Hungarian Gregorian

2015-02-26 Thread Pierre Perol-Schneider
Hi,

2015-02-26 14:29 GMT+01:00 Rita Composer :


> For me the dot question is still a problem.
> I changed some and an extra dot appeares at the end of the melisma. I used
> your last modern Gregorian ily file...but still.
>

Those lines (line 9 to 13) :

melisma = #(define-music-function (parser location mus)
 (ly:music?)
 #{
   { \neume { $mus } \omit Accidental h }
 #})

have nothing to do in your 'salveregina_Jn' file.
Delete those lines and extra dots will desepear.

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


Re: Hungarian Gregorian

2015-02-26 Thread Pierre Perol-Schneider
2015-02-26 14:29 GMT+01:00 Rita Composer :



> I1d like to ask how can I override the space between single noteheads/
> melismas just in one score.
> So for example I have 1 page with several scores and I'd like to have
> bigger distance / space between noteheads in one score.
>
> I've found this in the ily file
>
> space =
>
> #(define-music-function
>
> (parser location anzahl)
>
> (number?)
>
> #{
>
> \grace { \repeat unfold #anzahl s }
>
> #})
>
>
> But I cannot see any numbers to change...
>


Yes, absolutely, '\space' is your friend; try:

\version "2.19.15"

\include "modernGregorian.ily"

\transpose c c' {
  \clef G
  \omit Stem
  \key c\major
  \melisma { a4^\markup {\fontsize #1.5 l} \lst a \tli g \lst a \tli g }
  \space #30
  d \bar "||"
}

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


Re: voices in the same place

2015-02-26 Thread Pierre Perol-Schneider
Hi,

try:

\override NoteColumn.force-hshift = #0


(see attached file).


Cheers,

Pierre


2015-02-26 14:50 GMT+01:00 Rita Composer :

> Hi All,
>
> Can you help me to adjust the two Voices - two noteheads exactly under
> eachother?
>
> It works when they are not so close, but not, when they are too close
> together.
>
> We work with the modernGregorian.ily
> Thank you!
> sr. Judit
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
\version "2.19.15"
\include "modernGregorian.ily"
%\pointAndClickOff
\language "deutsch"

\header { 
  tagline = ##f
}

myChordsKompletóriumbatónusEgyA = \chordmode { \germanChords
e\breve:m h4.:m a\breve:m d4. h\breve:m g4. 
a\breve:m7 e4.:m g\breve d4. h\breve:m e4.:m 
}

myMusicKompletóriumbatónusHáromSzólamEgy = \transpose c c' {
  \clef G
  \omit Stem
  \key e\minor
  h\breve^\markup {\fontsize #1.5 m} 
   \override ParenthesesItem #'font-size = #1 \parenthesize g4 
   h\breve a4. 
   \once\override Staff.BarLine.bar-extent = #'(-1 . 1) \bar "|"
   g\breve fis4. \bar "|"
   e\breve 
   \override ParenthesesItem #'font-size = #1 \parenthesize d4 
   e\breve fis4. 
   \once\override Staff.BarLine.bar-extent = #'(-1 . 1) \bar "|"
   g\breve a4 g 
   \override ParenthesesItem #'font-size = #1 \parenthesize g4 a 
   \override ParenthesesItem #'font-size = #1 \parenthesize a4 h4.
  
  \bar "|."
}
myMusicKompletóriumbatónusHáromSzólamKettő = \transpose c c' {
  \clef G
  \omit Stem
  \key e\minor
g\breve
   \override ParenthesesItem #'font-size = #1 \parenthesize e4 
   g\breve e4. 
   \once\override Staff.BarLine.bar-extent = #'(-1 . 1) \bar "|"
   e\breve h,4. \bar "|"
   c\breve 
   \override ParenthesesItem #'font-size = #1 \parenthesize h,4 
   c\breve d4. 
   \once\override Staff.BarLine.bar-extent = #'(-1 . 1) \bar "|"
   e\breve fis4 e 
   \override ParenthesesItem #'font-size = #1 \parenthesize e4  fis 
   \override ParenthesesItem #'font-size = #1 \parenthesize dis4 dis4.
  \bar "|."
}
myMusicKompletóriumbatónusHáromSzólamHárom = \transpose c c' {
  \clef G
  \omit Stem
  \key e\minor
  
  
  \bar "|."
}
myLyricsKompletóriumbatónusHáromSzólam = \lyricmode {
  
}

\score {
  <<
   \cadenzaOn
   \new ChordNames \myChordsKompletóriumbatónusEgyA
   \new Staff <<
\new Voice = "myMusicKompletóriumbatónusHáromSzólamdallamEgy" \myMusicKompletóriumbatónusHáromSzólamEgy
\new Voice = "myMusicKompletóriumbatónusHáromSzólamdallamKettő" \myMusicKompletóriumbatónusHáromSzólamKettő
 %   \new Voice = "myMusicKompletóriumbatónusHáromSzólamdallamKettő" \myMusicKompletóriumbatónusHáromSzólamHárom
   \new Lyrics \lyricsto "myMusicKompletóriumbatónusHáromSzólamdallamEgy"  \myLyricsKompletóriumbatónusHáromSzólam
  >>   
  
  >>
  \layout { 
\context {
  \Score
   \override NoteColumn.ignore-collision = ##t %% <= avoid warnings
  \override NoteColumn.force-hshift = #0
}
  }
  \header {
piece = \markup {  
  \fontsize #2 
  {
% \bold "3."
"Tónus "   
  }
}
  }
}

\paper { 
  left-margin = 4
  right-margin = 1
  top-margin =  1
  bottom-margin = 1
  indent = 0

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


Re: Moving a markup

2015-02-26 Thread Pierre Perol-Schneider
Hi Ralph,

Try:

\version "2.18.2"

\relative c'' {
  \key c \major
  \clef treble
  \time 2/4
  R1*1/2
  %% try:
  %\tweak extra-offset #'(5 . 5)
  \mark\markup\concat {
\large \bold { "Un poco Pi" \char ##x00F9 " lento, " }
\tiny \note #"4" #UP " = 66"
} |
  e4 b |
  b4 c |
  d4 a |
  a4 c |
  b4 f |
  f4 g |
}

\relative c'' {
  \key c \major
  \clef treble
  \time 2/4
  R1*1/2
  %% try:
  %-\tweak extra-offset #'(5 . 5)
  ^\markup\concat {
\large \bold { "Un poco Pi" \char ##x00F9 " lento, " }
\tiny \note #"4" #UP " = 66"
} |
  e4 b |
  b4 c |
  d4 a |
  a4 c |
  b4 f |
  f4 g |
}

Cheers,
Pierre

2015-02-26 15:00 GMT+01:00 Ralph Palmer :

> Greetings -
>
> I'm running LilyPond 2.18.2 under Win7, with Frescobaldi 2.17.2.
>
> I'm trying to move a markup which has a \concat command, and I cannot
> figure out how to do it. As you can see from the snippet, I've tried a
> variety of solutions. Besides those commented out, I tried \null, but I may
> not have placed the command in the correct spot.
>
> I would greatly appreciate a nudge in the right direction.
>
> I appreciate your time and attention,
>
> Ralph
>
> %%% snippet 
>
> \version "2.18.2"
>
> moveMarkupTest =
> \relative c'' {
>   \key c \major
>   \clef treble
>   \time 2/4
>
>
>   %\once \override TextScript.extra-offset = #'(-20 . -20)
>   R1*1/2
>   %\mark
>   ^\markup   {
> %\left-align
> %\halign #-20
> \concat {
>   {
> \large \bold
> {
>   "Un poco Pi" \char ##x00F9 " lento, "
> }
>   }
>   {
> \tiny \note #"4" #UP " = 66"
>   }
> }
>
>   } |
>   e4 b |
>   b4 c |
>   d4 a |
>   a4 c |
>   b4 f |
>   f4 g |
> }
>
> \score {
>   \moveMarkupTest
> }
>
>
> % end snippet 
>
> --
> Ralph Palmer
> Brattleboro, VT
> USA
> palmer.r.vio...@gmail.com
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Moving a markup

2015-02-26 Thread Klaus Blum
Hi Ralph, 

it seems that markup above full measure rests is center-aligned above the
rest. If you replace the full measure rest by a "normal" rest, it should be
left-aligned. 

Regarding the tweaks: They are applied AFTER the position for the markup is
calculated, therefore they should work well. Maybe it's easier to use a
function that takes the offset values as parameters:

% --
\version "2.18.2"

captionXY =
#(define-music-function (parser location shiftX shiftY text)
   (number? number? markup?)
   #{
 -\tweak extra-offset $(cons shiftX shiftY)
 -\markup $text
   #})


moveMarkupTest =
\relative c'' {
  \key c \major
  \clef treble
  \time 2/4

  R1*1/2
  ^\captionXY #0 #0
  \markup \concat {
{
  \large \bold
  {
"Un poco Pi" \char ##x00F9 " lento, "
  }
}
{
  \tiny \note #"4" #UP " = 66"
}
  }
  |
  e4 b |
  b4 c |
  d4 a |
  a4 c |
  b4 f |
  f4 g |
}

\score {
  \moveMarkupTest
}
% --

Cheers, 
Klaus




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Moving-a-markup-tp172321p172332.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Moving a markup

2015-02-26 Thread Thomas Morley
2015-02-26 15:00 GMT+01:00 Ralph Palmer :
> Greetings -
>
> I'm running LilyPond 2.18.2 under Win7, with Frescobaldi 2.17.2.
>
> I'm trying to move a markup which has a \concat command, and I cannot figure
> out how to do it. As you can see from the snippet, I've tried a variety of
> solutions. Besides those commented out, I tried \null, but I may not have
> placed the command in the correct spot.
>
> I would greatly appreciate a nudge in the right direction.
>
> I appreciate your time and attention,
>
> Ralph
>
> %%% snippet 
>
> \version "2.18.2"
>
> moveMarkupTest =
> \relative c'' {
>   \key c \major
>   \clef treble
>   \time 2/4
>
>
>   %\once \override TextScript.extra-offset = #'(-20 . -20)
>   R1*1/2
>   %\mark
>   ^\markup   {
> %\left-align
> %\halign #-20
> \concat {
>   {
> \large \bold
> {
>   "Un poco Pi" \char ##x00F9 " lento, "
> }
>   }
>   {
> \tiny \note #"4" #UP " = 66"
>   }
> }
>
>   } |
>   e4 b |
>   b4 c |
>   d4 a |
>   a4 c |
>   b4 f |
>   f4 g |
> }
>
> \score {
>   \moveMarkupTest
> }
>
>
> % end snippet 
>
> --
> Ralph Palmer
> Brattleboro, VT
> USA
> palmer.r.vio...@gmail.com

In this thread a plethora of grobs in relation with MultiMeasureRest
is confused:  TextScript, MetronomeMark, RehearsalMark,
MultiMeasureRestText.

I'd recommend to (re-)read NR 1.2.2 Full measure rests
http://www.lilypond.org/doc/v2.19/Documentation/notation/writing-rests#full-measure-rests


Maybe the following demo-code maybe helpful as well:


\version "2.16.0" %% and higher
#(if (< (cadr (ly:version)) 16)
 (ly:error "Does not work before 2.16.0"))


\score{
  \relative c' {
\tempo "I'm a \"MetronomeMark\"" 4 = 66
R1
\repeat unfold 12 c4
\break
R1^\markup {  "I'm a \"MultiMeasureRestText\"" \note #"4" #UP " = 66"}
\repeat unfold 12 c4
\break
<>^\markup {  "I'm a \"TextScript\"" \note #"4" #UP " = 66"}
R1
\repeat unfold 12 c4
\break
\mark \markup {  "I'm a \"RehearsalMark\"" \note #"4" #UP " = 66"}
R1
\repeat unfold 12 c4
  }
  \layout {
\override Score.MetronomeMark #'color = #blue
\override MultiMeasureRestText #'color = #green
\override TextScript #'color = #red
\override Score.RehearsalMark #'color = #cyan

indent = 30
short-indent = 30
  }
  \header {
piece =
  \markup
\rounded-box
\fontsize #1.5
\fill-line {
  \column {
"Showing different grobs in relation with a MultiMeasureRest"
"No tweaks/overrides (apart from colors) are applied,
i.e. the default properties are valid"
\line {
  "see also:"
  \with-url
  #(format #f "http://www.lilypond.org/doc/v~a.~a/Documentation/
notation/writing-rests#full-measure-rests"
   (car (ly:version)) (cadr (ly:version)))
  \italic "NR 1.2.2 -> Full measure rests"
}
#(format #f "Compiled with LilyPond ~a" (lilypond-version))
  }
}
  }
}


Btw, the \tweak, as suggested by Pierre, can happily ignore _which_
grob is tweaked, because it's always applied to the next grob (at
least in the suggested manner).
One could say, the user does not need to know, how the grob is called,
which he tweaks.
Is this an advantage? I doubt.

And I wouldn't use 'extra-offset, in general it's a last resort.
Use 'padding, 'X-offset, 'Y-offset, 'self-alignment-X, etc
'extra-offset is applied _after_ the spacing etc is done, think about it!

Cheers,
  Harm

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


Re: Moving a markup

2015-02-26 Thread Stephen MacNeil
Both suggestions worked for me. I tend to put things in a separate file as
definitions/variables etc. I just like it clean to see what I am doing
(especially in large scores).

Like

%%


\version "2.18.2"


pos = \markup \concat {

\large \bold { "Un poco Pi" \char ##x00F9 " lento, " }

\tiny \raise #.415 \note #"4" #UP \smaller " = 66"

}

 \relative c {

 R1*1/2 \tweak extra-offset #'(5 . .5) \mark \markup \pos

c c c c c

}


% same idea


pod = \markup \concat {

\large \bold { "Un poco Pi" \char ##x00F9 " lento, " }

\tiny \raise #.415 \note #"4" #UP " = 66"

}

 \relative c {

 R1*1/2 <>^\markup \translate #'(-6 . 3) \pod

c c c c c

}


% also I can just use the variable if I want


pof = \markup \concat {

\large \bold { "Un poco Pi" \char ##x00F9 " lento, " }

\tiny \raise #.415 \note #"4" #UP " = 66"

}

 \relative c {

 R1*1/2^\pof

c c c c c

}


%


I also made it look a bit nicer well for me anyway :)

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