Defining new contexts

2015-02-23 Thread Jim Long
I'm experimenting with defining and using custom contexts.

I have not succeeded in applying the example at:

http://lilypond.org/doc/v2.18/Documentation/notation/defining-new-contexts

to my tiny example below attempting the creation of a custom
ChordNames context.  The '\new XChords' line throws a warning:

GNU LilyPond 2.18.2
Processing `foo.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Interpreting music...
warning: cannot find or create new `XChords'
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `foo.ps'...
Converting to `./foo.pdf'...
Success: compilation successfully completed


How can I modify the second score's source to have the scores
engrave the same in the output file?

Thank you!

Jim


\version "2.18.2"

\score {
  \layout {
\context {
  \ChordNames
\override ChordName.font-size = #12
} % context
  } % layout
  <<
\new ChordNames \chordmode { c1 }
\new Staff  \chordmode { c1 }
  >>
}


\score {
  \layout {
\context {
  \name XChords
\alias ChordNames
\override ChordName.font-size = #12
\type "Engraver_group"
} % context
  } % layout
  <<
\new XChords \chordmode { c1 }
\new Staff   \chordmode { c1 }
  >>
}

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


Re: Spacing Cheat Sheet

2015-02-23 Thread Noeck
Hi Trevor,

thanks I missed that paragraph.

> See 
> http://www.lilypond.org/doc/v2.19/Documentation/notation/flexible-vertical-spacing-paper-variables

Joram

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


Re: Defining new contexts

2015-02-23 Thread Thomas Morley
2015-02-23 9:56 GMT+01:00 Jim Long :
> I'm experimenting with defining and using custom contexts.
>
> I have not succeeded in applying the example at:
>
> http://lilypond.org/doc/v2.18/Documentation/notation/defining-new-contexts
>
> to my tiny example below attempting the creation of a custom
> ChordNames context.  The '\new XChords' line throws a warning:
>
> GNU LilyPond 2.18.2
> Processing `foo.ly'
> Parsing...
> Interpreting music...
> Preprocessing graphical objects...
> Interpreting music...
> warning: cannot find or create new `XChords'
> Preprocessing graphical objects...
> Finding the ideal number of pages...
> Fitting music on 1 page...
> Drawing systems...
> Layout output to `foo.ps'...
> Converting to `./foo.pdf'...
> Success: compilation successfully completed
>
>
> How can I modify the second score's source to have the scores
> engrave the same in the output file?
>
> Thank you!
>
> Jim
>
>
> \version "2.18.2"
>
> \score {
>   \layout {
> \context {
>   \ChordNames
> \override ChordName.font-size = #12
> } % context
>   } % layout
>   <<
> \new ChordNames \chordmode { c1 }
> \new Staff  \chordmode { c1 }
>   >>
> }
>
>
> \score {
>   \layout {
> \context {
>   \name XChords
> \alias ChordNames
> \override ChordName.font-size = #12
> \type "Engraver_group"
> } % context
>   } % layout
>   <<
> \new XChords \chordmode { c1 }
> \new Staff   \chordmode { c1 }
>   >>
> }



Try the following, comments inline:

\score {
  <<
\new XChords \chordmode { c1 }
\new Staff   \chordmode { c1 }
  >>
  \layout {
\context {
  %% copies settings from ChordNames
  %% No need to create a new context from scratch
  \ChordNames
  \name XChords
  \alias ChordNames
  \override ChordName.font-size = #12
}
%% let Score accept XChords, likely need to let it be accepted by other
%% context as well. I.e. do the same for Pianostaff, GrandStaff, ChoirStaff,
%% maybe more, have a look in engraver-init.ly to see which contexts
%% accept the default ChordNames
\context {
\Score
\accepts XChords
}
  } % layout
}

HTH,
  Harm

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


Ambitus placement

2015-02-23 Thread Simon Albrecht

Hello together,

