Re: lilypond: merging rests in polyphonic staff

2015-09-02 Thread Blöchl Bernhard

I do not understand R1*4?

May be you wanted something like that, does not make sense for me and 
may be there are better versions possible, anyway ...


%~~~

\version "2.18.2"
\header {
  title = "merging rests"
}

global = { \time 4/4 }
Key = { \key g\major }

%% -- Piano --
rhUpper = \relative c''
{
  \voiceOne
  \Key
  %r1*4
\mark \markup {"4x"}\repeat volta 4 {r1}
g4 r8 g r2 |
}

rhLower = \relative c' {
  \voiceTwo
  \Key
%r1*4
  \mark \markup {"4x"}\repeat volta 4 {r1}
b4 r8 b r2 |
}

lhUpper = \relative c' {
  \voiceOne
  \Key
  %r1*4 |
  \mark \markup {"4x"}\repeat volta 4 {r1}
  g4 r8 g r2 |
}
lhLower = \relative c {
  \voiceTwo
  \Key
  %r1*4|
  \mark \markup {"4x"}\repeat volta 4 {r1}
  d4 r8 d r2 |
}

PianoRH = {
  \clef treble
  \global
  \set Staff.midiInstrument = #"acoustic grand"
  <<
\new Voice = "one" \rhUpper
\new Voice = "two" \rhLower
  >>
}
PianoLH = {
  \clef bass
  \global
  \set Staff.midiInstrument = #"acoustic grand"
  <<
\new Voice = "one" \lhUpper
\new Voice = "two" \lhLower
  >>
}

piano = {
  <<
\set PianoStaff.instrumentName = #"Piano"

\new Staff = "upper" \PianoRH
\new Staff = "lower" \PianoLH
 \set Staff.shortInstrumentName = #"p"
  >>
}


\score {

  <<
   \new PianoStaff = "piano" \piano
>>

  \layout {
\context { \Staff \RemoveEmptyStaves }
\context {
  \Score
  \override BarNumber.padding = #3
  skipBars = ##t
}
  }
}

%~~~


Am 01.09.2015 22:59, schrieb Martin Lejeune:

Hi Everybody,
here's a newbie question.
I tried to configure "merging automatically" of rests in polyphonic
staffs (piano) with a snipped, which I found in the manual.
It doesn't work.
What's the mistake, any idea?

Thanks very much!

Cheers
Martin

PS:

MY EXAMPLE:


version "2.18.2"
header {
 title = "merging rests"
}

global = { time 4/4 }
Key = { key gmajor }

%% -- Piano --
rhUpper = relative c''
{
 voiceOne
 Key
 R1*4
g4 r8 g r2 |
}

rhLower = relative c' {
 voiceTwo
 Key
R1*4
b4 r8 b r2 |
}

lhUpper = relative c' {
 voiceOne
 Key
 R1*4 |
 g4 r8 g r2 |
}
lhLower = relative c {
 voiceTwo
 Key
 R1*4|
 d4 r8 d r2 |
}

PianoRH = {
 clef treble
 global
 set Staff.midiInstrument = #"acoustic grand"
 <<
 new Voice = "one" rhUpper
 new Voice = "two" rhLower
 >>
}
PianoLH = {
 clef bass
 global
 set Staff.midiInstrument = #"acoustic grand"
 <<
 new Voice = "one" lhUpper
 new Voice = "two" lhLower
 >>
}

piano = {
 <<
 set PianoStaff.instrumentName = #"Piano"

 new Staff = "upper" PianoRH
 new Staff = "lower" PianoLH
 set Staff.shortInstrumentName = #"p"
 >>
}

score {

 <<
 new PianoStaff = "piano" piano
 >>

 layout {
 context { Staff RemoveEmptyStaves }
 context {
 Score
 override BarNumber.padding = #3
 skipBars = ##t
 }
 }
}

the SNIPPET doesn't work:


version "2.18.2"
 new Score {
 <<
 new Staff <<
 s4-markup{ LilyPond default, rests in both voices. }
 relative c'' { c4 d e r | r2 e4 g | R1 }
 \
 relative c'' { c4 b a r | r a g2 | R1 }
 >>
 new Staff with {
 override RestCollision.positioning-done = #merge-rests-on-positioning
 }
 <<
 s4-markup{Merge rests as per standard notation practice.}
 relative c'' { c4 d e r | r2 e4 g | R1 }
 \
 relative c'' { c4 b a r | r a g2 | R1 }
 >>

 }
}
 layout {}
 midi {}
}

___
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: Lyric in popular score

2015-09-02 Thread Phil Holmes
I'm not sure you're getting this right.  Singers sing words to the notes they 
have.  When there are notes with no words, what is the singer supposed to do?  
i.e. when you have given the singer a skip, what do they sing?

I'm supposing that you are not properly separating the notes for the singers 
from the notes for the accompaniment.

