Re: Graphic background behind systems

2016-02-29 Thread Simon Albrecht

On 29.02.2016 18:00, Klaus Blum wrote:

you could add
   \with-dimensions #'(0 . 0) #'(0 . 0)


Or, in 2.19.37, equivalently:
\with-dimensions-from \null

Best, Simon

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


Re: align-on-syllable.ly and 2.19.36

2016-02-29 Thread Thomas Morley
2016-03-01 0:11 GMT+01:00 Thomas Morley :
> 2016-02-29 5:42 GMT+01:00 David Wright :
>> Hi, I think I've got the latest version of align-on-syllable.ly
>> (3049 Dec  4 02:21) from variously
>>
>> https://lists.gnu.org/archive/html/lilypond-user/2015-12/msg00124.html
>> http://comments.gmane.org/gmane.comp.gnu.lilypond.general/107425
>> http://lsr.di.unimi.it/LSR/Snippet?id=888
>>
>> and it works great in 2.18.2. However, I'm having problems using it in
>> 2.19.36. I added the following LP code involving NullVoice to the test
>> case, which breaks it.
>>
>> I don't know if it's the fault of NullVoice or align-on-syllable.ly.
>> NullVoice is rather delicate; for example, it doesn't play well with
>> \addlyrics for no reason obvious to me.
>>
>> \score {
>>   \new Staff <<
>> \new NullVoice = "nullvoice" \melody
>> \new Voice = "voice" \melody
>> \new Lyrics = "testI"
>>   \with { \override LyricText.X-offset = #center-on-word }
>>   \lyricsto "nullvoice" \lyr
>> \new Lyrics = "testII"
>>   \with { \override LyricText.X-offset = #center-on-word }
>>   \lyricsto "nullvoice" \lyrA
>> %% The control-voice omits the override
>> \new Lyrics = "control"
>>   \lyricsto "nullvoice" \lyrControl
>>   >>
>>   \layout {
>> \context {
>>   \Score
>>   lyricMelismaAlignment = #-0.6
>> }
>>   }
>> }
>>
>> Cheers,
>> David.
>>
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
> Hi David,
>
> the problem:
> in 2.18. the grob-parent of LyricText was NoteHead for both Voice and 
> NullVoice.
>
> In 2.19.37 it's NoteColumn in Voice and PaperColumn in NullVoice.
> More, 2.19.37 returns for the LSR-code:
should read:
2.19.37 returns for the LSR-code with added NullVoice:

> programming error: cyclic dependency: calculation-in-progress
> encountered for #'X-extent (PaperColumn)
> (with a buid from master with --enable-checking)
>
> Right now I'm not sure how to deal with it (and when I'll have the
> time to take a deeper look)
>
>
> So far, cheers,
>   Harm

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


Re: align-on-syllable.ly and 2.19.36

2016-02-29 Thread Thomas Morley
2016-02-29 5:42 GMT+01:00 David Wright :
> Hi, I think I've got the latest version of align-on-syllable.ly
> (3049 Dec  4 02:21) from variously
>
> https://lists.gnu.org/archive/html/lilypond-user/2015-12/msg00124.html
> http://comments.gmane.org/gmane.comp.gnu.lilypond.general/107425
> http://lsr.di.unimi.it/LSR/Snippet?id=888
>
> and it works great in 2.18.2. However, I'm having problems using it in
> 2.19.36. I added the following LP code involving NullVoice to the test
> case, which breaks it.
>
> I don't know if it's the fault of NullVoice or align-on-syllable.ly.
> NullVoice is rather delicate; for example, it doesn't play well with
> \addlyrics for no reason obvious to me.
>
> \score {
>   \new Staff <<
> \new NullVoice = "nullvoice" \melody
> \new Voice = "voice" \melody
> \new Lyrics = "testI"
>   \with { \override LyricText.X-offset = #center-on-word }
>   \lyricsto "nullvoice" \lyr
> \new Lyrics = "testII"
>   \with { \override LyricText.X-offset = #center-on-word }
>   \lyricsto "nullvoice" \lyrA
> %% The control-voice omits the override
> \new Lyrics = "control"
>   \lyricsto "nullvoice" \lyrControl
>   >>
>   \layout {
> \context {
>   \Score
>   lyricMelismaAlignment = #-0.6
> }
>   }
> }
>
> Cheers,
> David.
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
Hi David,

the problem:
in 2.18. the grob-parent of LyricText was NoteHead for both Voice and NullVoice.

In 2.19.37 it's NoteColumn in Voice and PaperColumn in NullVoice.
More, 2.19.37 returns for the LSR-code:
programming error: cyclic dependency: calculation-in-progress
encountered for #'X-extent (PaperColumn)
(with a buid from master with --enable-checking)

Right now I'm not sure how to deal with it (and when I'll have the
time to take a deeper look)


So far, cheers,
  Harm

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


Re: Using \score in define-markup-command

2016-02-29 Thread tisimst
On Mon, Feb 29, 2016 at 2:07 PM, David Kastrup [via Lilypond] <
ml-node+s1069038n187897...@n5.nabble.com> wrote:

> tisimst <[hidden email]
> > writes:
>
> > By the way, did the syntax for define-markup-command get simplified
> > like define-music-function so the "layout props" args aren't necessary
> > anymore?  Just curious.
>
> No.  Neither does it do all the smart argument detection and default
> arguments that music/event/scheme functions do.
>
> Markups are a pretty messy area of their own.
>

I can only imagine. Thanks for all your hard work to make
define-music-function easier to use!

Best,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Using-score-in-define-markup-command-tp187892p187898.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: Using \score in define-markup-command

2016-02-29 Thread David Kastrup
tisimst  writes:

> By the way, did the syntax for define-markup-command get simplified
> like define-music-function so the "layout props" args aren't necessary
> anymore?  Just curious.

No.  Neither does it do all the smart argument detection and default
arguments that music/event/scheme functions do.

Markups are a pretty messy area of their own.

-- 
David Kastrup

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


Re: Using \score in define-markup-command

2016-02-29 Thread tisimst
Harm,

On Mon, Feb 29, 2016 at 1:27 PM, Thomas Morley-2 [via Lilypond] <
ml-node+s1069038n187894...@n5.nabble.com> wrote:

> 2016-02-29 20:57 GMT+01:00 Abraham Lee <[hidden email]
> >:
> >
> > Any suggestions?
> >
> > - Abraham
> >
>
>
> Uhh, markup-mode
>
> #(define-markup-command (ezscore layout props mus) (ly:music?)
>   (interpret-markup layout props
> #{
>   \markup {
> \score {
>   \relative c'' { #mus }
> }
>   }
> #}))
>
> \markup { I'd like to do this: "\\ezscore { c8[ c] } }" }
>
> \markup { You can do this: \ezscore ##{ { c8[ c] } #} }
>
> mus = { c8[ c] }
> \markup { or this: \ezscore #mus }
>

(face-palm) Ah ha! I knew it was something obvious. Thank you, Harm.

By the way, did the syntax for define-markup-command get simplified like
define-music-function so the "layout props" args aren't necessary anymore?
Just curious.

Best,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Using-score-in-define-markup-command-tp187892p187896.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: Using \score in define-markup-command

2016-02-29 Thread Thomas Morley
2016-02-29 20:57 GMT+01:00 Abraham Lee :
> All,
>
> I'm trying to utilize the \score markup command within a custom
> define-markup-command that accepts a music expression, but I can't figure
> out how. I'm probably missing something obvious, but here's a minimal
> example:
>
> 
>
> \version "2.19.36"
>
> \markup {
>   I know I can do this:
>   \score {
> \relative c'' { c8[ c] }
>   }
> }
>
> #(define-markup-command (ezscore layout props mus) (ly:music?)
>   (interpret-markup layout props
> #{
>   \markup {
> \score {
>   \relative c'' { #mus }
> }
>   }
> #}))
>
> \markup { But I'd like to do this: \ezscore { c8[ c] } }
>
> 
>
> Any suggestions?
>
> - Abraham
>


Uhh, markup-mode

#(define-markup-command (ezscore layout props mus) (ly:music?)
  (interpret-markup layout props
#{
  \markup {
\score {
  \relative c'' { #mus }
}
  }
#}))

\markup { I'd like to do this: "\\ezscore { c8[ c] } }" }

\markup { You can do this: \ezscore ##{ { c8[ c] } #} }

mus = { c8[ c] }
\markup { or this: \ezscore #mus }


HTH,
  Harm

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


Re: Graphic background behind systems

2016-02-29 Thread Paul Booker

> 
> Hi Paul, 
> 
> one more try: I've installed LP 2.19.37.
> Yes, it has a different behavior: default whiteout style is the "classic"
> old box style that covers everything behind. You can set the "outline"
> style:

> Does that work for you?
> 
> Cheers, 
> Klaus


Yes, with 2.19.36 it seems to do everything I would expect.
>From what version is it a "new" feature?
Many thanks indeed!
Paul



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


Using \score in define-markup-command

2016-02-29 Thread Abraham Lee
All,

I'm trying to utilize the \score markup command within a custom
define-markup-command that accepts a music expression, but I can't figure
out how. I'm probably missing something obvious, but here's a minimal
example:



\version "2.19.36"

\markup {
  I know I can do this:
  \score {
\relative c'' { c8[ c] }
  }
}

#(define-markup-command (ezscore layout props mus) (ly:music?)
  (interpret-markup layout props
#{
  \markup {
\score {
  \relative c'' { #mus }
}
  }
#}))

\markup { But I'd like to do this: \ezscore { c8[ c] } }



Any suggestions?

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


Re: Quarter notes with bars like \breve

2016-02-29 Thread Gregor Giesen
Dear Abraham,

thanks, that is much better!

Best,
Gregor

Am Montag, den 29.02.2016, 06:36 -0700 schrieb tisimst:
> Gregor,
> 
> How about this:
> 
> %
> 
> \version "2.19.36"
> 
> #(define (qBarNote grob)
>   (grob-interpret-markup grob
>     #{
>   \markup {
>     \concat {
>   \hspace #-0.06
>   \path #0.12
>     #'((moveto 0 -0.6)
>    (lineto 0 0.6))
>   \musicglyph #"noteheads.s2"
>   \hspace #-0.02
>   \path #0.12
>     #'((moveto 0 -0.6)
>    (lineto 0 0.6))
>     }
>   }
>     #}))
> 
> qBarNotesOn = {
>   \omit Stem
>   \override NoteHead.stencil = #qBarNote
> }
> 
> qBarNotesOff = {
>   \undo \omit Stem
>   \revert NoteHead.stencil
> }
> 
> \relative c' {
>   2 \qBarNotesOn q4 \qBarNotesOff q |
> }
> 
> %
> 
> There's certainly more that could be done to make the functionality
> more robust (like checking for duration, style, etc.), but this
> should at least get you going.
> 
> HTH,
> Abraham
> 
> On Sun, Feb 28, 2016 at 3:12 PM, David Kastrup [via Lilypond]
> <[hidden email]> wrote:
> > Gregor Giesen <[hidden email]> writes: 
> > 
> > > Dear Simon, 
> > > 
> > > On 28.02.2016 20:12, Simon Albrecht wrote: 
> > >> On 28.02.2016 18:31, Gregor Giesen wrote: 
> > >> > how can I write a quarter note (without stem) embraced by two
> > bars 
> > >> > exactly like a note of the length \breve? 
> > >> 
> > >> It’s not easy, since the bars belong to the note head glyph used
> > by  
> > >> breve notes. Probably you need to combine three tools: 
> > >> – [\once] \hide Stem 
> > >> – Overriding the NoteHead stencil using a markup expression:  
> > >>  > ing-s
> > >> tencils> 
> > >> – and the \path markup command  
> > >>  > c#ind
> > >> ex-_005cpath-1>  
> > >> for drawing the actual note head. I don’t have much experience
> > with  
> > >> this, others on the list might help. 
> > > thanks a lot! I tried the following, which unfortunately does not
> > scale 
> > > well. However, it is a quick fix: 
> > > 
> > > barPath = #'((moveto 0 -.6) 
> > >    (lineto 0 .6) 
> > >    (moveto 1.3 -.6) 
> > >    (lineto 1.3 .6) 
> > >    (closepath))
> > Working with curveto should likely scale better. 
> > 
> > ___
> > lilypond-user mailing list
> > lilypond-user@gnu.org
> > https://lists.gnu.org/mailman/listinfo/lilypond-user
> > 

signature.asc
Description: This is a digitally signed message part
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


LaissezVibrerTies, RepeatTies and ties at repeat alternatives

2016-02-29 Thread Malte Meyn

Hi list,

I’m not very happy about LilyPond’s ties and semi-ties. Some 
problems/questions:


1. Is there any difference between LaissezVibrerTies and RepeatTies 
except of the default head-direction? Or could one save redundant code 
(including different grob names for basically the same thing etc.) here?


2. IMO LaissezVibrerTies are almost always too short. And there are only 
very ugly hacks like http://lsr.di.unimi.it/LSR/Item?id=715 to change 
the length; it would be nice to have a grob property 'length or 
'minimum-length.


3. This is what annoys me most: Hacks like 
http://lsr.di.unimi.it/LSR/Item?id=794 shouldn’t be necessary; instead, 
LilyPond should be able to take input ~ at repeat alternatives and get 
things right automagically. Or at least there should be easy-to-use 
commands for ties from/to barlines so abusing \laissezVibrer and 
\repeatTie isn’t necessary. Probably they should behave as if there was 
a line break and then print only the needed half.


(4. Slurs at repeats aren’t really nice either …)

Some opinions on that? How easy would that be implemented?

Here some ideas for 3. and 4.



\version "2.19.36"

% (approximately) desired output
\relative {
  \tieDown \slurUp % for better readability
  d'2( c~
  \repeat volta 2 { c4 d) c( d~ }
  \alternative {
{ d c) d( \afterGrace c\laissezVibrer { \once \hideNotes d) } }
{ \grace { \once \hideNotes c^( } d2\repeatTie c) }
  }
}

% suggested input
%{
\relative {
  \tieDown \slurUp % for better readability
  d'2( c~
  \repeat volta 2 { c4 d) c( d~ }
  \alternative {
{ d c) d( c~ \stopTieAtBarline \stopSlurAtBarline }
{ \startTieAtBarline \startSlurAtBarline d2 c) }
  }
}
%}

% alternative input: detect needed spanners automatically
%{
\relative {
  \tieDown \slurUp % for better readability
  d'2( c~
  \repeat volta 2 { c4 d) c( d~ }
  \alternative {
{ d c) d( c~ \stopSpannersAtBarline }
{ \startSpannersAtBarline d2 c) }
  }
}
%}

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


Re: Graphic background behind systems

2016-02-29 Thread Klaus Blum
Hi Paul, 

one more try: I've installed LP 2.19.37.
Yes, it has a different behavior: default whiteout style is the "classic"
old box style that covers everything behind. You can set the "outline"
style:

% ---

\version "2.19.36"
samplePath =
#'((moveto 0 0)
   (rcurveto 0 1 1 1 1 0)
   (rlineto 0 -5)
   (rcurveto 0 -1 -1 -1 -1 0)
   (closepath))

\markup {
  \with-dimensions #'(0 . 0) #'(0 . 0)
  \translate #'(0 . -2)
  \line {
\hspace #33
\with-color #red \override #'(filled . #t) \path #0.1 #samplePath
\hspace #18.2
\with-color #red \override #'(filled . #t) \path #0.1 #samplePath
\hspace #18.2
\with-color #red \override #'(filled . #t) \path #0.1 #samplePath
  }
}

\markup {
  \override #'(style . outline)   % new!!!
  \override #'(thickness . 1)% or whatever you like
  \whiteout
  \score {
\new StaffGroup
\new Staff \with {
  \omit Staff.TimeSignature
}
\relative c {
  \set Score.proportionalNotationDuration = #(ly:make-moment 1/8)
  \override Score.SpacingSpanner.strict-note-spacing = ##t
  c'1 | c | c | c |
}
\layout { }
  }
}

% --- 

Does that work for you?

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Graphic-background-behind-systems-tp187834p187889.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: Graphic background behind systems

2016-02-29 Thread Klaus Blum
Paul Booker wrote
> ... but leaves the layout as if the graphic still occupied space above the
> staff. SO there is extra white space at the top.

Hi Paul, 

you could add
  \with-dimensions #'(0 . 0) #'(0 . 0)
which tells LP to behave as if the following markup had the given dimensions
(in this case: no space at all).
Try:

% ---
\version "2.19.25"
\include "include/defs.ily"

\markup {
  \score {
\new StaffGroup
\new Staff \with {
  \omit Staff.TimeSignature
}
\relative c {
  \set Score.proportionalNotationDuration = #(ly:make-moment 1/8)
  \override Score.SpacingSpanner.strict-note-spacing = ##t
  c,1 c
  c
  -\tweak #'extra-offset #'(-2.5 . -15)  % move to right position
  -\tweak #'layer #-1  % place in bottom layer
  ^\markup {
\with-dimensions #'(0 . 0) #'(0 . 0)
\with-color #(rgb-color 1 0.5 0.5) % specify color
\filled-box #'(0 . 1) #'(0 . 25) #1  % specify size
  }
  c
}
\layout { }
  }
}
% ---

Is that what you need?



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Graphic-background-behind-systems-tp187834p187888.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


Abjad bootcamp this July at Stanford's CCRMA

2016-02-29 Thread Trevor Bača
Hi everyone,

I'd like to take a moment to mention that I'll be teaching a five-day
bootcamp on composing with Abjad this July at Stanford's CCRMA in Palo
Alto, California:

CCRMA: Formalized Score Control: Using Python & Abjad in Music Composition


Friends and very close collaborators Josiah Wolf Oberholtzer and Jeffrey
Treviño will be teaching with me.

Abjad is Python-based composition environment that uses LilyPond for all
stages of notational output, from precomposition all the way through to
publication-quality finished scores. Abjad is especially useful for
composers who think of the music they write in a "formalized" way: that is,
for composers who write with patterns or processes in their music that can
benefit from being object-modeled.

You can read more about Abjad here:

www.projectabjad.org

And you can take a look at finished scores and listen to pieces here:

http://www.projectabjad.org/gallery.html

If you like academic papers, you can read an overview of Abjad here:

https://github.com/Abjad/tenor2015/blob/master/abjad.pdf

We especially encourage intermediate and advanced users of LilyPond to
consider attending the bootcamp: Abjad brings the full power of the Python
programming language to the syntax of LilyPond files that you are already
familiar with. If you've been thinking about adding a programming component
to your compositional process, the bootcamp in July will be an ideal way to
get started.

We're also happy to announce that Stanford has agreed to work with us to
provide a number of scholarships for women composers who'd like to attend
the bootcamp. We think it's important that composers of all backgrounds
from all over the world should have access to technologies to help make
their work as composers more powerful and more fun!

Best wishes for happy composing and engraving to everyone,

Trevor.


-- 
Trevor Bača
www.trevorbaca.com
soundcloud.com/trevorbaca
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Quarter notes with bars like \breve

2016-02-29 Thread tisimst
Gregor,

How about this:

%

\version "2.19.36"

#(define (qBarNote grob)
  (grob-interpret-markup grob
#{
  \markup {
\concat {
  \hspace #-0.06
  \path #0.12
#'((moveto 0 -0.6)
   (lineto 0 0.6))
  \musicglyph #"noteheads.s2"
  \hspace #-0.02
  \path #0.12
#'((moveto 0 -0.6)
   (lineto 0 0.6))
}
  }
#}))

qBarNotesOn = {
  \omit Stem
  \override NoteHead.stencil = #qBarNote
}

qBarNotesOff = {
  \undo \omit Stem
  \revert NoteHead.stencil
}

\relative c' {
  2 \qBarNotesOn q4 \qBarNotesOff q |
}

%

There's certainly more that could be done to make the functionality more
robust (like checking for duration, style, etc.), but this should at least
get you going.

HTH,
Abraham

On Sun, Feb 28, 2016 at 3:12 PM, David Kastrup [via Lilypond] <
ml-node+s1069038n187862...@n5.nabble.com> wrote:

> Gregor Giesen <[hidden email]
> > writes:
>
> > Dear Simon,
> >
> > On 28.02.2016 20:12, Simon Albrecht wrote:
> >> On 28.02.2016 18:31, Gregor Giesen wrote:
> >> > how can I write a quarter note (without stem) embraced by two bars
> >> > exactly like a note of the length \breve?
> >>
> >> It’s not easy, since the bars belong to the note head glyph used by
> >> breve notes. Probably you need to combine three tools:
> >> – [\once] \hide Stem
> >> – Overriding the NoteHead stencil using a markup expression:
> >>  >> tencils>
> >> – and the \path markup command
> >>  >> ex-_005cpath-1>
> >> for drawing the actual note head. I don’t have much experience with
> >> this, others on the list might help.
> > thanks a lot! I tried the following, which unfortunately does not scale
> > well. However, it is a quick fix:
> >
> > barPath = #'((moveto 0 -.6)
> >(lineto 0 .6)
> >(moveto 1.3 -.6)
> >(lineto 1.3 .6)
> >(closepath))
>
> Working with curveto should likely scale better.
>
> --
> David Kastrup
>
> ___
> lilypond-user mailing list
> [hidden email] 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://lilypond.1069038.n5.nabble.com/Quarter-notes-with-bars-like-breve-tp187838p187862.html
> To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com
> To unsubscribe from Lilypond, click here
> 
> .
> NAML
> 
>


breve-like-quarter-noteheads.png (80K) 





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Quarter-notes-with-bars-like-breve-tp187838p187885.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: Graphic background behind systems

2016-02-29 Thread Paul Booker
> 
> A direction modifier (- for ‘neutral’, ^ for ‘up’ or _ for ‘down’) is 
> needed to mark a post event, i.e. in this case a text script attached to 
> a note.
> 
> HTH, Simon
> 
Thanks Simon
I should have figured that out. What I have figured out is that a post event
may handle a layer change to -1, but leaves the layout as if the graphic
still occupied space above the staff. SO there is extra white space at the
top. I've moved back to 2.18.2 on one machine but cannot ask Lilypond to do
what it doesn't want to do.It is for a graphic design which I can resolve in
svg after output, so I'm not completely stuck. LP is still admirable!!

\version "2.18.2"
\include "include/defs.ily"

\markup {
\score {
\new StaffGroup
\new Staff \with { 
\omit Staff.TimeSignature
} 
\relative c {
\set Score.proportionalNotationDuration = 
#(ly:make-moment 1/8)
\override Score.SpacingSpanner.strict-note-spacing = ##t
c,1 c
c
 -\tweak #'extra-offset #'(-2.5 . -15)  % move to right 
position
 -\tweak #'layer #-1  % place in bottom layer
 ^\markup {
 \with-color #(rgb-color 1 0.5 0.5) % specify color
 \filled-box #'(0 . 1) #'(0 . 25) #1  % specify size
 }
c 
}
\layout { }
}
}


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


Re: Graphic background behind systems

2016-02-29 Thread Simon Albrecht

On 29.02.2016 12:03, Paul Booker wrote:

I can't find an
explanation of the tweak prefixes.
Do you know the difference between
-\tweak
^\tweak and
  \tweak

in the above script? It doesn't work without them!


A direction modifier (- for ‘neutral’, ^ for ‘up’ or _ for ‘down’) is 
needed to mark a post event, i.e. in this case a text script attached to 
a note.


HTH, Simon

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


Re: Graphic background behind systems

2016-02-29 Thread Paul Booker

> The markup part takes nearly no space at all and is placed behind the score: 
>  
> But I'm working with LP 2.19.30 and 2.19.25. 
> Maybe something has changed since those versions?
> 
Hi Klaus,

I don't really want to go back to an earlier version, so I've been browsing
the LSR and found something which might work in a similar way, though
different to my original plan.

\version "2.11.56"
\relative c'' {
 a1 a  a
 -\tweak #'extra-offset #'(-2.5 . -15)  % move to right position
 -\tweak #'layer #-1  % place in bottom layer
 ^\markup {
 \with-color #(rgb-color 1 0.5 0.5) % specify color
 \filled-box #'(0 . 1) #'(0 . 25) #0  % specify size
 }
 a
}
from 

http://lists.gnu.org/archive/html/lilypond-user/2008-09/msg00083.html

I should be able to move forward with this, though I can't find an
explanation of the tweak prefixes.
Do you know the difference between
-\tweak
^\tweak and 
 \tweak 

in the above script? It doesn't work without them!
Cheers
Paul



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