I like to use the Ambitus_engraver in choral scores, but I often find it 
confusing to read, since the ambitus is printed before everything else, 
although its meaning depends on both clef and key signature. From the 
manuals or some snippet I took the idea to \set Staff.key-signature = 
#'() and thus have every non-natural note in the ambitus get an 
accidental, but the context property was changed (?) to key-alterations 
and now this doesn’t work any more.
Thus I’d like to place the ambitus just before the time signature, after 
clef and key signature. How can I do that?


Thanks in advance,
Simon

Tiny example:

\version "2.19.8"

\score {
  \relative {
\time 3/8 \key c \minor
es'8 g c
  }
  \layout {
\context { \Staff
  \consists "Ambitus_engraver" }
  }
}
%%%

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


Re: Ambitus placement

2015-02-23 Thread Kevin Barry
On Mon, Feb 23, 2015 at 12:32 PM, Simon Albrecht 
wrote:

> Thus I’d like to place the ambitus just before the time signature, after
> clef and key signature. How can I do that?
>

Hi Simon,

This should get your part of the way towards what you want. It puts the
ambitus after the key signature, but produces an error and non-optimal
spacing. The property you need to change is BreakAlignment, which
determines the order in which these things appear. Hopefully someone else
can help with the error.

\version "2.18.2"

\score {
  \relative {
\override Score.BreakAlignment #'break-align-orders =
#(make-vector 3 '(left-edge breathing-sign clef key-cancellation
key-signature ambitus time-signature staff-bar cue-clef custos))
\time 3/8 \key c \minor
es'8 g c
  }
  \layout {
\context { \Staff
   \consists "Ambitus_engraver" }
  }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Defining new contexts

2015-02-23 Thread Paul Morris
Jim Long wrote
> I'm experimenting with defining and using custom contexts.

Hi Jim, Looks like Harm has you covered.  See also this snippet that shows
how to define a custom staff context:
http://lsr.di.unimi.it/LSR/Item?id=882

If you are generating midi files you will also need to define your context
for midi as well as layout, as shown in that snippet.  Otherwise you will
get warnings.

HTH,
-Paul



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Defining-new-contexts-tp172185p172192.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: Ambitus placement

2015-02-23 Thread Kevin Barry
OK so the space-alist property is what needed changing. This should do what
you want

\version "2.18.2"

\score {
  \relative {
\override Score.BreakAlignment #'break-align-orders =
#(make-vector 3 '(left-edge breathing-sign clef key-cancellation
key-signature ambitus time-signature staff-bar cue-clef custos))
\override Staff.KeySignature.space-alist =
#'((ambitus extra-space . 1) (time-signature extra-space . 1.15))
\override Staff.Ambitus.space-alist = #'((key-signature extra-space .
1))
\time 3/8 \key c \minor
es'8 g c
  }
  \layout {
\context { \Staff
   \consists "Ambitus_engraver" }
  }
}

On Mon, Feb 23, 2015 at 1:27 PM, Kevin Barry  wrote:

>
> On Mon, Feb 23, 2015 at 12:32 PM, Simon Albrecht 
> wrote:
>
>> Thus I’d like to place the ambitus just before the time signature, after
>> clef and key signature. How can I do that?
>>
>
> Hi Simon,
>
> This should get your part of the way towards what you want. It puts the
> ambitus after the key signature, but produces an error and non-optimal
> spacing. The property you need to change is BreakAlignment, which
> determines the order in which these things appear. Hopefully someone else
> can help with the error.
>
> \version "2.18.2"
>
> \score {
>   \relative {
> \override Score.BreakAlignment #'break-align-orders =
> #(make-vector 3 '(left-edge breathing-sign clef key-cancellation
> key-signature ambitus time-signature staff-bar cue-clef custos))
> \time 3/8 \key c \minor
> es'8 g c
>   }
>   \layout {
> \context { \Staff
>\consists "Ambitus_engraver" }
>   }
> }
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Hungarian Gregorian

2015-02-23 Thread Pierre Perol-Schneider
Dear Sister Judit,
Dear All,

Please find herewith where I am so far :
http://lsr.di.unimi.it/LSR/Item?id=973
I'm still not convinced by the ledger lines (see ask for help here:
http://lilypond.1069038.n5.nabble.com/Fixed-ledger-line-width-with-no-dimension-tc172180.html)
and other few things.

