Hello: 

 

Thanks for the previous help from Guy, Pierre, and David, but I found some 
glitches. See the example below.

 

In measure 2, the brace hits against the barline. I tried using hshift, but was 
unsuccessful. In measure 2, the position of the rest seems to mess things up.

 

In these situations, what technique is recommended to avoid these collisions in 
measures 2 and 3? Again, please feel free to point me to the documentation that 
I may have missed.

 

 

\version "2.19.54"

#(define-markup-command (openBracket layout props height) (number?)

  (interpret-markup layout props

    (markup #:line (#:with-dimensions (cons 3 0) (cons 0 0)

      (#:path 0.25

        (list (list (quote moveto) 0 0)

        (list (quote lineto) -1 0)

        (list (quote lineto) -1 (* height -1))

        (list (quote lineto) 0 (* height -1))))))))

 

\new PianoStaff <<

  \new Staff \relative c'' {

    \time 2/4

    a^\markup { SW }^\markup\openBracket #20 c'

 

    a^\markup { GT }^\markup\openBracket #19 a

 

    R2^\markup { SW }^\markup\openBracket #19

 

  }

  \new Staff {

    \clef F  c'4 c' |  c c | a a}

>> 

 

Thanks again.

 

Joe Srednicki

 

From: Guy Stalnaker [mailto:jimmyg...@gmail.com] 
Sent: Thursday, March 23, 2017 6:18 PM
To: Pierre Perol-Schneider <pierre.schneider.pa...@gmail.com>; Joseph N. 
Srednicki <jnsredni...@verizon.net>
Cc: lilypond-user <lilypond-user@gnu.org>
Subject: Re: Adding a brace or bracket to indicate an organ manual change

 

God I love the Frescobaldi/Lilypond community!

Pierre, just playing around with values in snippet 957 I discovered the two 
changes to get you what asked for:

<code>
#(define-markup-command (openBracket layout props height) (number?)
  (interpret-markup layout props
    (markup #:line (#:with-dimensions (cons 3 0) (cons 0 0) % Change here to 3 
puts bracket hook above SW
      (#:path 0.25
        (list (list (quote moveto) 0 0)
        (list (quote lineto) -1 0)
        (list (quote lineto) -1 (* height -1))
        (list (quote lineto) 0 (* height -1))))))))

\new PianoStaff <<
  \new Staff \relative c'' {
    a^\markup { SW }^\markup\openBracket #20 % Change here to get lower bracket 
hook below staff
    c'
  }
  \new Staff { \clef F c' c' }
>>
</code>

I take these little gifts and make my own useful lilypond snippets folders for 
future easy reference.

You people are brilliant. Simply amazing. Thanks.

Regards.

On 3/23/2017 2:13 PM, Pierre Perol-Schneider wrote:

Hi Joe,

There are two snippets in the LSR that could help you:
- http://lsr.di.unimi.it/LSR/Item?id=466
- http://lsr.di.unimi.it/LSR/Item?id=957

HTH, cheers,

Pierre

 

2017-03-23 20:18 GMT+01:00 Joseph N. Srednicki <jnsredni...@verizon.net 
<mailto:jnsredni...@verizon.net> >:

Hello:

 

May I ask advice on how to insert a brace or bracket in a score to indicate an 
organ-manual change?

 

Please see the image that I have inserted. (I am using Outlook, which places 
the image in the message. If you are using another email application, I hope 
that the image comes through as an attachment.)

 

If the documentation explains how to do this, please send me the link. My 
searching did not come up with anything.

 



 

Thanks for your help.

 

Joe Srednicki


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

 






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





-- 
“Happiness is the meaning and the purpose of life, the whole aim and end of 
human existence.”
― Aristotle
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to