--
Phil Holmes


  - Original Message - 
  From: Marcos Press 
  To: Simon Albrecht 
  Cc: lilypond-user@gnu.org 
  Sent: Tuesday, September 01, 2015 11:56 PM
  Subject: Re: Lyric in popular score


  Thanks Simon!

  The \skip was what I miss!


  I'm not used to input lyrics :)



  2015-09-01 23:17 GMT+02:00 Simon Albrecht :

Hello Marcos,

first: welcome to the list!


  actualy... I've been in the list for a couple of years ;)

  But is always great to be welcome Thanks!


  And thanks Lilypond for been a so great software and community!


Second: It almost always helps if you add a compilable, possibly tiny 
example  to your post – thus it will be 
easier a) to understand the problem and b) to give you a solution.
Third general remark: Are you familiar with the Learning Manual? 
 It’s a great 
resource for getting started with LilyPond and covers all the basics, also 
tutoring you on how to use the other manuals – so you shouldn’t miss studying 
that! It’ll be very rewarding. 

But now to your question :-)

Am 01.09.2015 um 22:34 schrieb Marcos Press:

  Dear list,

  Iḿ trying to add the lyric of a folk song to a score.

  How do I tell the lyric in wich measure to start?

There are two general ways to enter lyrics: 1) entering them with explicit 
durations and 2) automatically aligning them to a voice through \addlyrics or 
\lyricsto (or \set associatedVoice).

1) Use a skip of the required length to skip the first part of the music.
2) Repeat the skip as many times as there are notes to skip.

Example attached.

You’ll find that with the first method, the syllables are all left-aligned 
to the notes, at least if you use version 2.18.2 or earlier. This is a bug 
fixed only in the more recent development versions, so at least for the stable 
version you’re better off with \lyricsto.
In simple setups, \addlyrics may be used as well in place of \new Lyrics 
\lyricsto.


  Can anyone point me where to look for an answer?

The Learning Manual has a section on lyrics: 
, but the answer to 
your question is hidden deep in the Notation reference, in 
.


  Thanks in advance!

You’re welcome! HTH [Hope that helps].

Simon





--


  ___
  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: lilypond: merging rests in polyphonic staff

2015-09-02 Thread Robert Schmaus

> 
> I do not understand R1*4?

R is a full bar rest of the specified duration. Thus, R1 is a full bar rest 
that only makes sense in a 4/4 context. Duration-wise it spans the same time as 
r1, but is placed in the middle of the bar instead on the starting beat (or 
moment). Likewise R2 is a full bar rest in a 2/4 context, placed in the middle 
&c. 

Another difference: R1 * 4 specifies 4 consecutive 4/4 full bar rests, whereas 
r1 * 4 specifies a single rest whose duration is quadrupled. 

It's all covered in the notation manual, of course ...

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


Re: lilypond: merging rests in polyphonic staff

2015-09-02 Thread David Kastrup
Robert Schmaus  writes:

>> 
>> I do not understand R1*4?
>
> R is a full bar rest of the specified duration. Thus, R1 is a full bar
> rest that only makes sense in a 4/4 context. Duration-wise it spans
> the same time as r1, but is placed in the middle of the bar instead on
> the starting beat (or moment). Likewise R2 is a full bar rest in a 2/4
> context, placed in the middle &c.
>
> Another difference: R1 * 4 specifies 4 consecutive 4/4 full bar rests,

No, it doesn't.  It specifies a total time span of 1*4 that is to be
filled with full bar rests.  If there are any measure length changes in
parallel music, this difference becomes relevant:

\relative
<<
  { R1*3 c'1 }
  { \time 3/4 c4 d e d e f \time 3/2 e2 f g  \time 4/4 c1 }
>>
> whereas r1 * 4 specifies a single rest whose duration is quadrupled.

Which tends to look strange.

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


RE: Issue 4236

2015-09-02 Thread Javier Ruiz-Alma
https://code.google.com/p/lilypond/issues/detail?id=4236

This also produces the unwanted "warning: omitting tuplet bracket with
neither left nor right bound":
\version "2.18.2"
\relative c''{
  \tupletSpan 4
  \tuplet 3/2 { c8 c c c c c c2.:8 }
}

Workaround:
\version "2.18.2"
\relative c''{
  \tupletSpan 4
  \tuplet 3/2 { c8 c c c c c }
  \tupletSpan \default
  \tuplet 3/2 { c2.:8 }
}

Workaround didn't work for whole measure rests, though.

Javier


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


Re: Issue 4236

2015-09-02 Thread BB

I tried both versions (2.19) and do not see any difference?

On 02.09.2015 10:18, Javier Ruiz-Alma wrote:

https://code.google.com/p/lilypond/issues/detail?id=4236

This also produces the unwanted "warning: omitting tuplet bracket with
neither left nor right bound":
\version "2.18.2"
\relative c''{
   \tupletSpan 4
   \tuplet 3/2 { c8 c c c c c c2.:8 }
}

Workaround:
\version "2.18.2"
\relative c''{
   \tupletSpan 4
   \tuplet 3/2 { c8 c c c c c }
   \tupletSpan \default
   \tuplet 3/2 { c2.:8 }
}

Workaround didn't work for whole measure rests, though.

Javier


___
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: Issue 4236

2015-09-02 Thread BB

Sorry, the point was the warning message, not the view. I missed that.

On 02.09.2015 13:37, BB wrote:

I tried both versions (2.19) and do not see any difference?

On 02.09.2015 10:18, Javier Ruiz-Alma wrote:

https://code.google.com/p/lilypond/issues/detail?id=4236

This also produces the unwanted "warning: omitting tuplet bracket with
neither left nor right bound":
\version "2.18.2"
\relative c''{
   \tupletSpan 4
   \tuplet 3/2 { c8 c c c c c c2.:8 }
}

Workaround:
\version "2.18.2"
\relative c''{
   \tupletSpan 4
   \tuplet 3/2 { c8 c c c c c }
   \tupletSpan \default
   \tuplet 3/2 { c2.:8 }
}

Workaround didn't work for whole measure rests, though.

Javier


___
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



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


Text centralized above a TextSpan

2015-09-02 Thread Caio Giovaneti de Barros

Hi,

Is it possible to have text centralized above a TextSpan? I've already 
saw in the documentation text added in the middle of hairpins and of 
course there is a tuplet number or fraction in the middle of the tuplet 
bracket. But it seems that in Text Span this is not so easy to do.


Thanks!
Caio

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


Re: Text centralized above a TextSpan

2015-09-02 Thread Andrew Bernard
Hi Caio,

Welcome to the list.

I am not sure how long you may have been following things, but this topic came 
up for me recently, and there is various discussion in the archives. In a 
nutshell, the answer is not really. It’s possible of course, but can it be done 
simply and easily, that’s the point. Presently I am working on a solution to 
enable lilypond to do this nicely. I came up with two half baked solutions, one 
involving modifying a text spanner, another modifying a markup, but neither of 
these is satisfactory. I am commencing some work to make an engraver to do the 
job.

I continue to be amazed how useful such a capability would be, and how many 
people request it. Certainly this sort of thing is all through the contemporary 
music scores I deal with. It’s something I hope to see incorporated into 
lilypond one day. As to timeframes for my solution - don’t hold your breath!

Andrew





On 2/09/2015 22:41, "Caio Giovaneti de Barros" 
 wrote:

>
>Is it possible to have text centralized above a TextSpan? 


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


Re: Text centralized above a TextSpan

2015-09-02 Thread David Nalesnik
Hi Caio,

On Wed, Sep 2, 2015 at 8:08 AM, Andrew Bernard 
wrote:

 there is various discussion in the archives.


Try this out:

http://lists.gnu.org/archive/html/lilypond-user/2013-05/msg00405.html

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


Re: Lyric in popular score

2015-09-02 Thread David Kastrup
Marcos Press  writes:

> 2015-09-02 9:33 GMT+02:00 Phil Holmes :
>
>> I'm not sure you're getting this right.  Singers sing words to the notes
>> they have.  When there are notes with no words, what is the singer supposed
>> to do?  i.e. when you have given the singer a skip, what do they sing?
>>
>
> Sure I understand. I think ;)
>
>
>>
>> I'm supposing that you are not properly separating the notes for the
>> singers from the notes for the accompaniment.
>>
>
> The thing is, the score is a single system with a musical intro and the
> melody for the singer. Not seperated. And not an accompaniment.
>
> Simon's solution with the repeated skip make the trick.
> I'm not sure if it's the correct way, but it works.
> The dificult part is to calculate how many notes do I have to skip.