Anyway, I hope you like it !

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


Re: Ambitus placement

2015-02-23 Thread Simon Albrecht

Thanks a lot, Kevin. That did it.
I further modified it to avoid the

programming error: No spacing entry from Item to `time-signature'

and included the other entries present in the default, so it now reads 
as in the attachment.


Best regards, Simon


Am 23.02.2015 15:49, schrieb Kevin Barry:
OK so the space-alist property is what needed changing. This should do 
what you want


\version "2.18.2"

\score {
  \relative {
\override Score.BreakAlignment #'break-align-orders =
#(make-vector 3 '(left-edge breathing-sign clef key-cancellation 
key-signature ambitus time-signature staff-bar cue-clef custos))

\override Staff.KeySignature.space-alist =
#'((ambitus extra-space . 1) (time-signature extra-space . 1.15))
\override Staff.Ambitus.space-alist = #'((key-signature 
extra-space . 1))

\time 3/8 \key c \minor
es'8 g c
  }
  \layout {
\context { \Staff
  \consists "Ambitus_engraver" }
  }
}

On Mon, Feb 23, 2015 at 1:27 PM, Kevin Barry > wrote:



On Mon, Feb 23, 2015 at 12:32 PM, Simon Albrecht
mailto:simon.albre...@mail.de>> wrote:

Thus I’d like to place the ambitus just before the time
signature, after clef and key signature. How can I do that?


Hi Simon,

This should get your part of the way towards what you want. It
puts the ambitus after the key signature, but produces an error
and non-optimal spacing. The property you need to change is
BreakAlignment, which determines the order in which these things
appear. Hopefully someone else can help with the error.

\version "2.18.2"

\score {
  \relative {
\override Score.BreakAlignment #'break-align-orders =
#(make-vector 3 '(left-edge breathing-sign clef
key-cancellation key-signature ambitus time-signature staff-bar
cue-clef custos))
\time 3/8 \key c \minor
es'8 g c
  }
  \layout {
\context { \Staff
  \consists "Ambitus_engraver" }
  }
}




\version "2.19.8"

\score {
  \relative {
\override Score.BreakAlignment #'break-align-orders =
#(make-vector 3 '(left-edge breathing-sign clef key-cancellation key-signature ambitus time-signature staff-bar cue-clef custos))
\override Staff.KeySignature.space-alist =
#'((ambitus extra-space . 1)
   (time-signature extra-space . 1.15))
\override Staff.Ambitus.space-alist =
#'((key-signature extra-space . 1)
   (staff-bar extra-space . 1.1)
   (cue-clef extra-space . 0.5)
   (right-edge extra-space . 0.5)
   (time-signature extra-space . 1.15)
   (first-note fixed-space . 2.5))
\time 3/8 \key c \minor
es'8 g c
  }
  \layout {
\context { \Staff
   \consists "Ambitus_engraver" }
  }
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Right brace problem

2015-02-23 Thread William Marchant

Hi,
I want to bracket the three verses of a song, and follow with a single 
line of words that make up a chorus.  The following code puts the 
bracket in, but the bracket takes up a beat in the music as shown below; 
thus the chorus words are all out by one beat.  Is there a solution to this?

Bill
___
 drops start.
\markup { \hspace #1 \right-brace #45 }
Why can't I



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


Re: Right brace problem

2015-02-23 Thread Br. Samuel Springuel
Someone provided me with the following trick for inserting a asterisk 
that doesn't occupy a note in lyrics:


aster = \set stanza = \markup{"*"}

Then I just place \aster between the words where I want the asterisk to 
appear.


Perhaps that can be adapted to your case (without compilable code I 
can't test).


✝
Br. Samuel, OSB
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ

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


Re: Ambitus placement

2015-02-23 Thread Simon Albrecht
Well, applying this on a multi-line score showed some defects still 
(resulting in a giant heap of programming errors), so I updated the 
information from the IR directly and now it should work for all 
conceivable cases without errors.

Learning by doing ;-)

Yours, Simon

Am 23.02.2015 16:20, schrieb Simon Albrecht:

Thanks a lot, Kevin. That did it.
I further modified it to avoid the

programming error: No spacing entry from Item to `time-signature'

