From: James Lowe Date: Mon, 6 Jan 2014 07:14:53 +0000 (+0000) Subject: Doc: NR 2.4.1 - add Hammer/Pull snippets X-Git-Tag: release/2.19.1-1~29 X-Git-Url: https://git.donarmstrong.com/?p=lilypond.git;a=commitdiff_plain;h=53a9d7d77408bfe87ffa938582bd04fc12ca484a Doc: NR 2.4.1 - add Hammer/Pull snippets Issue 2594 Added 3 snippets illustrating Hammer-on and Pull-off in different circumstances Normal use With Voices With Chorded Notes Included @cindex entries --- diff --git a/Documentation/notation/fretted-strings.itely b/Documentation/notation/fretted-strings.itely index 412295985b..121dfc0580 100644 --- a/Documentation/notation/fretted-strings.itely +++ b/Documentation/notation/fretted-strings.itely @@ -462,6 +462,18 @@ ratioHarmonics = { @lilypondfile[verbatim,quote,texidoc,doctitle] {chord-glissando-in-tablature.ly} +@cindex hammer on +@cindex pull off + +@lilypondfile[verbatim,quote,texidoc,doctitle] +{hammer-on-and-pull-off.ly} + +@lilypondfile[verbatim,quote,texidoc,doctitle] +{hammer-on-and-pull-off-using-voices.ly} + +@lilypondfile[verbatim,quote,texidoc,doctitle] +{hammer-on-and-pull-off-using-chords.ly} + @seealso Notation Reference: @ref{Chord repetition}, diff --git a/Documentation/snippets/new/hammer-on-and-pull-off-using-chords.ly b/Documentation/snippets/new/hammer-on-and-pull-off-using-chords.ly new file mode 100644 index 0000000000..980707d334 --- /dev/null +++ b/Documentation/snippets/new/hammer-on-and-pull-off-using-chords.ly @@ -0,0 +1,21 @@ +\version "2.16.0" + +\header { + lsrtags = "editorial-annotations, fretted-strings" + + texidoc = " +When using hammer-on or pull-off with chorded notes, only a single arc +is drawn. However @q{double arcs} are possible by setting the +@code{doubleSlurs} property to @code{#t}. + +" + doctitle = "Hammer on and pull off using chords" +} + +\new TabStaff { + \relative c' { + % chord hammer-on and pull-off + \set doubleSlurs = ##t + 8( ) + } +} diff --git a/Documentation/snippets/new/hammer-on-and-pull-off-using-voices.ly b/Documentation/snippets/new/hammer-on-and-pull-off-using-voices.ly new file mode 100644 index 0000000000..d22a7f922c --- /dev/null +++ b/Documentation/snippets/new/hammer-on-and-pull-off-using-voices.ly @@ -0,0 +1,20 @@ +\version "2.16.0" + +\header { + lsrtags = "editorial-annotations, fretted-strings" + + texidoc = " +The arc of hammer-on and pull-off is upwards in voices one and three and +downwards in voices two and four: + +" + doctitle = "Hammer on and pull off using voices" +} + +\new TabStaff { + \relative c' { + << { \voiceOne g2( a) } + \\ { \voiceTwo a,( b) } + >> \oneVoice + } +} diff --git a/Documentation/snippets/new/hammer-on-and-pull-off.ly b/Documentation/snippets/new/hammer-on-and-pull-off.ly new file mode 100644 index 0000000000..c5b283b282 --- /dev/null +++ b/Documentation/snippets/new/hammer-on-and-pull-off.ly @@ -0,0 +1,18 @@ +\version "2.16.0" + +\header { + lsrtags = "editorial-annotations, fretted-strings" + + texidoc = " +Hammer-on and pull-off can be obtained using slurs. + +" + doctitle = "Hammer on and pull off" +} + +\new TabStaff { + \relative c' { + d4( e\2) + a( g) + } +}