bars and clefs

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

bars and clefs

Guy Durrieu


Hello,

When specifying a clef change after a bar (for exemple a repeat bar),
the clef is placed before the  bar. I would like to know if there is a
mean to ask a clef change to be placed after the bar.

Thanks in advance for your help !

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Guy DURRIEU  ONERA/TIS/DTIM                tel    (33) 05.62.25.26.59
CERT, 2, avenue Edouard Belin  B.P. 4025   fax    (33) 05.62.25.25.93
31055 TOULOUSE CEDEX 4 FRANCE              e-mail [hidden email]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=





_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: bars and clefs

Mats Bengtsson-6
This order is specified by the break-align-orders property of the
BreakAlignment object, see
http://lilypond.org/doc/v2.6/Documentation/user/out-www/lilypond-internals/BreakAlignment.html#BreakAlignment

So, to modify this for clef changes in the middle of a line, for example,
you could do;

\override Score.BreakAlignment #'break-align-orders = #'(
                            ;; end of line
                            (instrument-name
                               left-edge
                               ambitus
                               breathing-sign
                               clef
                               staff-bar
                               key-cancellation
                               key-signature
                               time-signature
                               custos)
 
                              ;; unbroken
                              (instrument-name
                               left-edge
                               ambitus
                               breathing-sign
;;  Default order:
;;                               clef
;;                               staff-bar
;; Modified into:
                               staff-bar
                               clef
                               key-cancellation
                               key-signature
                               staff
                               time-signature custos)

                              ;; begin of line
                              (instrument-name
                               left-edge
                               ambitus
                               breathing-sign
                               clef
                               key-cancellation
                               key-signature
                               staff-bar
                               time-signature
                               custos)))


   /Mats

Guy Durrieu wrote:

>Hello,
>
>When specifying a clef change after a bar (for exemple a repeat bar),
>the clef is placed before the  bar. I would like to know if there is a
>mean to ask a clef change to be placed after the bar.
>
>Thanks in advance for your help !
>
>  
>

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463
        Fax:   (+46) 8 790 7260
        Email: [hidden email]
        WWW: http://www.s3.kth.se/~mabe
=============================================



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: bars and clefs

Guy Durrieu
Mats Bengtsson wrote :
> This order is specified by the break-align-orders property of the
> BreakAlignment object, see
> http://lilypond.org/doc/v2.6/Documentation/user/out-www/lilypond-internals/BreakAlignment.html#BreakAlignment
>

Thanks for your help. That works ; however, with a :|: bar, when
inverting the order, the clef is almost stuck to it...

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Guy DURRIEU  ONERA/TIS/DTIM                tel    (33) 05.62.25.26.59
CERT, 2, avenue Edouard Belin  B.P. 4025   fax    (33) 05.62.25.25.93
31055 TOULOUSE CEDEX 4 FRANCE              e-mail [hidden email]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=





_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
stk
Reply | Threaded
Open this post in threaded view
|

Re: bars and clefs

stk
In reply to this post by Guy Durrieu
> . . . however, with a :|: bar, when
> inverting the order, the clef is almost stuck to it...

You might try

     \once \override Staff.Clef #'extra-X-extent = #'(-2 . 1)
     \clef tenor

which would give you 2 more units of space to the left of the
clef symbol and 1 more unit of space to the right of the clef.
("tenor":  sorry, I deleted so much e-mail that I've lost track
of what clef you actually wanted.)

I'm sitting at a non-LilyPond machine at the moment, so I can't test
that to verify it, but I've used similar commands to provide extra space
to the left or right of various musical graphic objects ("grobs").

-- Tom



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: bars and clefs

Guy Durrieu
[hidden email] a écrit :

