lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange problem with guitar bends


From: Federico Bruni
Subject: Re: Strange problem with guitar bends
Date: Thu, 31 Jul 2014 15:38:43 +0200

2014-07-31 12:49 GMT+02:00 Federico Bruni <address@hidden>:

2014-07-31 9:56 GMT+02:00 Martyn Quick <address@hidden>:

The \hideNotes and \unHideNotes is to achieve the work-around for mixing bending strings with hammer-on and pull-offs (which are engraved using normal slurs).  This is just an excerpt of what I was trying to engrave... and I think it is minimal, in the sense that if you remove any one part of it then Lilypond runs fine and produces what I expected.


Ok, then I would write the last lines this way (this avoids the error, by the way):

\bendOff

\shape #'((-0.8 . 0.5) (-0.8 . 0.5) (-0.8 . 0.5) (-0.8 . 1)) Voice.Slur

\shape #'((-0.3 . 0) (-0.3 . 0) (-0.3 . 0) (-0.5 . 0.5)) TabVoice.Slur

\hideNotes \grace a( \unHideNotes g )


Adjust the values of \shape


And this is a full example of the workaround. I might add it to the README on Github:

\version "2.18.0"
\include "notation-snippets/guitar-string-bending/definitions.ily"

music = \relative c' {
  \set TabStaff.minimumFret = 4
  \set TabStaff.restrainOpenStrings = ##t
  \bendOn 
  fis8( g)( fis) \bendOff
  \shape #'((-0.8 . 0.5) (-0.8 . 0.5) (-0.8 . 0.5) (-0.8 . 1)) Voice.Slur
  \shape #'((-0.5 . 0) (-0.5 . 0) (-0.5 . 0) (-0.5 . 0.3)) TabVoice.Slur
  \hideNotes \grace fis( \unHideNotes e)
}

\score {
  \new StaffGroup <<
    \new Staff { \new Voice { \clef "treble_8" \music } }
    \new TabStaff { \new TabVoice { \clef "moderntab" \music } }
  >>
  \layout {
    indent = #0
    \context { \StaffGroup \override StaffGrouper.staff-staff-spacing.padding = #3 }
  }
}


reply via email to

[Prev in Thread] Current Thread [Next in Thread]