[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: BendBefore / BendSpanner examples?
From:       Paul Scott <waterhorse () ultrasw ! com>
Date:       2020-05-31 19:59:29
Message-ID: 8f63f659-e948-62d3-579d-1a89015030fb () ultrasw ! com
[Download RAW message or body]

My apologies!

My definition below needs:

#(define (scoop-stencil grob)
   (ly:stencil-combine-at-edge
    (ly:note-head::print grob) 0 -1
    (grob-interpret-markup grob
     (markup #:with-dimensions '(0 . 0) '(0 . 0)
      #:translate '( -2 . -2) #:musicglyph "brackettips.up" )) 0 )
)

Paul


On 5/31/20 12:10 PM, Paul Scott wrote:
>
>
> On 5/31/20 9:44 AM, Wim van Dommelen wrote:
>> Hi Pierre,
>>
>> Marvellous, I looked at it this morning and thought one couldn't do 
>> that so fast! Now I can also finish that code :-)
>
> Or I have this definition in my main include file:
>
> scoop = \once \override NoteHead #'stencil = #scoop-stencil
>
> Then I just do \scoop a4 for example.
>
> Paul
>
>
>>
>> You're the fast, one and single winner, mail me you IBAN and 
>> Swift-code (by seperate email)  and I'll send you the reward a.s.a.p. 
>> Promis is promis!
>>
>> Regards,
>> Wim.
>>
>>
>>> On 31 May 2020, at 16:46 , Pierre Perol-Schneider 
>>> <pierre.schneider.paris@gmail.com 
>>> <mailto:pierre.schneider.paris@gmail.com>> wrote:
>>>
>>> Hi Wim,
>>> For a one shot score, you can do:
>>>
>>> \version "2.20.0"
>>>
>>> {
>>>   \clef F
>>>   \key g\major
>>>   bes
>>>   \once\hideNotes
>>>   \grace e-\tweak extra-offset #'(-1.3 . .8)( a) g fis
>>>   \repeat unfold 4 {
>>>     r8 \once\hideNotes
>>>     \grace e'-\tweak extra-offset #'(-1.3 . .8)( g')
>>>   }
>>>   \repeat unfold 3 {
>>>     \once\hideNotes
>>>     \grace e'-\tweak extra-offset #'(-1.3 . .8)( g'4)
>>>   }
>>>   \once\hideNotes
>>>   \grace e'8-\tweak extra-offset #'(-1.3 . .8)( g') fis'!
>>>
>>> }
>>>
>>> HTH.
>>> Cheers,
>>> Pierre
>>>
>>> Le dim. 31 mai 2020 à 16:24, Wim van Dommelen <mail@wimvd.nl 
>>> <mailto:mail@wimvd.nl>> a écrit :
>>>
>>>     Showing LilyPond to a friend is sometimes tricky. The question:
>>>     "Oh, can it do this or that?" easily pops up.
>>>
>>>     I "survived" the BendAfter question, but had to let go for a
>>>     BendBefore (or 'doit'?) example.
>>>
>>>     Diving in at home later that day I found some interesting things
>>>     done with a new(?) BendSpanner-grob for a guitar, and several
>>>     people having put a bounty for further work on this. This goes
>>>     back to 2013, 2016, 2019, apparantly not an easy question. The
>>>     BendSpanner-grob example goes way behind what I probably ever
>>>     will need, in fact I would probably have enough with the coding
>>>     for (some of) my examples.
>>>
>>>     I've extracted 3 examples in 3 .PNG-files, attached. If you want
>>>     I can also put a bounty out for this ($25 for each example via
>>>     PayPal?, first come, first serve). My bending is aimed at a bass
>>>     clarinet, but that is probably irrelevant for you.....
>>>
>>>     The 3 examples:
>>>
>>>     1:
>>>
>>>     <BendBefore-1.png>
>>>     (the bar-number "12" is irrelevant, btw.)
>>>
>>>
>>>     2:
>>>     <BendBefore-2.png>
>>>
>>>
>>>     3:
>>>     <BendBefore-3.png>
>>>
>>>     Can someone help me?
>>>
>>>     Regards,
>>>     Wim.
>>>
>>

[Attachment #3 (text/html)]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>My apologies!</p>
    <p>My definition below needs:</p>
    <p>#(define (scoop-stencil grob) <br>
        (ly:stencil-combine-at-edge <br>
         (ly:note-head::print grob) 0 -1 <br>
         (grob-interpret-markup grob <br>
          (markup #:with-dimensions '(0 . 0) '(0 . 0)<br>
           #:translate '( -2 . -2) #:musicglyph "brackettips.up" )) 0 )<br>
      )<br>
    </p>
    <p>Paul</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 5/31/20 12:10 PM, Paul Scott wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:d05970aa-7171-801c-ce06-698c39ce0c95@ultrasw.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p><br>
      </p>
      <div class="moz-cite-prefix">On 5/31/20 9:44 AM, Wim van Dommelen
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:897D3481-07A1-4A3D-8840-8EB2492CB7CD@wimvd.nl">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        Hi Pierre,
        <div class=""><br class="">
        </div>
        <div class="">Marvellous, I looked at it this morning and
          thought one couldn't do that so fast! Now I can also finish
          that code :-)</div>
      </blockquote>
      <p>Or I have this definition in my main include file:</p>
      <p>scoop = \once \override NoteHead #'stencil = #scoop-stencil</p>
      <p>Then I just do \scoop a4 for example.</p>
      <p>Paul</p>
      <p><br>
      </p>
      <blockquote type="cite"
        cite="mid:897D3481-07A1-4A3D-8840-8EB2492CB7CD@wimvd.nl">
        <div class="">
          <div class=""><br class="">
          </div>
          <div class="">You're the fast, one and single winner, mail me
            you IBAN and Swift-code (by seperate email)  and I'll send
            you the reward a.s.a.p. Promis is promis!</div>
          <div class=""><br class="">
          </div>
          <div class="">Regards,</div>
          <div class="">Wim.</div>
          <div class=""><br class="">
            <div><br class="">
              <blockquote type="cite" class="">
                <div class="">On 31 May 2020, at 16:46 , Pierre
                  Perol-Schneider &lt;<a
                    href="mailto:pierre.schneider.paris@gmail.com"
                    class="" moz-do-not-send="true">pierre.schneider.paris@gmail.com</a>&gt;
                  wrote:</div>
                <br class="Apple-interchange-newline">
                <div class="">
                  <div dir="ltr" class="">
                    <div class="">Hi Wim,</div>
                    <div class="">For a one shot score, you can do:</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">\version "2.20.0"<br class="">
                      <br class="">
                      {<br class="">
                        \clef F<br class="">
                        \key g\major<br class="">
                        bes <br class="">
                        \once\hideNotes<br class="">
                        \grace e-\tweak extra-offset #'(-1.3 . .8)( a) g
                      fis<br class="">
                        \repeat unfold 4 {<br class="">
                          r8 \once\hideNotes<br class="">
                          \grace e'-\tweak extra-offset #'(-1.3 . .8)(
                      g')<br class="">
                        }<br class="">
                        \repeat unfold 3 {<br class="">
                          \once\hideNotes<br class="">
                          \grace e'-\tweak extra-offset #'(-1.3 . .8)(
                      g'4)<br class="">
                        }<br class="">
                        \once\hideNotes<br class="">
                        \grace e'8-\tweak extra-offset #'(-1.3 . .8)(
                      g') fis'!<br class="">
                        <br class="">
                      }</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">HTH.<br class="">
                    </div>
                    <div class="">Cheers,</div>
                    <div class="">Pierre<br class="">
                    </div>
                  </div>
                  <br class="">
                  <div class="gmail_quote">
                    <div dir="ltr" class="gmail_attr">Le dim. 31 mai
                      2020 à 16:24, Wim van Dommelen &lt;<a
                        href="mailto:mail@wimvd.nl" class=""
                        moz-do-not-send="true">mail@wimvd.nl</a>&gt; a
                      écrit :<br class="">
                    </div>
                    <blockquote class="gmail_quote" style="margin:0px
                      0px 0px 0.8ex;border-left:1px solid
                      rgb(204,204,204);padding-left:1ex">
                      <div style="overflow-wrap: break-word;" class="">Showing
                        LilyPond to a friend is sometimes tricky. The
                        question: "Oh, can it do this or that?" easily
                        pops up.
                        <div class=""><br class="">
                        </div>
                        <div class="">I "survived" the BendAfter
                          question, but had to let go for a BendBefore
                          (or 'doit'?) example.
                          <div class=""><br class="">
                          </div>
                          <div class="">Diving in at home later that day
                            I found some interesting things done with a
                            new(?) BendSpanner-grob for a guitar, and
                            several people having put a bounty for
                            further work on this. This goes back to
                            2013, 2016, 2019, apparantly not an easy
                            question. The BendSpanner-grob example goes
                            way behind what I probably ever will need,
                            in fact I would probably have enough with
                            the coding for (some of) my examples.</div>
                        </div>
                        <div class=""><br class="">
                        </div>
                        <div class="">I've extracted 3 examples in 3
                          .PNG-files, attached. If you want I can also
                          put a bounty out for this ($25 for each
                          example via PayPal?, first come, first serve).
                          My bending is aimed at a bass clarinet, but
                          that is probably irrelevant for you.....</div>
                        <div class=""><br class="">
                        </div>
                        <div class="">The 3 examples:</div>
                        <div class=""><br class="">
                        </div>
                        <div class="">1:</div>
                        <div class=""><br class="">
                        </div>
                        <div class=""><span
                            id="cid:1726b31ec909d4c33171">&lt;BendBefore-1.png&gt;</span></div>
                        <div class="">(the bar-number "12" is
                          irrelevant, btw.)</div>
                        <div class=""><br class="">
                        </div>
                        <div class=""><br class="">
                        </div>
                        <div class="">2: </div>
                        <div class=""><span
                            id="cid:1726b31ec919d5a4a982">&lt;BendBefore-2.png&gt;</span></div>
                        <div class=""><br class="">
                        </div>
                        <div class=""><br class="">
                        </div>
                        <div class="">3:</div>
                        <div class=""><span
                            id="cid:1726b31ec929d6862193">&lt;BendBefore-3.png&gt;</span></div>
                        <div class=""><br class="">
                        </div>
                        <div class="">Can someone help me?</div>
                        <div class=""><br class="">
                        </div>
                        <div class="">Regards,</div>
                        <div class="">Wim.</div>
                        <div class=""><br class="">
                        </div>
                      </div>
                    </blockquote>
                  </div>
                </div>
              </blockquote>
            </div>
            <br class="">
          </div>
        </div>
      </blockquote>
    </blockquote>
  </body>
</html>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic