1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
6 % This file is in the public domain.
7 %% Note: this file works from version 2.15.30
11 %% Translation of GIT committish: 5a7301fc350ffc3ab5bd3a2084c91666c9e9a549
13 He aquí cómo imprimir acordes con cejilla o con media cejilla (quite
14 la marca de comentario de la línea adecuada para seleccionar uno de
17 La sintaxis es @code{\\bbarre #\"@var{número de traste}\" @{ notas @} }.
20 doctitlees = "Notación de acordes de cejilla para guitarra (con elemento de extensión de texto)"
22 lsrtags = "chords, fretted-strings"
25 Here is how to print bar chords, or half-bar chords (just uncomment the
26 appropriate line for to select either one).
28 The syntax is @code{\\bbarre #\"@var{fret number}\" @{ notes @} }.
30 doctitle = "Bar chords notation for Guitar (with Text Spanner)"
34 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
35 %% %%%%%%% Cut here ----- Start 'bbarred.ly'
37 %% C with slash -------------------------------
38 cWithSlash = \markup {
39 \combine \roman C \translate #'(0.6 . -0.4) \draw-line #'(0 . 2.0)
41 %% Span -----------------------------------
42 %% Syntax: \bbarre #"text" { notes } - text = any number of box
44 #(define-music-function (barre location str music) (string? ly:music?)
45 (let ((elts (extract-named-music music '(NoteEvent EventChord))))
47 (let ((first-element (first elts))
48 (last-element (last elts)))
49 (set! (ly:music-property first-element 'articulations)
50 (cons (make-music 'TextSpanEvent 'span-direction -1)
51 (ly:music-property first-element 'articulations)))
52 (set! (ly:music-property last-element 'articulations)
53 (cons (make-music 'TextSpanEvent 'span-direction 1)
54 (ly:music-property last-element 'articulations))))))
56 \once \override TextSpanner #'font-size = #-2
57 \once \override TextSpanner #'font-shape = #'upright
58 \once \override TextSpanner #'staff-padding = #3
59 \once \override TextSpanner #'style = #'line
60 \once \override TextSpanner #'to-barline = ##f
61 \once \override TextSpanner #'bound-details =
63 (text . ,#{ \markup { \draw-line #'( 0 . -.5) } #})
68 (text . ,#{ \markup { \cWithSlash #str } #})
72 %% uncomment this line for make full barred
73 % \once \override TextSpanner #'bound-details #'left #'text = \markup { "B" #str }
77 %% %%%%%%% Cut here ----- End 'bbarred.ly'
78 %% Copy and change the last line for full barred. Rename in 'fbarred.ly'
79 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
81 %% Syntaxe: \bbarre #"text" { notes } - text = any number of box
82 \relative c'{ \clef "G_8" \stemUp \bbarre #"III" { <f a'>16[ c' d c d8] } }