2016-10-20 12:11 GMT+02:00 Marc Hohl <m...@hohlart.de>:
> Am 13.09.2016 um 22:41 schrieb Thomas Morley:
> [...]
>>
>> 2016-09-13 8:33 GMT+02:00 Marc Hohl <m...@hohlart.de>:
>
>
>>> I hope to find the source somewhere to provide you a scan of how it
>>> should
>>> look like.
>>
>>
>> Would be great.
>>
>
> I finally found some examples, but the bend arrows are not quite
> "convincing" ...
>
>
> Marc

Marc,

thanks for the examples.
In the attached bend-issues-02-excerpt.ly you'll find my attempt to
recode them (among others)

Federico,

in a private mail you asked about Ties in interplay with bends.
General excluding tied notes from being bend is possible but not a
good idea (see some of the examples in bend-issues-02-excerpt.ly)
Instead you could use
(1)
\tweak bend-me ##f
which would need to be applied to both bounding NoteHeads of the Tie.
(2)
\override Tie.bend-me = ##f
which is newly implemented

Thus a new release, see attached.


HTH,
  Harm

Attachment: bend-engraver-03.tar.gz
Description: GNU Zip compressed data

\version "2.19.49"


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% include bend-files
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include "../bend-helpers.ly"
\include "../bend-stencils.ly"
\include "../bend-grob-defs.ly"
\include "../bend-music-functions.ly"

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% layout
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\layout {
  indent = 0
  \context {
    \Score
    \override RehearsalMark.self-alignment-X = #LEFT
  }
  \context {
    \Voice
    \omit StringNumber
  }
  \context {
    \TabVoice
    %% next three lines only for better viewing/debugging
    \override BendSpanner.color = #red
    \override BendSpanner.layer = #20
    \override TabNoteHead.whiteout = ##f
    \override BendSpanner.details.target-visibility = ##f
  }
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Examples with two Voices for rare cases
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%
% 1
%%%%

\markup \rounded-box \fill-line { "bend to different amounts - two Voices" }

\new TabStaff <<
  \new TabVoice {
  	  \override BendSpanner.details.y-distance-from-tabstaff-to-arrow-tip = 3.3
  	  g'1\preBendHold \startBend a'1~ a'\stopBend\startBend g'\stopBend 
  }
  \new TabVoice { 
  	  \override BendSpanner.details.y-distance-from-tabstaff-to-arrow-tip = 0.7
  	  r1 g,1\startBend a,2\6\stopBend \startBend g,\stopBend r1 
  }
>>

%%%%
% 2
%%%%

mI = {
  \grace f'4 \startBend g'4\stopBend \startBend 
  \once \override TabNoteHead.transparent = ##t
  f'8\stopBend
}

mII = {
  \grace d'4 \startBend 
  \once \override NoteColumn.X-offset = 1.5
  ees'4\stopBend\startBend 
  \once \override TabNoteHead.transparent = ##t
  d'8\stopBend
}	
  	
<<
  \new Staff <<
    \new Voice { \key bes \major \voiceOne \clef "G_8" \mI }
    \new Voice { \voiceTwo \clef "G_8" \mII }
  >>
  \new TabStaff <<
    \new TabVoice {
      \override BendSpanner.details.y-distance-from-tabstaff-to-arrow-tip = 3.5
      \mI
    }
    \new TabVoice { 
      \override BendSpanner.details.y-distance-from-tabstaff-to-arrow-tip = 0.7
      { \voiceTwo \mII }
    }
  >>
>>

%%%%
% 3
%%%%

\markup \rounded-box \fill-line { 
 "bend to different amounts - two Voices with added articulations" 
}

">." =
\tweak BendSpanner.after-line-breaking 
  #(lambda (grob)
      (ly:grob-set-property! grob 'text
        #{
          \markup
            \override #'(direction . 1)
            \override #'(baseline-skip . 2.5)
            \dir-column \halign #CENTER {
              #(ly:grob-property grob 'text) 
              \override #'(baseline-skip . 0.8)
              \center-column {
                \musicglyph #"scripts.sforzato"
                \musicglyph #"dots.dot"
              }
            }
        #}))
        \etc

musUp = {
  s2. 
  \grace b'!4-\">." \startBend c''8->-.\stopBend b'16( a')~ a'1
}

musDown = {
  s2. 
  \grace g'4\2-\">."\startBend 
  \once \override NoteColumn.X-offset = 1.5
  a'8->-.\2\stopBend g'16(\2 f')\2~ f'1\2
}

<<
  \new Staff <<
  	  \new Voice { \voiceOne \clef "G_8" \musUp }
  	  \new Voice { \voiceTwo \clef "G_8" \musDown }
  >>
  \new TabStaff <<
    \new TabVoice
      \musUp
    \new TabVoice 
      { \voiceTwo \musDown }
  >>
>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Example with Ties
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\markup \rounded-box \fill-line { 
  "bend up, no release, bent note is tied"
  "and"
  "bend up, bent note is tied, release"
}
	
\new TabVoice {
  %% use \bendHold to ensure the tied note appears bent
  c'\3\startBend d'\3\stopBend\bendHold\startBend~ d'\3\stopBend
  %% bend up, no release, bent note is tied
  
  c'\3\startBend d'\3\stopBend\bendHold\startBend ~ d'\3~ 
    d'\3\stopBend\startBend c'\3\stopBend
 % % bend up, bent note is tied, release
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Example with Ties, excluding NoteHeads, example by Federico
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\markup \rounded-box \fill-line {  "ties in chords" }

myMusic = \relative {
  %% gis has a tie and should not be bent
  %% -> set the bounding NoteHeads to bend-me ##f
  <dis'-3\2 \tweak bend-me ##f gis-4~ >8\startBend 
  <e\2 \tweak bend-me ##f gis>\stopBend
  
  %% gis has a tie and should not be bent
  %% -> or use a general override for Tie.bend-me
  \override Tie.bend-me = ##f
  <dis-3\2 gis-4~ >8\startBend 
  <e\2 gis>\stopBend
}

\score {
  \new StaffGroup <<
    \new Staff { \clef "treble_8" \myMusic }
    \new TabStaff { \clef "moderntab" \new TabVoice \myMusic }
  >>
}
%}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to