and included the other entries present in the default, so it now reads 
as in the attachment.


Best regards, Simon


Am 23.02.2015 15:49, schrieb Kevin Barry:
OK so the space-alist property is what needed changing. This should 
do what you want


\version "2.18.2"

\score {
  \relative {
\override Score.BreakAlignment #'break-align-orders =
#(make-vector 3 '(left-edge breathing-sign clef key-cancellation 
key-signature ambitus time-signature staff-bar cue-clef custos))

\override Staff.KeySignature.space-alist =
#'((ambitus extra-space . 1) (time-signature extra-space . 1.15))
\override Staff.Ambitus.space-alist = #'((key-signature 
extra-space . 1))

\time 3/8 \key c \minor
es'8 g c
  }
  \layout {
\context { \Staff
  \consists "Ambitus_engraver" }
  }
}

On Mon, Feb 23, 2015 at 1:27 PM, Kevin Barry > wrote:



On Mon, Feb 23, 2015 at 12:32 PM, Simon Albrecht
mailto:simon.albre...@mail.de>> wrote:

Thus I'd like to place the ambitus just before the time
signature, after clef and key signature. How can I do that?


Hi Simon,

This should get your part of the way towards what you want. It
puts the ambitus after the key signature, but produces an error
and non-optimal spacing. The property you need to change is
BreakAlignment, which determines the order in which these things
appear. Hopefully someone else can help with the error.

\version "2.18.2"

\score {
  \relative {
\override Score.BreakAlignment #'break-align-orders =
#(make-vector 3 '(left-edge breathing-sign clef
key-cancellation key-signature ambitus time-signature staff-bar
cue-clef custos))
\time 3/8 \key c \minor
es'8 g c
  }
  \layout {
\context { \Staff
  \consists "Ambitus_engraver" }
  }
}






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


\version "2.19.8"
\paper { ragged-right = ##t }

\score {
  \relative {
\override Score.BreakAlignment #'break-align-orders =
#'#((left-edge
cue-end-clef
breathing-sign
clef
cue-clef
staff-bar
key-cancellation
key-signature
ambitus
time-signature
custos)
(left-edge
cue-end-clef
breathing-sign
clef
cue-clef
staff-bar
key-cancellation
key-signature
ambitus
time-signature
custos)
(left-edge
breathing-sign
clef
key-cancellation
key-signature
ambitus
time-signature
staff-bar
cue-clef
custos))
\override Staff.KeySignature.space-alist =
#'((ambitus extra-space . 1)
   (time-signature extra-space . 1.15)
   (staff-bar extra-space . 1.1)
   (cue-clef extra-space . 0.5)
   (custos extra-space . 0.5)
   (right-edge extra-space . 0.5)
   (first-note fixed-space . 2.5))
\override Staff.Ambitus.space-alist =
#'(;(key-signature extra-space . 1)
   (time-signature extra-space . 1.15)
   (staff-bar extra-space . 1.1)
   (cue-clef extra-space . 0.5)
   (custos extra-space . 0.5)
   (right-edge extra-space . 0.5)
   (first-note fixed-space . 2.5))
\time 3/8 \key c \minor
es'8 g c \break
\key g \minor
es g cis
  }
  \layout {
\context { \Staff
   \consists "Ambitus_engraver" }
\context { \Voice
   \consists "Custos_engraver" }
  }
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Right brace problem

2015-02-23 Thread William Marchant

