Hi all,
I've been experimenting with a way to center text on measures. (I create a
lot of exercises with blanks or roman numerals between the staff, and it's
nice not to need to position each one individually by trial and error.)
I've come up with the following function which works, but I wonder
> I've been experimenting with a way to center text on measures. (I create a
> lot of exercises with blanks or roman numerals between the staff, and it's
> nice not to need to position each
>
Oops, that would be "beneath."
___
lilypond-user mailing list
ge -
From: "David Nalesnik"
To: "lilypond-user"
Cc: "Lilypond Dev"
Sent: Thursday, September 01, 2011 5:27 AM
Subject: centering text on a measure
Hi all,
I've been experimenting with a way to center text on measures. (I
create a
lot of exercises with b
TextScript #'after-line-breaking = #center-on-measure
\repeat unfold 10 { s1_"|"^"|" }
s2_"|"^"|"
}
Cheers,
Harm
--
View this message in context:
http://old.nabble.com/centering-text-on-a-measure-tp32377202p32382035.html
Sent from the Gnu
On Thu, Sep 1, 2011 at 3:09 AM, Trevor Daniels wrote:
Perhaps you could turn this idea into a music function:
>
> \relative c'' {
> a4 a a a |
> <<
> { a4 a a a | }
> {
> \once \override MultiMeasureRest #'transparent = ##t
> R1_"XIII" |
> }
> >>
> a4 a a a |
> }
>
Thank you, T
Hi Harm,
On Thu, Sep 1, 2011 at 2:30 PM, harm6 wrote:
>
> Hi David,
>
> don't know anything about the error:
>
> ERROR: In procedure ly:grob-object:
> ERROR: Wrong type argument in position 1 (expecting Grob): ()
>
> This error-warning must be an error! :)
>
My only guess is that the property I
David Nalesnik
However, I'd like to be able to
center the text on the measure regardless of what's in it (or, by
extension,
center it between items of my choosing). I'm hoping that there's
a way to
do this without relying on 'extra-offset, so that other grobs will
move up
to avoid collisio
Trevor,
On Sat, Sep 3, 2011 at 9:56 AM, Trevor Daniels wrote:
It would be nice if TextSpanner could
> centre its text between the left and right
> bounds (like the number on a tuplet bracket)
> but it doesn't, AFAIK.
Thank you for this idea!
I've adapted the snippet for centering text on hairp
David Nalesnik wrote Saturday, September 03, 2011 6:36 PM
I've adapted the snippet for centering text on hairpins
http://lsr.dsi.unimi.it/LSR/Snippet?id=233
to give an approximation of this. Basically, I've replaced the
default
TextSpanner stencil with a blank with the same extents to which
Hi Trevor,
On Sat, Sep 3, 2011 at 1:37 PM, Trevor Daniels wrote:
>
> David Nalesnik wrote Saturday, September 03, 2011 6:36 PM
>
>(Unfortunately, if I don't
>
>> blank out the default stencil, the text appears on top of the extender
>> line
>>
>
> You can kill the extender line by setting
> '
nabble.com/file/p32475696/centerTest-1.ly centerTest-1.ly
--
View this message in context:
http://old.nabble.com/centering-text-on-a-measure-tp32377202p32475696.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Hi, Harm --
On Thu, Sep 15, 2011 at 6:18 PM, harm6 wrote:
>
> I tested your definitions with a longer example using StaffGroup and
> commented the not used parts with %{ ... %}. (see code below)
> The log states: ERROR: Wrong type (expecting pair): ()
>
> And now the strangest thing: If I uncomme
2011/9/16 David Nalesnik
>
> Hi, Harm --
>
> On Thu, Sep 15, 2011 at 6:18 PM, harm6 wrote:
>
>>
>> I tested your definitions with a longer example using StaffGroup and
>> commented the not used parts with %{ ... %}. (see code below)
>> The log states: ERROR: Wrong type (expecting pair): ()
>>
>>
On Fri, Sep 16, 2011 at 3:49 PM, Thomas Morley <
thomasmorle...@googlemail.com> wrote:
>
>
> 2011/9/16 David Nalesnik
>
>>
>> Hi, Harm --
>>
>> On Thu, Sep 15, 2011 at 6:18 PM, harm6 wrote:
>>
>>>
>>> I tested your definitions with a longer example using StaffGroup and
>>> commented the not used
with an offset of the
red Line in the first score, that I can't explain. In the second score the
second voice seems to override the settings of the first.
If I comment out the second voice, the output is ok (apart from the lines)
and surprisingly the red line of the first score is moved to the
Hi Harm,
On Tue, Sep 20, 2011 at 6:58 PM, harm6 wrote:
>
> Hi David,
>
> testing your newest code I've got no errors any more! But sometimes there
> is
> a strange behaviour.
>
> Testing the attached code I receive centerTest-1.pdf with an offset of the
> red Line in the first score, that I can't
Hi David,
2011/9/23 David Nalesnik
> Hi Harm,
>
> Unfortunately, I can't! When I run the ,ly file exactly as you send it, I
> don't get the same problem with the red line: it's centered between LeftEdge
> and BarLine. I get the same result in 2.14.2 and 2.15.8. I can't duplicate
> the problem
>
> (...)
>
Using these scores:
\score {
\new StaffGroup = "0ne" <<
\new Staff \one
\new Staff \one
>>
}
\markup \vspace #5
\score {
\new Staff = "two" <<
\new Voice { \voiceOne\one }
%\new Voice { \voiceTwo\two } %<==
>>
}
I get n
On Thu, Sep 22, 2011 at 6:08 PM, Thomas Morley <
thomasmorle...@googlemail.com> wrote:
> Hi David,
>
> 2011/9/23 David Nalesnik
>
>> Hi Harm,
>>
>>
> If there were some way to add a tag to a grob (not just a music
>> expression), this would all be much simpler. Something like this:
>>
>> \once \
On Thu, Sep 22, 2011 at 6:08 PM, Thomas Morley <
thomasmorle...@googlemail.com> wrote:
> Hi David,
>
>
> Running centerGrobBetween_rev2.ly the log states:
>
> Failure to center # between LeftEdge and BarLine
> Present in system? LeftEdge #t BarLine #t
> left bound: # right bound: #f
> __
2011/9/23 David Nalesnik
> (...)
> Well, it is possible to override a non-existent property (if you don't mind
> the warnings). Here's a sketch which uses a tag to center a grob. (I
> realize it will break with very little effort.) And with this, my descent
> into hackishness is complete . . .
Hi Harm,
On Thu, Sep 29, 2011 at 5:59 PM, Thomas Morley <
thomasmorle...@googlemail.com> wrote:
>
> Hi David,
>
> I thought a while about your "hackishness" :)
>
> As a first step it seems to be possible to add a grob-custom-property to
> define-grob-properties.scm in some way (thanks to Arnold fr
On Thu, Sep 29, 2011 at 8:26 PM, David Nalesnik wrote:
> Hi Harm,
>
> Wonderful! Thank you so much! The log now offers no comment on my hackery
> :)
>
> I tried this with a two-voice example (see center-between.ly), and sure
> enough, the problem with "choosing" the wrong grobs to center between
2011/10/1 David Nalesnik
> The function in the attached file lets you specify multiple markers for a
> grob, so it can serve in multiple pairings (there can only be two which use
> the same tag). The example in the file should show how this works.
>
> Hope this can be useful in some way --
>
> -
Hi Harm,
On Mon, Oct 3, 2011 at 10:08 AM, Thomas Morley <
thomasmorle...@googlemail.com> wrote:
>
> Hi David,
>
> setting 'markers to a list is a great idea and I've never got warnings or
> wrong output.
>
> Your definition should be putted in the LSR as soon as it's updated to
> 2.14.
>
I'm glad
Hi David,
2011/10/3 David Nalesnik
>
> After your suggestion, I experimented some with creating my own interface
> and adding it to the interface-list of various grobs. This creates an
> interface with a single property ('markers), and then adds it to every
> grob's description.
>
> #(define ad
Hi Harm,
On Mon, Oct 3, 2011 at 5:29 PM, Thomas Morley wrote:
> Hi David,
I'm only a musician and music-teacher without any previous
> programming-experience, trying to learn scheme and to dive into
> lilypond-internals deeper and deeper. So excuse me if I remark some
> moonshine. :)
>
You've
27 matches
Mail list logo