Well, you can just jump in with the lyrics: the Lyrics context does not
need to start with \lyricsto (though synchronization is a bit queer if
it doesn't, but still easier than counting syllables).

\version "2.18.2"

music = \relative {
  c'8 c d c~ c4. r8
  g' e d c~ c4.
}

textExplicit = \lyricmode {
  \skip 1
  And8 now with words. _4.
}

textImplicit = \lyricmode {
  % the number after \repeat unfold is the number of notes skipped
  % the duration of the skip is ignored
  \repeat unfold 4 \skip 1
  And now with words.
}

textMixed = \lyricmode {
  \skip 1*7/8  % must be a bit short so that \lyricsto sees the next onset
  \lyricsto "melody" { And now with words. }
}

\score {
  <<
\new Voice = "melody" \music
\new Lyrics \textExplicit
\new Lyrics \lyricsto "melody" \textImplicit
\new Lyrics \textMixed
  >>
}

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


Re: Lyric in popular score

2015-09-02 Thread tisimst


On 9/2/2015 7:46 AM, Marcos Press [via Lilypond] wrote:
> 2015-09-02 9:33 GMT+02:00 Phil Holmes <[hidden email] 
> >:
>
> I'm not sure you're getting this right.  Singers sing words to the
> notes they have.  When there are notes with no words, what is the
> singer supposed to do?  i.e. when you have given the singer a
> skip, what do they sing?
>
>
> Sure I understand. I think ;)
>
> I'm supposing that you are not properly separating the notes for
> the singers from the notes for the accompaniment.
>
>
> The thing is, the score is a single system with a musical intro and 
> the melody for the singer. Not seperated. And not an accompaniment.
>
> Simon's solution with the repeated skip make the trick.
> I'm not sure if it's the correct way, but it works.
> The dificult part is to calculate how many notes do I have to skip.
>
> For the first mail I prepare a pic for showing and I forgot to attache it.
> Here goes.

This helps a lot to see what you are trying to do. If I were 
transcribing this, instead of using \skip to get the lyrics to the right 
place, I would do this:

 1.   Create two music expressions, one for the intro and one for the
vocal part, and insert them in serial fashion in the same Staff context.
 2.   Put the Lyrics context in parallel with the staff, but assigned
specifically to the vocal part like this:


%%%

introMusic = \relative c' {
   | r8 ees \tuplet 3/2 { d16 ees d } c8
   | f4. f16 aes
   | c8 c ~ c16 c bes c
   | aes8 g4 ees8
   | d8 c \tuplet 3/2 { c d ees }
   | g8 f ~ f8. f16
   | f8 b, ~ b16 c d b
   | c2 ~
   | c2 ~
   | c4.
}

vocalMusic = \relative c'' {
 g8
   | c8 c16 c c8 c
   | c8 aes4.
   % etc.
}

vocalLyrics = \lyricmode {
   Cha -- ma -- va -- se Car -- men -- ci -- ta
   % etc.
}

\score {
   <<
 \new Staff {
   \clef treble
   \time 2/4
   \key ees \major
   \introMusic
   \new Voice = "soloist" \vocalMusic
 }
 \new Lyrics \lyricsto "soloist" \vocalLyrics
   >>
   \layout {}
}

%%%



FWIW,
Abraham


bbhbbcfc.png (27K) 





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Lyric-in-popular-score-tp180543p180611.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: stacking whole notes of different size

2015-09-02 Thread Marc Hohl

Hi Harm, hi Stephen,

Am 02.09.2015 um 00:16 schrieb Thomas Morley:
[...]

Hi Marc,

I wrote some test
[...]
I hope it helps a bit, although I've found no convincing general value.
png with your example is attached as well.


thanks a lot for your investigations! Now I have something to work with ...

Do you consider that this is a bug, or are there any design decisions 
that explain this behavior?


Best regards,

Marc


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


Re: Lyric in popular score

2015-09-02 Thread Simon Albrecht

Am 02.09.2015 um 18:59 schrieb tisimst:



 1.  Create two music expressions, one for the intro and one for the
vocal part, and insert them in serial fashion in the same Staff
context.
 2.  Put the Lyrics context in parallel with the staff, but assigned
specifically to the vocal part like this:



That’s nice!
Thanks, Simon
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lyric in popular score

2015-09-02 Thread Simon Albrecht

Am 02.09.2015 um 16:07 schrieb David Kastrup:


Well, you can just jump in with the lyrics: the Lyrics context does not
need to start with \lyricsto (though synchronization is a bit queer if
it doesn't, but still easier than counting syllables).
Brilliant, David! It’s good to have you for such valuable thinking 
around the corner and discovering normally unused possibilities :-)


Yours, Simon

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


Re: Lyric in popular score

2015-09-02 Thread David Kastrup
Simon Albrecht  writes:

> Am 02.09.2015 um 16:07 schrieb David Kastrup:
>>
>> Well, you can just jump in with the lyrics: the Lyrics context does not
>> need to start with \lyricsto (though synchronization is a bit queer if
>> it doesn't, but still easier than counting syllables).
> Brilliant, David! It’s good to have you for such valuable thinking
> around the corner and discovering normally unused possibilities :-)

The other solution would have been
\new OneStaff { \new Lyrics \skip 1*8 \new Lyrics \lyricsto "..." {  } }
but, uh, the respective issue is still on review or countdown.

That one should be less awkward.  And the problem is that once a
\lyricsto iterator ends, its containing context is usually terminated.
So the thinking around the corner likely only works for a starting skip,
not an ending one.  I'll wait for OneStaff before doing any more
experiments, though.

-- 
David Kastrup

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


Re: stacking whole notes of different size

2015-09-02 Thread Marc Hohl

Hi again,