Thank you both.
It worked!   I used the following variable.

 mybrace = \set stanza = \markup { \right-brace #45 }
Then inserted \mybrace in the lyrics.
Bill

On 15-02-23 11:36 AM, Br. Samuel Springuel wrote:
Someone provided me with the following trick for inserting a asterisk 
that doesn't occupy a note in lyrics:


aster = \set stanza = \markup{"*"}

Then I just place \aster between the words where I want the asterisk 
to appear.


Perhaps that can be adapted to your case (without compilable code I 
can't test).


✝
Br. Samuel, OSB
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ

___
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: Defining new contexts

2015-02-23 Thread Jim Long
On Mon, Feb 23, 2015 at 10:28:37AM +0100, Thomas Morley wrote:
> 
> Try the following, comments inline:
> 
> \score {
>   <<
> \new XChords \chordmode { c1 }
> \new Staff   \chordmode { c1 }
>   >>
>   \layout {
> \context {
>   %% copies settings from ChordNames
>   %% No need to create a new context from scratch
>   \ChordNames
>   \name XChords
>   \alias ChordNames
>   \override ChordName.font-size = #12
> }
> %% let Score accept XChords, likely need to let it be accepted by other
> %% context as well. I.e. do the same for Pianostaff, GrandStaff, 
> ChoirStaff,
> %% maybe more, have a look in engraver-init.ly to see which contexts
> %% accept the default ChordNames
> \context {
> \Score
> \accepts XChords
> }
>   } % layout
> }
> 
> HTH,
>   Harm

Thank you.  But if I have to do all the \Score \accepts stuff,
then I guess I don't understand what '\alias ChordNames' does in
your example.  I'd like to find a simple way of declaring that
"my custom context X is just like built-in context Y, except that
it modifies these settings."  The appeal of that goes downhill
quickly if there are loose ends that have to be tied back into
Lilypond internals.

Is there a way I can define a context based on ChordNames and
have it automatically inherit all of the properties of a
ChordNames context, except the ones that I specifically change in
my custom definition?  In other words, a way to eliminate the
need for the second \context {} block in your example?

Jim

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


Re: Defining new contexts

2015-02-23 Thread Kieren MacMillan
Hi Jim,

> Thank you.  But if I have to do all the \Score \accepts stuff,
> then I guess I don't understand what '\alias ChordNames’ does

If I understand correctly, it allows your new context to accept any commands 
that a \ChordNames context does.

> Is there a way I can define a context based on ChordNames and
> have it automatically inherit all of the properties of a
> ChordNames context, except the ones that I specifically change in
> my custom definition?  In other words, a way to eliminate the
> need for the second \context {} block in your example?

Yes: don’t give it a new name.  ;)

Hope this helps!
Kieren.
___

Kieren MacMillan, composer
www:  
email:  i...@kierenmacmillan.info


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


RE:Right brace problem

2015-02-23 Thread Stephen MacNeil
like this?



\version "2.18.2"


\header {

title = "Whiskey in the Jar"

subtitle = ""

composer = ""

instrument = ""

% arranger = ""

opus = ""

style = "Folk"

copyright = "©Stephen MacNeil 2014"

source = ""

piece = ""

tagline = ""

}

global = {

\key c \major

\time 4/4

}

\paper {

% page-count = 1

top-margin = #5

bottom-margin = #8

system-system-spacing #'basic-distance = #25

%{ score-system-spacing =

#'((basic-distance . 12)

(minimum-distance . 6)

(padding . 1)

(stretchability . 12))

%}

 }

chordNames = \chordmode {

\global


 s4 c1 s a:m s f s c s c s a:m s f s c s |

g s c s a f c2 g c2.


}


% Replace brace150 by whatever between brace0 and brace575 that is of a

% suitable size.

leftbrace = \markup {

\override #'(font-encoding . fetaBraces)

\lookup #"brace150"

}


% In some versions earlier than 20.10.20, the argument to \rotate was

% erroneously treated as radians instead of degrees, i.e. #3.14 was

% needed instead of #180

rightbrace = \markup {

\rotate #180

\leftbrace

}



firstverse = \lyricmode {

\set stanza = "1."

As I was go -- ing ov -- er the Kil -- ma -- gen -- ny moun -- tain.

I met with cap -- tain Far -- rell and his mo -- ney he was coun -- ting.

I first pro -- duced my pis -- tol, and then pro -- duced my ra -- pier.

Say -- ing stand and de -- li -- ver, for you are a bold de -- cei -- ver,
with your


}


