[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: slashSeparator-question
From: |
Dr. med. Kai Lautenschläger |
Subject: |
Re: slashSeparator-question |
Date: |
Fri, 14 Sep 2012 07:56:50 +0200 |
Thanks Phil and eluze,
with your information I found my way around. One of the tricks was, that I
didn't recognize, that the separator symbol is constructed from the beam-glyph.
Thanks a lot! I had been fiddling around with that for a long time. Would a
user handle for positioning the separator and a collision avoidance for it be a
feature worthwhile including in a future version of Lilypond?
Best regards,
Kai
Am 14.9.2012 um 04:50 schrieb eluze:
>
> Phil Holmes-2 wrote
>>
>> ----- Original Message -----
>> From: ""Dr. med. Kai Lautenschläger"" <dr.lautenschlaeger@>
>> To: "lilypond-user User" <lilypond-user@>
>> Sent: Thursday, September 13, 2012 3:33 PM
>> Subject: slashSeparator-question
>>
>>
>> Hi Everyone,
>>
>> in my scores I usually use the command: system-separator-markup =
>> \slashSeparator
>> within the /paper-block. Sometimes at the same time I want very narrow
>> distances between staves (system-system-spacing). After searching the
>> manuals I couldn't find an answer to two questions concerning this symbol.
>> I
>> read there, that I can use any /markup-block for system-separator-markup
>> but:
>>
>> 1. Sometimes the slashSeparator comes very close to the bar-numbering of
>> the
>> first staff. Is it possible to pad the slashSeparator in any way. For that
>> I
>> would - as I understand it - have to know the context in which the symbol
>> is
>> set.
>>
>> 2. I can not change the size (I would like for it to be larger) of the
>> symbol. If I am not mistaken I would need a possibility to directly name
>> the
>> glyph. But I can't find a hint, where the gylph comes form (what font,
>> maybe
>> a glyph-name). Can anyone point me to that information?
>>
>> Maybe I searched for the wrong keywords or didn't understand the manual.
>> Any
>> tip is very welcome!…
>>
>> =====================================================================
>>
>> A search of the source code gives:
>>
>> slashSeparator = \markup {
>> \center-align
>> \vcenter \combine
>> \beam #2.0 #0.5 #0.48
>> \raise #0.7 \beam #2.0 #0.5 #0.48
>> }
>>
>> So - as the name implies, system-separator-markup simply uses markup as
>> its
>> argument, so you could put any valid markup there, I believe. However, I
>> don't think there is any collision avoidance done with the separator and
>> the
>> staves.
>>
>>
>
> maybe playing with the numbers below could achieve it:
>
> \paper {
> mySlashSeparator = \markup {
> \left-align
> \raise #-2
> \combine
> \beam #4.0 #.2 #0.24
> \raise #0.7
> \beam #4.0 #.2 #0.24
> }
> }
> system-separator-markup = \mySlashSeparator
> system-system-spacing = #'(
> (basic-distance . 12)
> (minimum-distance . 5)
> (padding . 0)
> (stretchability . 99)
> )
> }
> \header {
> }
> \score {
> \new Voice {
> \repeat unfold 16 {
> c'''4 c' c' c' |
> c'4 c' c' c' |
> c4 c' c' c' | \break
> }
> }
> }
>
> maybe you also want to shift the sparator horizontally: simply use \hspace
> #2 above or look for a more elaborated way in the German LilyPond forum:
> http://www.lilypondforum.de/index.php?topic=750.0
>
> as Phil mentioned there seems to be no collision avoidance.
>
> Eluze