Am 02.09.2015 um 00:16 schrieb Thomas Morley:


Hi Marc,

I wrote some test

m =
\relative c' {
   c1~ 1~ 2 s2
   \bar "||"
   c1~ 1~ 1
   \bar "||"
   c2~ 2~ 2~ 2~ 2~ 2
   \bar "||"
}

\transpose c c  \m
\transpose c d  \m
\transpose c e  \m
\transpose c f  \m
\transpose c g  \m
\transpose c a  \m
\transpose c b  \m
\transpose c c' \m
\transpose c d' \m
\transpose c e' \m
\transpose c f' \m
\transpose c g' \m


If you compile this with

\paper {
  indent = 0
  ragged-right = ##f
}

then the ties are drawn more evenly. It's interesting to see the changes 
when you comment out the indent line or ragged-right or both.


It looks as if lilypond needs some "space" to draw correct ties.

With ragged-right = ##t and c1~ 1~ 2 s2
you see the difference,
ragged-right = ##f and c1~ 1~ 2 s2 looks good (concerning ties).

Best regards,

Marc

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


Re: Help for \beamExceptions

2015-09-02 Thread Richard Shann
On Tue, 2015-09-01 at 21:04 +0200, David Kastrup wrote:
> Richard Shann  writes:
> 
> > I've been trying to use the music function \beamExceptions
> 
> "scheme function"

Is that to say that this should be called a scheme function not a music
function? I found it documented at

http://www.lilypond.org/doc/v2.19/Documentation/notation/available-music-functions

as Available music functions ...


> 
> > which is in version 2.19.25, I can't find anything much to document it
> > though.  For example, trying this
> >
> > \version "2.19.25"
> >
> > MvmntIVoiceI = {
> >  e'8[ f'8 g'] a'8\noBeam b'8 a'[ g'8 f'] |
> >  e'8 f' g' a' b' a' g' f' 
> > }
> >
> > \score { 
> > \new Staff {\time 4/4 \MvmntIVoiceI } 
> > \layout {
> > \set beamExceptions = \beamExceptions { \time 4/4  e' 8[ f' 8
> > g' ] a' 8\noBeam b' 8 a' [ g' 8 f' ] }
> > }
> >   }
> >
> > the second bar is not beamed like the first, despite the music argument
> > to \beamExceptions being a copy of the first bar.
> 
> \beamExceptions only takes explicit beams.  \noBeam is useless here.
> 
> > Is the next stop some source file for finding out what can be done, or
> > am I missing some documentation?
> 
> It's just notes and [ and ].

hmm, well I have tried \tuplet (I think it was, or the older \times
perhaps) and it seemed to understand that - I haven't yet tried \grace,
it would be nice if that could be autobeamed, though perhaps that is not
possible. And there is a comment somewhere about using | to separate
something, I guess bars with the same \time signature (or, indeed
different ones).
I did have it barfing on empty measures (s1*4/4 perhaps) where the
underlying scheme errored without any pleasant LilyPond error message
resulting, I'm not sure if this is something that should be pursued...

> 
> > Another topic that came up while I was doing this:
> > I have used \set beamExceptions here, but I couldn't figure out what is
> > allowed for setting the context - Voice and Staff worked but \set
> > Score.beamExceptions was ignored, and I couldn't find out what \set
> > Timing.beamExceptions was doing - Timing doesn't appear in the hierarchy
> > of contexts...
> 
> Timing is a context alias established by the Timing_translator.  There
> is a hardwired alias Timing for the Score context in case you use Timing
> before anything has been called.  The location in ly/engraver-init.ly
> where this alias of Timing to Score (which is only relevant if you are
> at outer Score level or there is no intervening Timing alias) states:
> 
>   \alias "Timing"
> 
>   %% An alias for Timing is established by the Timing_translator in
>   %% whatever context it is initialized, and the timing variables are
>   %% then copied from wherever Timing had been previously established.
>   %% The alias at Score level provides a target for initializing
>   %% Timing variables in layout definitions before any
>   %% Timing_translator has been run.
> 

Thanks very much for this insight into what is going on with Timing -
I'll be going on (hopefully) to make setting beaming patterns at Voice
and at top level available to Denemo users, so this will hopefully help.

Richard





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


Re: Help for \beamExceptions

2015-09-02 Thread Richard Shann
On Tue, 2015-09-01 at 22:06 +0200, Simon Albrecht wrote:
> Hello Richard,
> 
> if you want to use \beamExceptions, it seems like the only way to do this is
> %%
> \version "2.19.25"
> 
> {
>\time 4/4
>\set Timing.beamExceptions = \beamExceptions { 8[] 8[ 8] 8[]  8[] 8[ 
> 8 8] }
>e'8 f' g' a' b' a' g' f'
> }
> %%
> 
> – that’s a bit cumbersome