secondverse = \lyricmode {

\set stanza = "2."

I coun -- ted out his mon -- ey, it made a pret -- ty pen -- ny.

I put it in my poc -- ket and I took it home to Jen -- ny.

She swo -- re that she loved me, that ne -- ver would she leave me,

but the devil take that wo -- man, for you kn -- ow she tric -- ked me ea
-- sy


}


thirdverse = \lyricmode {

\set stanza = "3."

It was early in the morn -- ing, be -- fore I rose to tra -- vel,

up ca -- me a band of foot -- men and like -- wise cap -- tain Far -- rel.

I first prod -- uced my pis -- tol, for she stole away my rap -- ier,

a -- nd I could -- n't shoot the cap -- tain so a pris -- oner I was ta --
ken.


}


fourthverse = \lyricmode {

\set stanza = "4."

Now some men they like drink -- ing and some men they like fight -- ing.

And some men like to he -- ar, the sound of the cannon ball roar -- ing

Me, -- e I like slee -- p -- ing spe -- cial -- ly in Jenny's cham -- --
bers

But here I am in pri -- son, here I am with a ball and chain ye -- ah


}


fifthverse = \lyricmode {

\set stanza = "5."

As I was go -- ing ov -- er the Kil -- mag -- en -- ny moun -- tain

I met with cap -- tain Far -- rell and his mon -- ey he was count -- ing.

I first pro -- duced my pis -- tol, and then pro -- duced my rap -- ier.

Sa -- id stand and de -- li -- ver, for you are a bold de -- cei -- ver,
with your


}


lyricsfrombrace = \lyricmode { \markup { \rightbrace ring }

dum -- ma do dam -- ma da

whack for the dad -- dy 'ol

whack for the dad -- dy 'ol

there's whis -- key in the jar

}


 \markup { \vspace #1.5

}

 melody = \relative c''{

\partial 4

\tempo 4 = 180

 %Verse

g4^ \markup \bold \box "Verse:" |

e g g a |

g e2 d4 |

e a a b |\break

a e2 g4 |

a a a a |

c8 c4. b4 a |

g g c b |\break

a e2 g4 |

e g g a |

g e2 d4 |

e a a b |\break

a e2 g8 g |

a2 a4. b8 |

c4 c b a |

g g c4. b8 |\break

a g4. e4 c |


 %Chorus

\bar "||"

d ^ \markup \bold \box "Chorus:" d8 d d d c4 |

d1 |

a'4\rest e e4.d8 |\break

e4 g g2 |

a4\rest a a4. g8 |

a4 b c4. a8 |

g4 e d e |

c2. |

\bar "|."



}



