forcing bar number events

2013-09-19 Thread Werner LEMBERG

[2.17.26]

Folks,


consider this snippet

  \relative c'' {
\compressFullBarRests
\set Score.barNumberVisibility = #(every-nth-bar-number-visible 5)
\override Score.BarNumber.break-visibility = #end-of-line-invisible
c1 | c1 | c1 | c1 |
c1 | c1 | c1 | c1 |
R1*4 |
c1 | c1 | c1 | c1 |
  }

Is it possible to make bar number `10' visible automatically?  Looking
up the documentation, it seems that a bar number gets printed only if
there is a bar line, and \compressFullBarRests prevents that...

It would be a great simplification if it would not be necessary to
artificially break up `R1*4' into `R1 R1*3'.


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


Re: [ANNOUNCE] New Portfile for Frescobaldi on Mac (Wilbert Berendsen)

2013-09-19 Thread Vaughan McAlley
On 17 September 2013 19:55, Davide Liessi  wrote:

> Dear Guy,
>
> 2013/9/17 Guy Stalnaker :
> > 3. run "sudo port selfupdate" to get things up to date after the clean
> and
> > FileVault issues (this took well over SIX hours -- good gawd)
>
> Are you really saying that "sudo port selfupdate" took six hours? Or
> was it a "sudo port upgrade outdated" after the selfupdate?
> The latter could be OK, if there were large ports to be compiled from
> source; I would be very worried of the former.
>
> > 
> > [Lots of traceback calls]
> > import popplerqt4
> > RuntimeError: the sip module implements API v10.0 to v10.1 but the
> > popplerqt4 module requires API v9.1
> > 
>
> Usually this means that sip was updated but pyqt4 or
> python-poppler-qt4 still are not.
> The solution would be the one mentioned by Philippe: rebuild
> py27-pyqt4 and py27-python-poppler-qt4. [1]
>
> There actually was an update of sip port yesterday that I didn't
> notice until now, but...
>
> > "port installed" shows:
> >
> > 
> > Anorien% sudo port installed | grep sip
> >   py27-sip @4.13.3_0
> >   py27-sip @4.14.2_0
> >   py27-sip @4.15.1_0 (active)
> > Anorien [sudo port installed | grep sip] ~
> > 13-09-16 10:45PM
> > Anorien% sudo port installed | grep poppler
> >   poppler @0.20.5_0+qt4+quartz
> >   poppler @0.22.0_0+qt4+quartz
> >   poppler @0.24.1_0+qt4+quartz (active)
> >   poppler-data @0.4.6_0 (active)
> >   py27-python-poppler-qt4 @0.16.3_1 (active)
> > 
>
> ... you apparently have the same versions installed as me, and not the
> newer version of sip, and my installation doesn't have sip API
> problems.
>
> (Just a side note: you don't need to use "sudo" with port commands if
> you are only retrieving information about ports.)
>
> Anyway, I've just updated all ports ("sudo port sync", "sudo port
> upgrade outdated") without rebuilding python-poppler-qt4, and they are
> still working as expected.
>
> Maybe the outdated port is pyqt4: can you tell me the output of "port
> installed name:pyqt4"?
>
> > I cannot deactivate the active py27-sip or poppler. I get a dependency
> > errors.
>
> MacPorts doesn't let you deactivate ports that are dependencies of
> other ports: you must use the force ("-f") option if you really want
> to do that.
>
> > I installed the non-devel frescobaldi and get the exact same error on
> > running from terminal.
>
> OK. I don't think it is a problem with Frescobaldi.
>
> 2013/9/17 Guy Stalnaker :
> > I have a working frescobaldi. I had to  download the latest popplerqt4
> from
> > the poppler source. I did the bad thing and installed it over the old,
> but I
> > have a working frescobaldi and that's the important thing.
>
> Let me say this: yes, you did the bad thing.
> If you manually installed stuff inside MacPorts' tree (/opt/local),
> it's very likely that you are going to have similar problems in the
> future.
>
> Now you have a working Frescobaldi, but if you'll have problems in the
> future, I'll be happy to help.
>
> Best wishes.
> Davide
>
>
> [1] This is a task for Portfile writers: whenever a dependency x of
> port y is updated and rebuilding port y is required, the Portfile
> writer increases the "revision number" of port y, so MacPorts knows
> that there was an update, even if the version number does not change.
> This is usually done at the same time as the update in port x, but
> since my Portfiles aren't in the main repository, I need to notice the
> update of port sip and then update my ports.
> Anyway, the latest update of sip didn't change the API, so this is not
> what happened this time.
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
Davide, you are (as we say in Australia) an utter legend!

I was reluctant to touch my painfully installed, nearly working version of
Frescobaldi, but it broke when I tried to install something else. There was
a problem installing Poppler, but uninstalling and reinstalling the
dependencies fixed that. Now for the first time MIDI is working (I had
assumed Portmidi was permanently broken on Mac), and Poppler can now
display large documents properly.

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


Re: Lyric separator

2013-09-19 Thread Kieren MacMillan
Hi Thomas,

> At least it seems to work.

+1 from here!

Thanks,
Kieren.

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


Re: Lyric separator

2013-09-19 Thread Thomas Morley
Hi Kieran, David


2013/9/20 Kieren MacMillan 

> Hi David,
>
> Could it be a question of version?
>
>
> Certainly could.
> I'm running 2.17.26-1.
>
> Here's what I get when I add a verse (with v2 and v4 ostensibly 'lined'):
>
> Curiouser and curiouser!
>

Actually not.

The functions as it stands, reads out a grob at first position in a line,
filtering _all_ LyricText-grobs of the system. Though, this might be the
grob of the actual context, _or_ _not_.
Comparing this grob with the grob of the context where the function
applies, may return #f _or_ #t !!

I come up with some coding below, strongly feeling it could be done better,
easier, more straight forward, etc
Please regard it as first step, only.
At least it seems to work.


\version "2.17.25"

%% Ofcourse: Thanks to David Nalesnik
#(define (sort-by-X-coord sys grob-lst)
"Arranges a list of grobs in ascending order by their X-coordinates"
   (let* ((X-coord (lambda (x) (ly:grob-relative-coordinate x sys X)))
  (comparator (lambda (p q) (< (X-coord p) (X-coord q)) )))
 (sort grob-lst comparator)))