>
> You might try
>
>      \once \override Staff.Clef #'extra-X-extent = #'(-2 . 1)
>      \clef tenor
>
> which would give you 2 more units of space to the left of the
> clef symbol and 1 more unit of space to the right of the clef.
> ("tenor":  sorry, I deleted so much e-mail that I've lost track
> of what clef you actually wanted.)
>
> I'm sitting at a non-LilyPond machine at the moment, so I can't test
> that to verify it, but I've used similar commands to provide extra space
> to the left or right of various musical graphic objects ("grobs").
>
> -- Tom
>
>
>

Thanks for your help. I'll try that. I am aware of these commands, but
it is not easy for a beginner to find out the right command with the
right parameters. And they may be difficult to use since the other
objects stay where they are :)

Regards.

-- Guy




_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: bars and clefs

Mats Bengtsson-6
An alternative solution that goes more to the source of the actual problem
is to do something like

\override Score.BarLine #'space-alist = #'(
                        (time-signature . (extra-space . 0.75))
                        (custos . (minimum-space . 2.0))
                        (clef . (minimum-space . 1.5)) % Default value = 1.0
                        (key-signature . (extra-space . 1.0))
                        (key-cancellation . (extra-space . 1.0))
                        (first-note . (fixed-space . 1.3))
                        (next-note . (semi-fixed-space . 1.3))
                        (right-edge . (extra-space . 0.0)))

Maybe you have to increase the minimum space from BarLine to key-signature
even further, 1.5 is just a guess.

This is definitely something that's hard to figure out yourself from the
documentation. That's why we have a mailing list.

   /Mats

Guy Durrieu wrote:

>[hidden email] a écrit :
>  
>
>>You might try
>>
>>     \once \override Staff.Clef #'extra-X-extent = #'(-2 . 1)
>>     \clef tenor
>>
>>which would give you 2 more units of space to the left of the
>>clef symbol and 1 more unit of space to the right of the clef.
>>("tenor":  sorry, I deleted so much e-mail that I've lost track
>>of what clef you actually wanted.)
>>
>>I'm sitting at a non-LilyPond machine at the moment, so I can't test
>>that to verify it, but I've used similar commands to provide extra space
>>to the left or right of various musical graphic objects ("grobs").
>>
>>-- Tom
>>
>>
>>
>>    
>>
>
>Thanks for your help. I'll try that. I am aware of these commands, but
>it is not easy for a beginner to find out the right command with the
>right parameters. And they may be difficult to use since the other
>objects stay where they are :)
>
>Regards.
>
>-- Guy
>
>
>
>
>_______________________________________________
>lilypond-user mailing list
>[hidden email]
>http://lists.gnu.org/mailman/listinfo/lilypond-user
>  
>

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463
        Fax:   (+46) 8 790 7260
        Email: [hidden email]
        WWW: http://www.s3.kth.se/~mabe
=============================================



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: bars and clefs

Guy Durrieu
Mats Bengtsson wrote :

> An alternative solution that goes more to the source of the actual problem
> is to do something like
>
> \override Score.BarLine #'space-alist = #'(
>                         (time-signature . (extra-space . 0.75))
>                         (custos . (minimum-space . 2.0))
>                         (clef . (minimum-space . 1.5)) % Default value = 1.0
>                         (key-signature . (extra-space . 1.0))
>                         (key-cancellation . (extra-space . 1.0))
>                         (first-note . (fixed-space . 1.3))
>                         (next-note . (semi-fixed-space . 1.3))
>                         (right-edge . (extra-space . 0.0)))
>
> Maybe you have to increase the minimum space from BarLine to key-signature
> even further, 1.5 is just a guess.
>
>

Thanks for your help. That's exactly what I need. Unfortately, it
does'nt work for me (no effect). I dont understand why.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Guy DURRIEU  ONERA/TIS/DTIM                tel    (33) 05.62.25.26.59
CERT, 2, avenue Edouard Belin  B.P. 4025   fax    (33) 05.62.25.25.93
31055 TOULOUSE CEDEX 4 FRANCE              e-mail [hidden email]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=





_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user