That's really good to know - it will be easy to substitute \noBeam for
[] as the user creates the Beaming Rules from the selection in Denemo,
so that answers that need perfectly (well, assuming the [] syntax is not
just an accident of the parser - I don't recall seeing it documented).

Thanks v. much indeed!

Richard

>  and IMO it should lead to the same result with 
> { 8 8[ 8] 8  8 8[ 8 8] }.
> So currently this is a case where the immediate, Scheme way is more 
> straightforward:
> 
> 
> \version "2.19.25"
> 
> {
>\time 4/4
>\set Timing.beamExceptions = #'((end . ((1/8 . (1 2 1 1 3))
>(1/12 . (1 6 2 1 2)
>e'8 f' g' a' b' a' g' f'
>\tuplet 3/2 4 { e' f' g' f' g' a' g' a' b' a' g' f' }
> }
> 
> 
> Yours, Simon
> 
> Am 01.09.2015 um 20:37 schrieb Richard Shann:
> > I've been trying to use the music function \beamExceptions which is in
> > version 2.19.25, I can't find anything much to document it though.
> > For example, trying this
> >
> > \version "2.19.25"
> >
> > MvmntIVoiceI = {
> >   e'8[ f'8 g'] a'8\noBeam b'8 a'[ g'8 f'] |
> >   e'8 f' g' a' b' a' g' f'
> > }
> >
> > \score {
> >  \new Staff {\time 4/4 \MvmntIVoiceI }
> >  \layout {
> > \set beamExceptions = \beamExceptions { \time 4/4  e' 8[ f' 8
> > g' ] a' 8\noBeam b' 8 a' [ g' 8 f' ] }
> >  }
> >}
> >
> > the second bar is not beamed like the first, despite the music argument
> > to \beamExceptions being a copy of the first bar.
> >
> > Is the next stop some source file for finding out what can be done, or
> > am I missing some documentation?
> >
> > Another topic that came up while I was doing this:
> > I have used \set beamExceptions here, but I couldn't figure out what is
> > allowed for setting the context - Voice and Staff worked but \set
> > Score.beamExceptions was ignored, and I couldn't find out what \set
> > Timing.beamExceptions was doing - Timing doesn't appear in the hierarchy
> > of contexts...
> >
> > Richard
> >   
> >
> >
> > ___
> > 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: Help for \beamExceptions

2015-09-02 Thread David Kastrup
Richard Shann  writes:

> On Tue, 2015-09-01 at 21:04 +0200, David Kastrup wrote:
>> Richard Shann  writes:
>> 
>> > I've been trying to use the music function \beamExceptions
>> 
>> "scheme function"
>
> Is that to say that this should be called a scheme function not a music
> function? I found it documented at
>
> http://www.lilypond.org/doc/v2.19/Documentation/notation/available-music-functions
>
> as Available music functions ...

Well.  Most of them are, but this one has a documented different return
type.  Should we call the superset of them LilyPond functions, or rather
bite the bullet and create multiple categories?

>> > which is in version 2.19.25, I can't find anything much to document it
>> > though.  For example, trying this
>> >
>> > \version "2.19.25"
>> >
>> > MvmntIVoiceI = {
>> >  e'8[ f'8 g'] a'8\noBeam b'8 a'[ g'8 f'] |
>> >  e'8 f' g' a' b' a' g' f' 
>> > }
>> >
>> > \score { 
>> > \new Staff {\time 4/4 \MvmntIVoiceI } 
>> > \layout {
>> >\set beamExceptions = \beamExceptions { \time 4/4  e' 8[ f' 8
>> > g' ] a' 8\noBeam b' 8 a' [ g' 8 f' ] }
>> > }
>> >   }
>> >
>> > the second bar is not beamed like the first, despite the music argument
>> > to \beamExceptions being a copy of the first bar.
>> 
>> \beamExceptions only takes explicit beams.  \noBeam is useless here.
>> 
>> > Is the next stop some source file for finding out what can be done, or
>> > am I missing some documentation?
>> 
>> It's just notes and [ and ].
>
> hmm, well I have tried \tuplet (I think it was, or the older \times
> perhaps) and it seemed to understand that - I haven't yet tried \grace,
> it would be nice if that could be autobeamed, though perhaps that is not
> possible.

It isn't.

> And there is a comment somewhere about using | to separate something,
> I guess bars with the same \time signature (or, indeed different
> ones).

No, it's always for exactly one time signature, but at the time it is
called, LilyPond has no idea just how long a bar is and can't count it
off itself.  So you need to separate rule patterns by |.

> I did have it barfing on empty measures (s1*4/4 perhaps) where the
> underlying scheme errored without any pleasant LilyPond error message
> resulting, I'm not sure if this is something that should be pursued...

Possibly, but it does not exactly make much sense to beam over that.

-- 
David Kastrup

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


Re: Profondo: note symbols in TupletBracket

2015-09-02 Thread tisimst
David,

On 8/31/2015 5:55 AM, David Stephen Grant [via Lilypond] wrote:
> Hi all,
> I'm using Abraham's Profondo font, but having some trouble with 
> TupletBrackets.
>
> I would like to indicate the duration of some feathered beamed groups 
> with a TupletBracket showing the total duration. The following 
> simplified code works fine with the default font, but the symbol in 
> the first bracket doesn't print when I switch to Profondo. I also get 
> the error: warning: Found infinity or nan in output. Substituting 0.0
>
> \version "2.19.25"
> \include "profondo.ily"
> {
>   \override TupletBracket.padding = #1.5
>   \override TupletBracket.bracket-visibility = ##t
>   \once \override TupletNumber.text = \markup { \note #"4" #UP }
>   \tuplet 5/8 { a'16 a' a' a' a' }
>   \revert Staff.TupletNumber.font-name
>   \once \override TupletNumber.text = \markup { \note #"4" #UP }
>   \tuplet 5/8 { a'16 a' a' a' a' }
>   \override Staff.TupletNumber.font-name = #"ProfondoTupletNumbers"
>   \tuplet 5/8 { a'16 a' a' a' a' }
> }
>
> As most TupletBrackets should be using the Profondo tuplet number font 
> I thought about reverting to the default for these brackets, but 
> ideally I would prefer not to have to remember to turn Profondo back 
> on afterwards as in the above code.
>
> Any ideas?

I've been thinking about this since you first sent it and it is starting 
to drive me crazy! I've poured over the code that creates the \note 
stencil and I can't find anything that would cause it to go crazy like 
this. The only font it even refers to is the music font, so I don't know 
why the \markup has a hard time with it. In the example you show (not 
sure if you are doing anything more complex in the actual score), the 
\markup doesn't use any text from ProfondoTupletNumbers at all when it 
draws the \note, so I have to assume the error is caused by the \markup 
command itself, though I haven't been able to prove that yet.

One way around this (at least to make it less of a typing hassle) is to 
remove the \override from the \layout block and instead encapsulate it 
in variables so you can use them on-the-fly, like this:

%

profondoTupletNumeralsOn = \override Staff.TupletNumber.font-name = 
#"ProfondoTupletNumbers"
profondoTupletNumeralsOff = \revert Staff.TupletNumber.font-name

%

It's probably more than you want to do, but this might be the best thing 
to do for the time being. Do you use the \note function in your tuplet 
markings a lot?

Best,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Profondo-note-symbols-in-TupletBracket-tp180478p180620.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: Help for \beamExceptions

2015-09-02 Thread David Kastrup
Richard Shann  writes:

> On Tue, 2015-09-01 at 22:06 +0200, Simon Albrecht wrote:
>> Hello Richard,
>> 
>> if you want to use \beamExceptions, it seems like the only way to do this is
>> %%
>> \version "2.19.25"
>> 
>> {
>>\time 4/4
>>\set Timing.beamExceptions = \beamExceptions { 8[] 8[ 8] 8[]  8[] 8[ 
>> 8 8] }
>>e'8 f' g' a' b' a' g' f'
>> }
>> %%
>> 
>> – that’s a bit cumbersome
>
> That's really good to know - it will be easy to substitute \noBeam for
> [] as the user creates the Beaming Rules from the selection in Denemo,
> so that answers that need perfectly (well, assuming the [] syntax is not
> just an accident of the parser - I don't recall seeing it documented).

I have my doubt it produces something useful, but when in doubt, you can
always check the results by writing
\void \displayScheme \beamExceptions ...

or by just replacing your call of \beamExceptions with
\displayScheme \beamExceptions and see what gets output.

-- 
David Kastrup

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


Re: Help for \beamExceptions

2015-09-02 Thread Richard Shann
On Wed, 2015-09-02 at 20:13 +0200, David Kastrup wrote:
> 
> > And there is a comment somewhere about using | to separate
> something,
> > I guess bars with the same \time signature (or, indeed different
> > ones).
> 
> No, it's always for exactly one time signature, but at the time it is
> called, LilyPond has no idea just how long a bar is and can't count it
> off itself.  So you need to separate rule patterns by |. 

Ah, in that case I need a way of building up the list of beamExceptions,
so the user can define beaming rules for all the time signature changes
they use in the score. My first attempt was this:
8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
beamExceptions_first =   \beamExceptions { \time 4/4  e'8 f'8[ a'8 b'8  a'8] 
f'8[ e'8 e'8] }
beamExceptions_second =  \beamExceptions { \time 6/8  e'8 f'8[ b'8  a'8] f'8[ 
e'8] }

\layout {
\set beamExceptions = #(append beamExceptions_first beamExceptions_second)
}
8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><

but using \displayScheme I see that this results in

(make-music
  'ContextSpeccedMusic
  'context-type
  'Bottom
  'element
  (make-music
'PropertySet
'value
(list (list (quote end) (list 1/8 5 3))
  (list (quote end) (list 1/8 4 2)))
'symbol
'beamExceptions))

Which I guess means that this is not creating a beaming rule specific to
those time signatures - can I augment the alist returned by
\beamExceptions to make it into a rule specific to the time signature
concerned? I guess I would know the answer to this if I could find out
what the alist holds initially, but my feeble attempt to elicit this via
\void \displayScheme #beamExceptions
gave me

#>

which is the "music" function rather than the alist - how come these two
things appear to have the same name?

Richard








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


Re: Help for \beamExceptions

2015-09-02 Thread Simon Albrecht

Am 02.09.2015 um 21:35 schrieb Richard Shann:

On Wed, 2015-09-02 at 20:13 +0200, David Kastrup wrote:

And there is a comment somewhere about using | to separate

something,

I guess bars with the same \time signature (or, indeed different
ones).

No, it's always for exactly one time signature, but at the time it is
called, LilyPond has no idea just how long a bar is and can't count it
off itself.  So you need to separate rule patterns by |.

Ah, in that case I need a way of building up the list of beamExceptions,
so the user can define beaming rules for all the time signature changes
they use in the score. My first attempt was this:
8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
beamExceptions_first =   \beamExceptions { \time 4/4  e'8 f'8[ a'8 b'8  a'8] 
f'8[ e'8 e'8] }
beamExceptions_second =  \beamExceptions { \time 6/8  e'8 f'8[ b'8  a'8] f'8[ 
e'8] }

\layout {
\set beamExceptions = #(append beamExceptions_first beamExceptions_second)
}
8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><

but using \displayScheme I see that this results in

(make-music
   'ContextSpeccedMusic
   'context-type
   'Bottom
   'element
   (make-music
 'PropertySet
 'value
 (list (list (quote end) (list 1/8 5 3))
   (list (quote end) (list 1/8 4 2)))
 'symbol
 'beamExceptions))

Which I guess means that this is not creating a beaming rule specific to
those time signatures - can I augment the alist returned by
\beamExceptions to make it into a rule specific to the time signature
concerned?
Any value of beamExceptions only applies to one time signature, which is 
the one currently in effect.

  I guess I would know the answer to this if I could find out
what the alist holds initially, but my feeble attempt to elicit this via
\void \displayScheme #beamExceptions
gave me

#>

which is the "music" function rather than the alist - how come these two
things appear to have the same name?

Well, that’s by design :-)
The default values of beamExceptions for each time signature are defined 
in scm/time-signature-settings.scm – also the best resource for examples 
in dealing with the ‘internal’ Scheme data structure of beamExceptions, 
which is hard to grasp :-)


Yours, Simon

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


Re: Help for \beamExceptions

2015-09-02 Thread Simon Albrecht

Am 02.09.2015 um 21:35 schrieb Richard Shann:

I guess I would know the answer to this if I could find out
what the alist holds initially, but my feeble attempt to elicit this via
\void \displayScheme #beamExceptions
gave me

#>


You can display the list of beam exceptions currently in effect by
%%%
\version "2.19.25"

{
  \time 4/4
  \applyContext #(lambda (context)
   (display (ly:context-property context 'beamExceptions)))
  c
}
%%%

See Extending Manual, section 2.6.1.

Yours, Simon

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


getting ties to NOT avoid accidentals

2015-09-02 Thread robert edge
Let's say I have something like:

{
\clef bass
cis1~ cis!1~ cis!1
}

I want all the accidentals to appear and I do not want the tie to be moved
really far away like it is now.  I preferred a few versions ago when it
would go right through the accidental.

I realize this is arguably crude and will make lovers of fine page layout
cringe.  

Nonetheless, is it possible to rig Lilypond to behave this way?

thanks!


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


Re: getting ties to NOT avoid accidentals

2015-09-02 Thread Andrew Bernard
Hi Robert,

Well I am cringing.

But does this come closer to what you are after?


\version "2.19.26"

{
\clef bass
\once \override Tie.staff-position = #-2
cis1~ cis!1~ cis!1
}


You don’t really want the tie to cross the accidental, do you?

Andrew




On 3/09/2015 12:40, "robert edge" 
 wrote:

>I want all the accidentals to appear and I do not want the tie to be moved
>really far away like it is now. 


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


Re: getting ties to NOT avoid accidentals

2015-09-02 Thread Andrew Bernard
Any better?


\version "2.19.26"

{
  \clef bass  

  \override Tie.details = #'((note-head-gap . 0))
  
  cis1~ cis!1~ cis!1
  dis! ~ dis!
  fis! ~ fis!
  bes! ~ bes!
}

Andrew


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