#(define (my-callback grob)
   (let* ((text (ly:grob-property-data grob 'text))
  (refp (ly:grob-system grob))
  ; This returns all grobs in a line.
  (all-grobs (ly:grob-array->list
  (ly:grob-object refp 'all-elements)))
  ; We're only interested in LyricText grobs.
  (just-syllables
(filter
  (lambda (x) (grob::has-interface x 'lyric-syllable-interface))
  all-grobs))
  ; We want the first LyricText grob in the system.  We must locate
this
  ; by position, since grobs don't seem to be listed in order in the
  ; 'all-elements grob array.
   ; Arrange them in ascending order by their X-coordinate.
   (sorted-syls (sort-by-X-coord refp just-syllables))
   ; Find the index where the X-coordinates change.
   (coord-change-at
 (list-index
   (lambda (x y)
 (< (ly:grob-relative-coordinate x refp X)
(ly:grob-relative-coordinate y refp X)))
   sorted-syls
   (cdr sorted-syls)))
   ; Only return a list of grobs with lowest but equal
X-coordinate.
   (relevant-grobs
  (call-with-values
(lambda ()
  (split-at
(sort-by-X-coord refp just-syllables)
(+ 1 coord-change-at)))
(lambda (a b) a


 ; If our LyricText grob is the first on the line, override its stencil.
 (if (member grob relevant-grobs)
 (begin
   (ly:grob-set-property! grob 'text
 #{
   \markup \combine
 #text
 \translate #'(1.6 . -0.5) \draw-line #'(-4 . 0)
 #})
   (ly:grob-set-property! grob 'stencil (lyric-text::print
grob))

melody = \repeat unfold 16 g'4
lyr = \lyricmode {
  \repeat unfold 16 sol
}
\score {
  \new Staff
  <<
\new Voice = "voice" {
  \melody
}
\new Lyrics \lyricsto "voice" \lyr
\new Lyrics \with {
  \override LyricText #'after-line-breaking = #my-callback
} \lyricsto "voice" \lyr
\new Lyrics \lyricsto "voice" \lyr
\new Lyrics \with {
  \override LyricText #'after-line-breaking = #my-callback
} \lyricsto "voice" \lyr
\new Lyrics \lyricsto "voice" \lyr
   >>
}
\paper {
  indent = 0
  line-width = 5.5\cm
}

HTH,
  Harm
<>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lyric separator

2013-09-19 Thread Kieren MacMillan
Hi David,Could it be a question of version?Certainly could.I'm running 2.17.26-1.Here's what I get when I add a verse (with v2 and v4 ostensibly 'lined'):Curiouser and curiouser!Kieren.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: adjusting horizontal spacing - a function dedicated to Graham

2013-09-19 Thread Janek Warchoł
Hi Kieren,

2013/9/18 Kieren MacMillan :
> Hi Janek,
>
> This is amazing — great work!

Thanks, but more credit should go to David Nalesnik!  He wrote the
core of the function, and he wrote \offset function which inspired
this one.

> It even seems to Do The Right Thing™ when it comes to \newSpacingSection.
> (I'll report back for sure after more rigorous testing.)

Indeed, my tests seem to confirm this :-)

best,
Janek

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


Re: Lyric separator

2013-09-19 Thread David Nalesnik
Hi Kieren,


On Thu, Sep 19, 2013 at 3:12 PM, Kieren MacMillan <
kieren_macmil...@sympatico.ca> wrote:

> Hi David,
>
> This is nice work… but it doesn't quite work as the OP is expecting, I
> think:
>
> \version "2.17.25"
>
> #(define (my-callback grob)
>(let* ((text (ly:grob-property-data grob 'text))
>   (refp (ly:grob-system grob))
>   ; This returns all grobs in a line.
>   (all-grobs (ly:grob-array->list
>   (ly:grob-object refp 'all-elements)))
>   ; We're only interested in LyricText grobs.
>   (just-syllables
> (filter
>   (lambda (x) (grob::has-interface x
> 'lyric-syllable-interface))
>   all-grobs))
>   ; We want the first LyricText grob in the system.  We must
> locate this
>   ; by position, since grobs don't seem to be listed in order in
> the
>   ; 'all-elements grob array.
>   (first-syl
>  (fold
>(lambda (elem prev)
>  (if (< (ly:grob-relative-coordinate elem refp X)
> (ly:grob-relative-coordinate prev refp X))
>  elem
>  prev))
>   (car just-syllables)
>   just-syllables)))
>
>  ; If our LyricText grob is the first on the line, override its
> stencil.
>  (if (eq? grob first-syl)
>  (begin
>(ly:grob-set-property! grob 'text
>  #{ \markup \combine #text \translate #'(1.6 . -0.5)
> \draw-line #'(-4 . 0) #})
>(ly:grob-set-property! grob 'stencil (lyric-text::print
> grob))
>
> melody = \repeat unfold 16 g'4
> lyr = \lyricmode {
>   \repeat unfold 16 sol
> }
> \score {
>   \new Staff <<
> \new Voice = "voice" {
>   \melody
> }
> \new Lyrics \lyricsto "voice" \lyr
> \new Lyrics \with {
>   \override LyricText #'after-line-breaking = #my-callback
> } \lyricsto "voice" \lyr
> \new Lyrics \lyricsto "voice" \lyr
>   >>
> }
> \paper {
>   indent = 0
>   line-width = 5.5\cm
> }
>
>
I'm not sure what problem this snippet is illustrating... The image
provided by the OP shows that a dividing line is inserted between selected
selected stanzas, which you can do by adding the override to a specific
Lyrics context as you do above, for each instance needed.  Are you
referring to the interaction of the line with stanza numbers (which I know
is flawed)?

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


Re: Lyric separator

2013-09-19 Thread Kieren MacMillan
Hi David,I'm not sure what problem this snippet is illustrating... The image provided by the OP shows that a dividing line is inserted between selected selected stanzas, which you can do by adding the override to a specific Lyrics context as you do above, for each instance needed.  Are you referring to the interaction of the line with stanza numbers (which I know is flawed)?No…When I compile it with the original (single-Lyric) snippet, it works as expected.With my modified (multiple-Lyric) snippet, no lines appear at all, anywhere:Cheers,Kieren.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bracket with text label

2013-09-19 Thread David Kastrup
Alec Bartsch  writes:

> On Sep 19, 2013, at 12:35 PM, David Kastrup  wrote:
>
>> 4 is a number.  You want (ly:make-duration 2 0) instead.
>
> OK, great, this version is going in my jazz \include and will tighten up my 
> code considerably:
>
> triplet = #(define-music-function (parser location tuplet-span music)
> 
> ((ly:duration? (ly:make-duration 2 0)) ly:music?)
>   #{
>   \tuplet 3/2 $tuplet-span { $music }
>   #})

When in doubt, you can always make do with the following:

triplet = #(define-music-function (parser location tuplet-span music)
 ((ly:duration?) ly:music?)
   (if tuplet-span
#{
\tuplet 3/2 $tuplet-span $music
#}
#{
\tuplet 3/2 4 $music
#}))

Just using the default #f for a defaulted value can save a lot of
thinking sometimes.

-- 
David Kastrup

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


Re: lilyglyphs package released!

2013-09-19 Thread Urs Liska

Am 19.09.2013 19:44, schrieb Philippe Massart:

Le 19 sept. 2013 à 16:26, SoundsFromSound  a écrit :


Urs,

This is wonderful thank you so much for sharing! Although I am receiving a
"Service Temporarily Unavailable" error when I try to visit CTAN, I'm sure
it'll be up again soon.

I'll use TeXLive on my KDE box, this is perfect for what I need in my
current text projects.

-Ben



Hello,

It's due to a problem with Tex Live Utility

No, it's a CTAN server problem.

Still, and the same with dante.de BTW

Urs

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


Re: Acciaccaturas and slashed stems

2013-09-19 Thread David Kastrup
Gilberto Agostinho  writes:

> Well David, thanks for your answers and opinions. Even though I really
> respect your views (and you certainly know infinitely more about LilyPond
> and programming than I do), I still think I am right on this one.

There are currently Auto_beam_engraver, Beam_engraver,
Grace_beam_engraver.  The desired behavior seems simple enough that one
should be able to write a Grace_auto_beam_engraver purely in Scheme.

> I personally see the lack of slashes on beamed grace notes + the lack
> of automatic beaming for grouped grace notes as major drawbacks with
> LilyPond.

If that are major drawbacks, LilyPond is doing pretty well.

-- 
David Kastrup


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


Re: Lyric separator

2013-09-19 Thread Kieren MacMillan
Hi David,

This is nice work… but it doesn't quite work as the OP is expecting, I think:

\version "2.17.25"

#(define (my-callback grob)
   (let* ((text (ly:grob-property-data grob 'text))
  (refp (ly:grob-system grob))
  ; This returns all grobs in a line.
  (all-grobs (ly:grob-array->list
  (ly:grob-object refp 'all-elements)))
  ; We're only interested in LyricText grobs.
  (just-syllables
(filter
  (lambda (x) (grob::has-interface x 'lyric-syllable-interface))
  all-grobs))
  ; We want the first LyricText grob in the system.  We must locate this
  ; by position, since grobs don't seem to be listed in order in the
  ; 'all-elements grob array.
  (first-syl
 (fold
   (lambda (elem prev)
 (if (< (ly:grob-relative-coordinate elem refp X)
(ly:grob-relative-coordinate prev refp X))
 elem
 prev))
  (car just-syllables)
  just-syllables)))

 ; If our LyricText grob is the first on the line, override its stencil.
 (if (eq? grob first-syl)
 (begin
   (ly:grob-set-property! grob 'text
 #{ \markup \combine #text \translate #'(1.6 . -0.5) \draw-line 
#'(-4 . 0) #})
   (ly:grob-set-property! grob 'stencil (lyric-text::print grob))

melody = \repeat unfold 16 g'4
lyr = \lyricmode {
  \repeat unfold 16 sol
}
\score {
  \new Staff <<
\new Voice = "voice" {
  \melody
}
\new Lyrics \lyricsto "voice" \lyr
\new Lyrics \with {
  \override LyricText #'after-line-breaking = #my-callback
} \lyricsto "voice" \lyr
\new Lyrics \lyricsto "voice" \lyr
  >>
}
\paper {
  indent = 0
  line-width = 5.5\cm
}

No doubt you'll find an easy fix.

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


font for conductor signs

2013-09-19 Thread Stefan Thomas
Dear community,
is there a font available for special signs like up- and downbeat for the
conductor?
Do You know where to find one?
Thanks
Stefan
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bracket with text label

2013-09-19 Thread Alec Bartsch

On Sep 19, 2013, at 12:35 PM, David Kastrup  wrote:

> 4 is a number.  You want (ly:make-duration 2 0) instead.

OK, great, this version is going in my jazz \include and will tighten up my 
code considerably:

triplet = #(define-music-function (parser location tuplet-span music)
  
((ly:duration? (ly:make-duration 2 0)) ly:music?)
#{
\tuplet 3/2 $tuplet-span { $music }
#})

Thanks all.

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


Re: Acciaccaturas and slashed stems

2013-09-19 Thread Paul Scott
On Thu, Sep 19, 2013 at 07:25:01PM +0200, David Kastrup wrote:
> Gilberto Agostinho  writes:
> 
> > But I imagine you meant a single unbeamed note in among other grace
> > notes in a complex situation, as in the piano sonata example you sent,
> > right? So, about it: you are totally right on this one, in this case
> > the autobeaming wouldn't work out well and the user would need to make
> > manual adjustments. But my point is: isn't this is a complex example
> > and the by far the most common is to have same duration grace notes?
> > Also, the user who would type such passage with LilyPond still would
> > need to manually set the beams, so actually it would make little
> > difference for him if autoBeam was on.
> 
> You are presuming that LilyPond has some greedy "autoBeam" setting which
> will be broken by any manual beaming instruction and will exclude single
> notes.  Or that it should have that.

What about an option or some simple code that would turn on autobemaing for 
grace notes?  or maybe code that I could use to cause that?  I have not 
so far ever wanted unbeamed graces.  I would turn on such an option or 
put the code in my common.ily file.

Paul Scott



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


Re: Acciaccaturas and slashed stems

2013-09-19 Thread Gilberto Agostinho
David, please don't get me wrong... LilyPond is wonderful and it is my most
used music software lately (I basically quit using any other software for
engraving my compositions, I used to work with Sibelius for several years
before). The output of LilyPond is infinitely better from any point of view,
and I finally feel my scores have the publishing quality I was longing for.
If anything I said made you think I feel the opposite, then I would like to
take it back immediately.

My very original question was about the slash problem and it was solved in
the very first reply to this thread. If I continued here writing my
opinions, suggestions, comments, bringing examples, ietc, is because I do
care very much about LilyPond and I would be more than glad to be able to
improve it in any respect I may.

Take care,
Gilberto



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Acciaccaturas-and-slashed-stems-tp150981p151064.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: Bracket with text label

2013-09-19 Thread Alec Bartsch
On Sep 19, 2013, at 11:03 AM, Urs Liska  wrote:
> even=
> #(define-music-function (parser location music)(ly:music?)
>   #{
> \once \override TupletNumber #'text = "even"
> \times 4/4 { $music }
>   #})
> 
> \even { a8 g16 f }
> 
> Maybe it works ;-)

Thanks for the suggestion. That works great, and while I'd rarely use that one, 
this little shorthand I'll use constantly:

triplet = #(define-music-function (parser location music)(ly:music?)
#{
\tuplet 3/2 { $music }
#})

\triplet { a8 b c }

However, I'd like to make a version that accepts an optional argument for the 
tuplet span duration, defaulting to 4, so I can do this for the most common 
case:

\triplet { a8 b c a b c a b c a b c }

but still be able to do this on occasion:

\triplet 2 { a4 b c a b c }

How do I do the default value properly? My guess doesn't quite work:

triplet = #(define-music-function (parser location tuplet-span 
music)((ly:duration? '4) ly:music?)
#{
\tuplet 3/2 $tuplet-span { $music }
#})

I get this error:

example.ly:24:44: error: wrong type for argument 3.  Expecting music, found 4
\evenly { a8 g16 f } g4 gf8 f r4 | 
   \triplet { a8 b c f g a }

Works fine when I include the optional argument:

 \triplet 4 { a8 b c f g a }

Thanks again,

Alec

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


Re: Bracket with text label

2013-09-19 Thread SoundsFromSound
Hi Alec,

Welcome to the community! :)

I'm glad you got that question sorted out. One thing I wanted to mention:

The include of english.ly allows you to use English names for sharps and
flats, however you now can use *\language "english" *instead of the include.

I believe that is the preferred way for English names, from my
understanding.

Good luck!




Alec Bartsch wrote
> On Sep 19, 2013, at 10:02 AM, Urs Liska <

> ul@

> > wrote:
> 
>> I'm not sure if that's the best approach, but you could use a pseudo
>> tuplet
>> and override the text of the "tuplet number":
>> 
>> \once \override TupletNumber #'text = "even"
>> \times 4/4 { a8 g16 f }
>> 
>> Depending on your LilyPond version you can use \tuplet instead of \times
>> and write TupletNumber.text
> 
> That's perfect; the key I was missing was how to make a "pseudo tuplet."
> This gives me exactly what I want:
> 
> \version "2.17.26"
> \include "english.ly"
> 
> \relative c' {
>   \clef bass
>   \once \override TupletNumber.text = "even"
>   \once \override TupletBracket.bracket-visibility = ##t
>   \once \override TupletBracket.direction = 1
>   \tuplet 4/4 { a8 g16 f } g4 gf8 f r4
> }
> 
> Thanks for your help!
> 
> Alec
> 
> 
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user





-
composer | sound designer
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Bracket-with-text-label-tp151045p151056.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: Bracket with text label

2013-09-19 Thread Alec Bartsch

On Sep 19, 2013, at 12:18 PM, SoundsFromSound  wrote:

> The include of english.ly allows you to use English names for sharps and
> flats, however you now can use *\language "english" *instead of the include.

Nice! Thanks.

Alec


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


Re: Bracket with text label

2013-09-19 Thread David Kastrup
Alec Bartsch  writes:

> but still be able to do this on occasion:
>
> \triplet 2 { a4 b c a b c }

> How do I do the default value properly? My guess doesn't quite work:
>
> triplet = #(define-music-function (parser location tuplet-span 
> music)((ly:duration? '4) ly:music?)
>   #{
>   \tuplet 3/2 $tuplet-span { $music }
>   #})

4 is a number.  You want (ly:make-duration 2 0) instead.

At one time I considered making #{ 4 #} a duration rather than a number,
but this gets really weird when one also wants to allow #{ 4\cm #}.

But you could do

duration = #(define-scheme-function (parser location d) (ly:duration?) d)

and then write things like
((ly:duration? #{ \duration 4 #}) ly:music?)

-- 
David Kastrup


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


Re: Bracket with text label

2013-09-19 Thread Urs Liska

Am 19.09.2013 19:02, schrieb Urs Liska:

Hi Alec,

welcome to this list.

Images of this size are absolutely acceptable because they are very 
helpful to show your intention/problem/question.


I'm not sure if that's the best approach, but you could use a pseudo 
tuplet

and override the text of the "tuplet number":

\once \override TupletNumber #'text = "even"
\times 4/4 { a8 g16 f }

Depending on your LilyPond version you can use \tuplet instead of 
\times and write TupletNumber.text


HTH
Urs


If you have this regularly you can make use of a music function.
As I can't test this I'm quite sure this won't work without corrections, 
but it may give you (or others) an idea:


even=
#(define-music-function (parser location music)(ly:music?)
  #{
\once \override TupletNumber #'text = "even"
\times 4/4 { $music }
  #})

\even { a8 g16 f }

Maybe it works ;-)



Am 19.09.2013 18:55, schrieb Alec Bartsch:

Hi LilyPond users,

In my first post to this list, I'm looking for suggestions on how to 
engrave the
brackets seen in the attached image, labeled "even". (Hopefully it's 
OK to
attach small images?) This is an indication in a jazz chart (where 
eighth notes
are normally interpreted as "swung eighths) to instead play these 
rhythms as

"straight eighths."

Thanks for any advice.

Alec



___
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


Re: bendAfter affected by bar numbers - possible bug?

2013-09-19 Thread Phil Holmes
- Original Message - 
From: "Mark Knoop" 

To: 
Sent: Thursday, September 19, 2013 4:51 PM
Subject: bendAfter affected by bar numbers - possible bug?



In the following example the bends are compressed to avoid the bar
numbers. This would seem to be unnecessary. Possible bug? and any
ideas for a workaround?

\version "2.17.26"

music = \repeat unfold 16 { c''4\bendAfter #-4 }
sixteens = \repeat unfold 64 { c'16 }

\new Score \with {
} {
 << \music \sixteens >>
}

\new Score \with {
 % bar number set high to accentuate the problem
 currentBarNumber = #200
 barNumberVisibility = #(every-nth-bar-number-visible 1)
 \override BarNumber.break-visibility = #end-of-line-invisible
} {
 << \music \sixteens >>
}

--
Mark Knoop


That looks like a bug to me.  Forwarding to the bug list.

--
Phil Holmes

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


Re: Acciaccaturas and slashed stems

2013-09-19 Thread Gilberto Agostinho
Well David, thanks for your answers and opinions. Even though I really
respect your views (and you certainly know infinitely more about LilyPond
and programming than I do), I still think I am right on this one. I
personally see the lack of slashes on beamed grace notes + the lack of
automatic beaming for grouped grace notes as major drawbacks with LilyPond.
Certainly the second problem can be overcame by the use of [], but I find it
annoying, non standard and easily overseen when dealing with a large score.
All other engraving software I have used behave in the way I am proposing,
so I don't think I am speaking of something that exotic here.

But still I certainly understand and agree with you that compatibility
problem is a big issue here, and due to lack of programming knowledge I
better be quiet about proposing any sort of solution (sorry for the clumsy
propositions on the previous message(s)). Anyway, I really don't see much
point in dragging this discussion further to be honest.

Thanks for all the answers and take care!
Gilberto



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Acciaccaturas-and-slashed-stems-tp150981p151051.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: Bracket with text label

2013-09-19 Thread Alec Bartsch

On Sep 19, 2013, at 10:02 AM, Urs Liska  wrote:

> I'm not sure if that's the best approach, but you could use a pseudo tuplet
> and override the text of the "tuplet number":
> 
> \once \override TupletNumber #'text = "even"
> \times 4/4 { a8 g16 f }
> 
> Depending on your LilyPond version you can use \tuplet instead of \times and 
> write TupletNumber.text

That's perfect; the key I was missing was how to make a "pseudo tuplet." This 
gives me exactly what I want:

\version "2.17.26"
\include "english.ly"

\relative c' {
\clef bass
\once \override TupletNumber.text = "even"
\once \override TupletBracket.bracket-visibility = ##t
\once \override TupletBracket.direction = 1
\tuplet 4/4 { a8 g16 f } g4 gf8 f r4
}

Thanks for your help!

Alec

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


Re: lilyglyphs package released!

2013-09-19 Thread Philippe Massart

Le 19 sept. 2013 à 16:26, SoundsFromSound  a écrit :

> Urs,
> 
> This is wonderful thank you so much for sharing! Although I am receiving a
> "Service Temporarily Unavailable" error when I try to visit CTAN, I'm sure
> it'll be up again soon. 
> 
> I'll use TeXLive on my KDE box, this is perfect for what I need in my
> current text projects.
> 
> -Ben
> 
> 

Hello,

It's due to a problem with Tex Live Utility (caused by a filename with quotes 
that gives some troubles): the exact problem is explained here, with the 
solution:
http://tex.stackexchange.com/questions/133391/tex-live-manager-crashes-with-unknown-docfile-tag

In short, you need to reinstall TexLive Manager (in Tex Live utility, under the 
Actions menu) and update package list again.

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


Re: Acciaccaturas and slashed stems

2013-09-19 Thread David Kastrup
Gilberto Agostinho  writes:

> Well, a single grace note upon a single note cannot be beamed since there is
> nothing to beam it to.

Tell that to LilyPond:

{ c'8[] }

is valid music.

> But I imagine you meant a single unbeamed note in among other grace
> notes in a complex situation, as in the piano sonata example you sent,
> right? So, about it: you are totally right on this one, in this case
> the autobeaming wouldn't work out well and the user would need to make
> manual adjustments. But my point is: isn't this is a complex example
> and the by far the most common is to have same duration grace notes?
> Also, the user who would type such passage with LilyPond still would
> need to manually set the beams, so actually it would make little
> difference for him if autoBeam was on.

You are presuming that LilyPond has some greedy "autoBeam" setting which
will be broken by any manual beaming instruction and will exclude single
notes.  Or that it should have that.

> It is not like I am proposing to make these complex examples
> impossible, I just believe that they are the minority and thus it
> would be more practical for the regular user to have all grace notes
> beamed together.

So how do you propose the minority should be input?

You are calling out significant savings in typing, but then the effort
for typing something like [] contrasted to \appoggiatura does not seem
all that large.

And we are talking about an incompatibility that can't easily be cast
into a convert-ly rule, so at the very least, scores relying on grace
notes without any beaming instructions remaining separate will require
manual changes.  And I don't know how this might affect things like
bagpipe music.

-- 
David Kastrup


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


Re: Bracket with text label

2013-09-19 Thread Urs Liska

Hi Alec,

welcome to this list.

Images of this size are absolutely acceptable because they are very 
helpful to show your intention/problem/question.


I'm not sure if that's the best approach, but you could use a pseudo tuplet
and override the text of the "tuplet number":

\once \override TupletNumber #'text = "even"
\times 4/4 { a8 g16 f }

Depending on your LilyPond version you can use \tuplet instead of \times 
and write TupletNumber.text


HTH
Urs

Am 19.09.2013 18:55, schrieb Alec Bartsch:

Hi LilyPond users,

In my first post to this list, I'm looking for suggestions on how to engrave the
brackets seen in the attached image, labeled "even". (Hopefully it's OK to
attach small images?) This is an indication in a jazz chart (where eighth notes
are normally interpreted as "swung eighths) to instead play these rhythms as
"straight eighths."

Thanks for any advice.

Alec



___
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


Bracket with text label

2013-09-19 Thread Alec Bartsch
Hi LilyPond users,In my first post to this list, I'm looking for suggestions on how to engrave the brackets seen in the attached image, labeled "even". (Hopefully it's OK to attach small images?) This is an indication in a jazz chart (where eighth notes are normally interpreted as "swung eighths) to instead play these rhythms as "straight eighths."Thanks for any advice.Alec___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Acciaccaturas and slashed stems

2013-09-19 Thread Gilberto Agostinho
Well, a single grace note upon a single note cannot be beamed since there is
nothing to beam it to. But I imagine you meant a single unbeamed note in
among other grace notes in a complex situation, as in the piano sonata
example you sent, right? So, about it: you are totally right on this one, in
this case the autobeaming wouldn't work out well and the user would need to
make manual adjustments. But my point is: isn't this is a complex example
and the by far the most common is to have same duration grace notes? Also,
the user who would type such passage with LilyPond still would need to
manually set the beams, so actually it would make little difference for him
if autoBeam was on.

It is not like I am proposing to make these complex examples impossible, I
just believe that they are the minority and thus it would be more practical
for the regular user to have all grace notes beamed together. It would also
help most people type their score faster. (Look at this example here: this
score is loaded with the most common type of grace notes, and each of them
would need extras [ ] to have a proper beam:)

 

* * *

If you still think this is not a good idea, here is another option: would it
be possible to implement a command similar to the /#(set-accidental-style
'dodecaphonic)/, but related to the grace notes? I don't know, something
like: /#(set-grace-beam-style 'autoBeamOn)/



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Acciaccaturas-and-slashed-stems-tp150981p151046.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: Acciaccaturas and slashed stems

2013-09-19 Thread Gilberto Agostinho
PS: It also worth noticing that 99.999% of all musical cases do not mix
different types of note values when dealing with grace notes, even when we
talk about complex contemporary scores. In this case, it is trivial to
create a standard for beaming: from first to the last. And if an user wants
to mix different note values together, that is also fine, but he might need
to manually adjust one or other thing there.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Acciaccaturas-and-slashed-stems-tp150981p151037.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: How to have separate \paper variables for different scores in the same book?

2013-09-19 Thread Dominic
An example of what? I am not reporting a bug, I am asking what the correct
method is to achieve a certain outcome. I listed my attempts in order to
illustrate things I had already tried.

I am using the very latest development version (2.17.26), but I also use the
stable version via lilybin.com (2.16.2) when I am away from my home
computer.

The manual indicates that 'system-system-spacing' should go in a paper
block, and so the following example, as I now know, will not have the
intended effect:

/\score {
\new Staff << \repeat unfold 2 { \repeat unfold 16 { c'4 } \break } >>
\layout {
system-system-spacing #'basic-distance = #99
}
}

\score {
\new Staff << \repeat unfold 2 { \repeat unfold 16 { g'4 } \break } >>
}

\paper { system-system-spacing #'basic-distance = #16 }/

I was curious to know whether there was a proper way to go about adjusting
system spacing on a score-by-score basis.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/How-to-have-separate-paper-variables-for-different-scores-in-the-same-book-tp151030p151043.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: Lyric separator

2013-09-19 Thread David Nalesnik
On Thu, Sep 19, 2013 at 11:01 AM, David Nalesnik
wrote:

> Hi Benjamin,
>
>
[...]


> This is what I come up with:
>

[...]

OK, that was unnecessarily roundabout.  Why bother with columns when I have
access to all grobs, and I can just compare LyricText grobs?

Try this:

(Again, should work on 2.16.1.)



\version "2.17.25"

#(define (my-callback grob)
   (let* ((text (ly:grob-property-data grob 'text))
  (refp (ly:grob-system grob))
  ; This returns all grobs in a line.
  (all-grobs (ly:grob-array->list
  (ly:grob-object refp 'all-elements)))
  ; We're only interested in LyricText grobs.
  (just-syllables
(filter
  (lambda (x) (grob::has-interface x 'lyric-syllable-interface))
  all-grobs))
  ; We want the first LyricText grob in the system.  We must locate
this
  ; by position, since grobs don't seem to be listed in order in the
  ; 'all-elements grob array.
  (first-syl
 (fold
   (lambda (elem prev)
 (if (< (ly:grob-relative-coordinate elem refp X)
(ly:grob-relative-coordinate prev refp X))
 elem
 prev))
  (car just-syllables)
  just-syllables)))

 ; If our LyricText grob is the first on the line, override its stencil.
 (if (eq? grob first-syl)
 (begin
   (ly:grob-set-property! grob 'text
 #{ \markup \combine #text \translate #'(1.6 . -0.5) \draw-line
#'(-4 . 0) #})
   (ly:grob-set-property! grob 'stencil (lyric-text::print
grob))

melody = \repeat unfold 16 g'4
lyr = \lyricmode {
  \repeat unfold 16 sol
}
\score {
  \new Staff <<
\new Voice = "voice" {
  \melody
}
\new Lyrics \with {
  \override LyricText #'after-line-breaking = #my-callback
} \lyricsto "voice" \lyr
  >>
}
\paper {
  indent = 0
  line-width = 5.5\cm
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to have separate \paper variables for different scores in the same book?

2013-09-19 Thread David Kastrup
Dominic  writes:

> Here is what I want to achieve:
>
> Two small scores (an SATB hymn, followed by an optional descant line) one
> after the other on a single page.
>
> My Lilypond file is laid out like this:
>
> /\score {
>   % music for the first score here (SATB hymn)
> }
>
> \score {
>   % music for the second score here (optional descant line)
> }
>
> paper {
>   system-system-spacing #basic-distance = #20
> }/
>
> I want the system-system-spacing variable to apply to the first score only.
>
> I have tried putting the paper block in the first \score block, like this
>
> /\score {
>   % music for first score here
>   \paper {
> % paper variables here
>   }
> }
>
> \score {
>   % music for second score
> }/
>
> but it is apparently not allowed.
> Neither is putting the system-system-spacing setting inside an individual
> score's \layout block.

Sure?

-- 
David Kastrup


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


Re: Lyric separator

2013-09-19 Thread David Nalesnik
Hi Benjamin,

On Thu, Sep 19, 2013 at 9:31 AM, Benjamin Bloomfield wrote:

> I'm still struggling to figure out how to override the markup of the first
> syllable in each system.  I have figured out a callback that can add the
> underscore to the syllable, but I need to figure out how to know if the
> syllable is the first in its system.  Does anyone know how to do this?
>

I'm not aware of a direct way to tell if a particular grob is the first one
in a system, but it's possible to determine this information by comparing
horizontal positions.

This is what I come up with:

(BTW, I assume this will work on 2.16, as you're using.)

\version "2.17.25"

#(define (my-callback grob)
   (let* ((text (ly:grob-property-data grob 'text))
  (refp (ly:grob-system grob))
  ; This returns all grobs in a line.
  (all-cols (ly:grob-array->list
  (ly:grob-object refp 'all-elements)))
  ; We're only interested in NoteColumn grobs, because LyricText
grobs
  ; are attached to NoteHead (whose X-parent is NoteColumn).
  (just-note-cols
(filter
  (lambda (x) (grob::has-interface x 'note-column-interface))
  all-cols))
  ; We want the first NoteColumn in the system.  We must locate this
  ; by position, since grobs don't seem to be listed in order in the
  ; 'all-elements grob array.  How is it possible to access
_ranking_ in
  ; Scheme?  If possible, this would probably be more efficient.
  (first-note-col
 (fold
   (lambda (elem prev)
 (if (< (ly:grob-relative-coordinate elem refp X)
(ly:grob-relative-coordinate prev refp X))
 elem
 prev))
  (car just-note-cols)
  just-note-cols))
  ; the NoteColumn associated with our LyricText grob
  (our-note-col (ly:grob-parent (ly:grob-parent grob X) X)))

 ; If our NoteColumn is the first on the line, override its stencil.
 (if (eq? our-note-col first-note-col)
 (begin
   (ly:grob-set-property! grob 'text
 #{ \markup \combine #text \translate #'(1.6 . -0.5) \draw-line
#'(-4 . 0) #})
   (ly:grob-set-property! grob 'stencil (lyric-text::print
grob))

melody = \repeat unfold 16 g'4
lyr = \lyricmode {
  \repeat unfold 16 sol
}
\score {
  \new Staff <<
\new Voice = "voice" {
  \melody
}
\new Lyrics \with {
  \override LyricText #'after-line-breaking = #my-callback
} \lyricsto "voice" \lyr
  >>
}
\paper {
  indent = 0
  line-width = 5.5\cm
}


%%

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


Re: How to have separate \paper variables for different scores in the same book?

2013-09-19 Thread David Kastrup
Dominic  writes:

> Yes, it compiles but has no effect. I just had a more thorough search online
> and it looks like there's no official way to do it - annoying!

You don't give an example.  You don't specify the version you use.

-- 
David Kastrup


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


Re: Acciaccaturas and slashed stems

2013-09-19 Thread Gilberto Agostinho
Hi David,

I do disagree with you on this one. While I do agree with you on this here
"grace notes has no generally fixed relation to musical stresses", I still
think that it is a standard that ALL grace notes of a single note are beamed
together. If there is a note that doesn't have a flag, the beam will be skip
it obviously, but not due to any musical stress. This is how I see the
standard:

\version "2.17.26"
{
  \relative c'' {
\mark \markup {To beam or not to beam...}
\grace {a8_\markup\underline{wrong} b c} d1|
\grace {a8_"correct"[ b c]} d1 |
  }
}
{
  \relative c'' {
\mark \markup {Correct way of beaming}
\grace {a8_\markup\underline{wrong}[ b c] b[ c]} d1 |
\grace {a8_"correct"[ b c b c]} d1 |
\grace {a16_\markup\underline{wrong} [ b c b] a[ b c b]} d1 |
\grace {a16_"correct"[ b c b a b c b]} d1 |
\grace {a8_"correct"[ b c] a4 b8[ c]} d1 |
\grace {a8_"correct"[ b c] a4 b c8} d1 |
  }
}

You can also have a look on pp. 16-17 of the /Standard Music Notation
Practice/ here: http://icking-music-archive.org/lists/sottisier/notation.pdf
Although they do not mention beaming, all multiple grace notes are beamed
together.




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Acciaccaturas-and-slashed-stems-tp150981p151036.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: How to have separate \paper variables for different scores in the same book?

2013-09-19 Thread Dominic
Yes, it compiles but has no effect. I just had a more thorough search online
and it looks like there's no official way to do it - annoying!



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/How-to-have-separate-paper-variables-for-different-scores-in-the-same-book-tp151030p151034.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


bendAfter affected by bar numbers - possible bug?

2013-09-19 Thread Mark Knoop
In the following example the bends are compressed to avoid the bar
numbers. This would seem to be unnecessary. Possible bug? and any
ideas for a workaround?

\version "2.17.26"

music = \repeat unfold 16 { c''4\bendAfter #-4 }
sixteens = \repeat unfold 64 { c'16 }

\new Score \with {
} {
  << \music \sixteens >>
}

\new Score \with {
  % bar number set high to accentuate the problem
  currentBarNumber = #200
  barNumberVisibility = #(every-nth-bar-number-visible 1)
  \override BarNumber.break-visibility = #end-of-line-invisible
} {
  << \music \sixteens >>
}

-- 
Mark Knoop

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


Re: Acciaccaturas and slashed stems

2013-09-19 Thread David Kastrup
Gilberto Agostinho  writes:

> Hi David,
>
> I do disagree with you on this one. While I do agree with you on this here
> "grace notes has no generally fixed relation to musical stresses", I still
> think that it is a standard that ALL grace notes of a single note are beamed
> together.

The trivial counterexample is a single grace note.

Anyway, take a look at, say, Köchelverzeichnis 457 (Mozart) Adagio
according to Henle:



kv457.pdf
Description: Adobe PDF document

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


Re: Lyric separator

2013-09-19 Thread Benjamin Bloomfield
Excellent, Thank you so much!  This works wonderfully.

*Benjamin Bloomfield*


On Thu, Sep 19, 2013 at 12:12 PM, David Nalesnik
wrote:

>
>
>
> On Thu, Sep 19, 2013 at 11:01 AM, David Nalesnik  > wrote:
>
>> Hi Benjamin,
>>
>>
> [...]
>
>
>> This is what I come up with:
>>
>
> [...]
>
> OK, that was unnecessarily roundabout.  Why bother with columns when I
> have access to all grobs, and I can just compare LyricText grobs?
>
> Try this:
>
> (Again, should work on 2.16.1.)
>
> 
>
> \version "2.17.25"
>
> #(define (my-callback grob)
>(let* ((text (ly:grob-property-data grob 'text))
>   (refp (ly:grob-system grob))
>   ; This returns all grobs in a line.
>   (all-grobs (ly:grob-array->list
>   (ly:grob-object refp 'all-elements)))
>   ; We're only interested in LyricText grobs.
>   (just-syllables
> (filter
>   (lambda (x) (grob::has-interface x
> 'lyric-syllable-interface))
>   all-grobs))
>   ; We want the first LyricText grob in the system.  We must
> locate this
>   ; by position, since grobs don't seem to be listed in order in
> the
>   ; 'all-elements grob array.
>   (first-syl
>  (fold
>(lambda (elem prev)
>  (if (< (ly:grob-relative-coordinate elem refp X)
> (ly:grob-relative-coordinate prev refp X))
>  elem
>  prev))
>   (car just-syllables)
>   just-syllables)))
>
>  ; If our LyricText grob is the first on the line, override its
> stencil.
>  (if (eq? grob first-syl)
>  (begin
>(ly:grob-set-property! grob 'text
>  #{ \markup \combine #text \translate #'(1.6 . -0.5)
> \draw-line #'(-4 . 0) #})
>(ly:grob-set-property! grob 'stencil (lyric-text::print
> grob))
>
> melody = \repeat unfold 16 g'4
> lyr = \lyricmode {
>   \repeat unfold 16 sol
> }
> \score {
>   \new Staff <<
> \new Voice = "voice" {
>   \melody
> }
> \new Lyrics \with {
>   \override LyricText #'after-line-breaking = #my-callback
> } \lyricsto "voice" \lyr
>   >>
> }
> \paper {
>   indent = 0
>   line-width = 5.5\cm
> }
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


How to have separate \paper variables for different scores in the same book?

2013-09-19 Thread Dominic
Here is what I want to achieve:

Two small scores (an SATB hymn, followed by an optional descant line) one
after the other on a single page.

My Lilypond file is laid out like this:

/\score {
  % music for the first score here (SATB hymn)
}

\score {
  % music for the second score here (optional descant line)
}

paper {
  system-system-spacing #basic-distance = #20
}/

I want the system-system-spacing variable to apply to the first score only.

I have tried putting the paper block in the first \score block, like this

/\score {
  % music for first score here
  \paper {
% paper variables here
  }
}

\score {
  % music for second score
}/

but it is apparently not allowed.
Neither is putting the system-system-spacing setting inside an individual
score's \layout block.
Neither is putting two \paper blocks, one after each score (the second one
overwrites the value of the first).
If I wrap the first and second scores in their own \bookpart, each with
their own \paper block, then the second score appears on its own page, which
isn't what I want.

What's the best and simplest way to achieve this? Thanks for any
suggestions!

Dominic





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/How-to-have-separate-paper-variables-for-different-scores-in-the-same-book-tp151030.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: lilyglyphs package released!

2013-09-19 Thread James
On Sep 19, 2013, at 06:30 , Urs Liska wrote:

> Hi list,
> 
> usually I don't advertise my blog posts on this list, but this time it's an 
> announcement post for my new package 'lilyglyphs' that makes LIlyPond's 
> notational elements available as 'characters' in LaTeX text documents.
> 
> Anybody who is authoring text documents about music with LaTeX might benefit 
> from this new possibility.
> And anybody who is authoring text documents about music with word processors 
> and has always been looking for a convenient way to insert notational symbols 
> into text documents should have a look at it too:
> http://lilypondblog.org/2013/09/using-musical-symbols-in-text-documents/
> 
> Maybe this could be a trigger to consider switching to LaTeX?
> 
> Best
> Urs


I'll give my support to this! I installed an earlier version and have been 
using it in a text project and it's great. Thanks, Urs!

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


Re: lilyglyphs package released!

2013-09-19 Thread SoundsFromSound
Urs,

This is wonderful thank you so much for sharing! Although I am receiving a
"Service Temporarily Unavailable" error when I try to visit CTAN, I'm sure
it'll be up again soon. 

I'll use TeXLive on my KDE box, this is perfect for what I need in my
current text projects.

-Ben



Urs Liska wrote
> Hi list,
> 
> usually I don't advertise my blog posts on this list, but this time it's 
> an announcement post for my new package 'lilyglyphs' that makes 
> LIlyPond's notational elements available as 'characters' in LaTeX text 
> documents.
> 
> Anybody who is authoring text documents about music with LaTeX might 
> benefit from this new possibility.
> And anybody who is authoring text documents about music with word 
> processors and has always been looking for a convenient way to insert 
> notational symbols into text documents should have a look at it too:
> http://lilypondblog.org/2013/09/using-musical-symbols-in-text-documents/
> 
> Maybe this could be a trigger to consider switching to LaTeX?
> 
> Best
> Urs
> 
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user





-
composer | sound designer
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/lilyglyphs-package-released-tp151022p151027.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: lilyglyphs package released!

2013-09-19 Thread Urs Liska

Am 19.09.2013 16:26, schrieb SoundsFromSound:

Urs,

This is wonderful thank you so much for sharing! Although I am receiving a
"Service Temporarily Unavailable" error when I try to visit CTAN, I'm sure
it'll be up again soon.


At first I was worried, then I realized that you're encountering a 
problem out of my reach ...

I'll use TeXLive on my KDE box, this is perfect for what I need in my
current text projects.


Just a comment for anybody:
If you have Git it's really recommended to install the package from
https://github.com/openlilylib/lilyglyphs
because that will always be the most current version.

Urs

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


Re: Lyric separator

2013-09-19 Thread Benjamin Bloomfield
I'm still struggling to figure out how to override the markup of the first
syllable in each system.  I have figured out a callback that can add the
underscore to the syllable, but I need to figure out how to know if the
syllable is the first in its system.  Does anyone know how to do this?

Here's what I have adding the horizontal line to every syllable:

\version "2.16.1"
> #(define (my-callback grob)
>   (let* (
>   (text (ly:grob-property-data grob 'text))
> )
>   (display text) (display "\n")
> ;(ly:grob-set-property! grob 'self-alignment-X '-1)
> ; (ly:grob-set-property! grob 'extra-offset '(-4 . 0))
>  (ly:grob-set-property! grob 'text #{ \markup \combine #text
> \translate #'(1.6 . -0.5) \draw-line #'(-4 . 0) #})
>  (ly:grob-set-property! grob 'stencil (lyric-text::print grob))
>   )
> )
> melody = \repeat unfold 16 g'4
> lyr = \lyricmode {
> \repeat unfold 16 sol
> }
> \score {
> \new Staff <<
> \new Voice = "voice" {
> \melody
> }
> \new Lyrics \with {
> \override LyricText #'after-line-breaking =
> #my-callback
> } \lyricsto "voice" \lyr
> >>
> }
> \paper {
> indent = 0
> line-width = 5.5\cm
> }


Thanks,

*Benjamin Bloomfield*


On Wed, Sep 18, 2013 at 1:22 PM, Kieren MacMillan <
kieren_macmil...@sympatico.ca> wrote:

> Hi Benjamin,
>
> > I think this is perfect, except that it only appears at the beginning of
> the first system.  Is there any way to get Lilypond to add the same markup
> to the first syllable of each subsequent system?
>
> I'm sure there is!  =)
>
> Maybe something in this thread can help you:
> http://lists.gnu.org/archive/html/lilypond-user/2013-05/msg00688.html
>
> Best,
> Kieren.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilyglyphs package released!

2013-09-19 Thread Pierre Perol-Schneider
Great job Urs, thanks much.
Cheers,
Pierre
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


lilyglyphs package released!

2013-09-19 Thread Urs Liska

Hi list,

usually I don't advertise my blog posts on this list, but this time it's 
an announcement post for my new package 'lilyglyphs' that makes 
LIlyPond's notational elements available as 'characters' in LaTeX text 
documents.


Anybody who is authoring text documents about music with LaTeX might 
benefit from this new possibility.
And anybody who is authoring text documents about music with word 
processors and has always been looking for a convenient way to insert 
notational symbols into text documents should have a look at it too:

http://lilypondblog.org/2013/09/using-musical-symbols-in-text-documents/

Maybe this could be a trigger to consider switching to LaTeX?

Best
Urs

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