\score{

<<

\new ChordNames \chordNames

\new Voice = m \melody

\new Lyrics \lyricsto m \firstverse

\new Lyrics \lyricsto m {\secondverse \lyricsfrombrace }

\new Lyrics \lyricsto m \thirdverse

\new Lyrics \lyricsto m \fourthverse

% \new Lyrics \lyricsto m \fifthverse

>>

\layout { }

\midi {

\context {

\Score

tempoWholesPerMinute = #(ly:make-moment 180 4)

}

}

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


Tempo spanners

2015-02-23 Thread Dominic
(Lilypond 2.19.15)

Dear all,

As you can see from the image and the attached file, I have achieved an
independent text/tempo spanner by creating a special context containing only
the spanner and letting the Score context 'accept' it. I only understand
this technique about 70%, as I hacked it together from snippets I found
online.

Unfortunately, the "rall..." line is 'sitting' on top of an invisible line
created by the existence of the metronome mark. (Removing the metronome mark
allows the spanner to 'fall down' nearer to the staff.)

How can I get both the metronome mark and the tempo spanner to be
interpreted on a single line in the Score context AND still have full
independence of text spanners within individual staffs?

A crude and forced temporary solution would be to do
Score.TextSpanner.Y-offset = #(negative number) on a case-by-case basis, but
in a real-life situation this would not be practical (I am working on an
orchestral score with thousands of bars which needs to be robust)

Any help or insight would be greatly appreciated!

Thanks,

Dominic

 
tempo-spanners.ly
  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Tempo-spanners-tp172220.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: Tempo spanners

2015-02-23 Thread Kevin Barry
On Tue, Feb 24, 2015 at 1:16 AM, Dominic  wrote:

> How can I get both the metronome mark and the tempo spanner to be
> interpreted on a single line in the Score context AND still have full
> independence of text spanners within individual staffs?
>

I think your problem probably is in your newly-defined ScoreSpanner. Are
you sure you need to create a new context just for the tempo marks? I was
able to get the behaviour you wanted by simply using a Dynamics context
instead.

i.e. replace
\new ScoreSpanner { \tempoMarks }
with
 \new Dynamics { \tempoMarks }
and it should work.

If for some reason you really do need your own context then I'd say you
need to add some more options/properties to the one you defined.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tempo spanners

2015-02-23 Thread Dominic
Thanks, Kevin - that appears to work perfectly! 



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Tempo-spanners-tp172220p17.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: Tempo spanners

2015-02-23 Thread Kieren MacMillan
Hi Dominic,

> How can I get both the metronome mark and the tempo spanner to be
> interpreted on a single line in the Score context AND still have full
> independence of text spanners within individual staffs?

Does this help?

\version "2.19"

\layout {
  \context {
\type "Engraver_group"
\name "ScoreSpanner"
\consists "Axis_group_engraver"
\consists "Metronome_mark_engraver"
\override MetronomeMark.Y-offset = #0
\consists "Time_signature_engraver"
\override TimeSignature.stencil = #point-stencil
\consists "Text_spanner_engraver"
\markLengthOff
\override VerticalAxisGroup.staff-affinity = #DOWN
  }
  \context {
\Score
\accepts "ScoreSpanner"
\remove "Metronome_mark_engraver"
  }
}

tempoMarks = {
  \override TextSpanner.bound-details.left.text =
\markup { \combine \bold \upright "rall." \transparent "ty" }
  \time 4/4
  \tempo "Allegro" 4 = 98
  s1
  s1*7/8 \startTextSpan s8 \stopTextSpan
  s1
  \bar "|."
}

localSpanner = {
  \override Staff.TextSpanner.bound-details.left.text =
\markup { \medium \upright \whiteout "sul pont." }
}

musicOne = \relative c' {
  \localSpanner
  c4 \startTextSpan d e f  |
  g a \stopTextSpan b c  |
  c8 b a g f e d c |
}

musicTwo = \relative c' {
  \localSpanner
  c'8 b a g f e d \startTextSpan c |
  c4 d e f8 8 |
  g4 \stopTextSpan a b c
}

\score {
  <<
\new ScoreSpanner \tempoMarks
\new StaffGroup <<
  \new Staff \musicOne
  \new Staff \musicTwo
>>
  >>
}

\markup { \vspace #2 }

\score {
  <<
\new ScoreSpanner \tempoMarks
\new StaffGroup <<
  \new Staff \musicTwo
>>
  >>
}

Cheers,
Kieren.
___

Kieren MacMillan, composer
www:  
email:  i...@kierenmacmillan.info


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


Re: Tempo spanners

2015-02-23 Thread Kieren MacMillan
Hi Dominic,

> Thanks, Kevin - that appears to work perfectly! 

Hmmm… When I try it, in the second score, the baselines of the tempo mark and 
the “rall” are not consistent.
Is that actually what you want?

Cheers,
Kieren.
___

Kieren MacMillan, composer
www:  
email:  i...@kierenmacmillan.info


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


Re: Bug in articulate.ly + TrillSpan + full-measure rests

2015-02-23 Thread Peter Chubb
> "Davide" == Davide Liessi  writes:

Davide> Dear Peter, Il 04/02/15 09.46, Peter Chubb ha scritto:
>> Looks like the code that was added to do agogic accents (aka swing)
>> expands MultiMeasureRestMusic and throws away any articulation
>> events (like the end of the trill spanner) on the way.
>> 
>> The fix is probably to add the ariculations in at the end of
>> ac:unFoldMusic when expanding MultiMeasureRestMusic.

Davide> How can I do this?

Not sure ...

I tried this, but it didn't work --- more investiagtion (that I don;t
have time for at present is needed:
diff --git a/ly/articulate.ly b/ly/articulate.ly
index bbfea19..48a8535 100644
--- a/ly/articulate.ly
+++ b/ly/articulate.ly
@@ -486,7 +486,8 @@
   (make-sequential-music
(list
(make-music 'BarCheck)
-   (make-music 'SkipMusic 'duration (ly:music-property m 'duration))
+   (make-music 'SkipMusic 'duration (ly:music-property m 'duration)
+'articulations (ly:music-property m 'articulations))
(make-music 'BarCheck
  (else
   m)))
@@ -538,7 +539,7 @@
   ((BeamEvent) ; throw away beam events, or they'll be duplicated by turn 
or trill
(loop factor newelements tail actions))
 
-  ((LineBreakEvent FingeringEvent MarkEvent BreathingEvent TieEvent 
SkipEvent RestEvent) ; pass through some events.
+  ((SkipMusic LineBreakEvent FingeringEvent MarkEvent BreathingEvent 
TieEvent SkipEvent RestEvent) ; pass through some events.
(loop (cons 1 1) (cons e newelements) tail actions))
 
   ((ArticulationEvent)
(END)

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


Re: Tempo spanners

2015-02-23 Thread flup2
Anyway, it would be more confortable to have a "TempoTextSpanner", as
proposed in this issue:
https://code.google.com/p/lilypond/issues/detail?id=3176
  

Philippe



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Tempo-spanners-tp172220p172227.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: Bug in articulate.ly + TrillSpan + full-measure rests

2015-02-23 Thread Peter Chubb
> "Davide" == Davide Liessi  writes:

Davide> Dear Peter, Il 04/02/15 09.46, Peter Chubb ha scritto:
>> Looks like the code that was added to do agogic accents (aka swing)
>> expands MultiMeasureRestMusic and throws away any articulation
>> events (like the end of the trill spanner) on the way.
>> 
>> The fix is probably to add the ariculations in at the end of
>> ac:unFoldMusic when expanding MultiMeasureRestMusic.

Davide> How can I do this?


I had a brainstorm -- the problem is SkipMusic which isn't handled
anywhere.  But we can use a SkipEvent instead, and it all works!!!

diff --git a/ly/articulate.ly b/ly/articulate.ly
index bbfea19..882cf95 100644
--- a/ly/articulate.ly
+++ b/ly/articulate.ly
@@ -483,11 +483,11 @@
 (make-sequential-music
  (list-tabulate eff-nrep (lambda (i) (ly:music-deep-copy m
  ((MultiMeasureRestMusic)
-  (make-sequential-music
-   (list
+   (event-chord-wrap! (make-sequential-music (list
(make-music 'BarCheck)
-   (make-music 'SkipMusic 'duration (ly:music-property m 'duration))
-   (make-music 'BarCheck
+   (make-music 'SkipEvent 'duration (ly:music-property m 'duration)
+'articulations (ly:music-property m 'articulations))
+   (make-music 'BarCheck)
  (else
   m)))
(unfold-repeats music)))

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


Durations occuring on their own within a music sequence

2015-02-23 Thread Flaming Hakama by Elaine
%{

Hello, all.

I found an unexpected behavior when using the new feature:
"Durations occuring on their own within a music sequence will take their
pitches from the preceding note or chord."

At least, it was unexpected by me.
Is this repetition of the cautionary accidental by design?

It seems to only occur when used within a chord.
When used with a single note, the accidental is not repeated.

%}

\version "2.19.15"

\relative c' {
r2 r4 fis | g4.^"ok as note" f?8 ~ 2 |
r2. fis4 | 4.^"? with chord" 8 ~ 2 |
r2. fis4 | 4.^"the old way" 8 ~ 2 |
}


Thanks,

David Elaine Alt
415 . 341 .4954   "*Confusion is
highly underrated*"
ela...@flaminghakama.com
self-immolation.info
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user