]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/snap-pizzicato-markup-bartok-pizzicato.ly
Merge branch 'lilypond/translation' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / input / lsr / snap-pizzicato-markup-bartok-pizzicato.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.13.1"
4
5 \header {
6   lsrtags = "expressive-marks, unfretted-strings"
7
8   doctitlees = "Marca de pizzicato de chasquido (@q{pizzicato de Bartók})"
9   texidoces = "
10 El pizzicato de chasquido (también llamado @q{Pizzicato de Bartók}) es un
11 @q{pizzicato fuerte en que la cuerda se pulsa verticalmente produciendo un
12 chasquido y rebotando en el diapasón del instrumento} (Wikipedia).  Se
13 denota mediante una circunferencia con una línea vertical corta que parte
14 del centro de aquélla hacia fuera.  Aunque LilyPond no tiene ninguna
15 instrucción predefinida para crear esta marca, es fácil hacer la definición
16 y colocarla directamente en el archivo de lilypond.
17 "
18
19   doctitlede = "Bartók-Pizzicato"
20   texidocde = "
21 Das Bartók-Pizzicato @q{ist eine besondere Form des Pizzicato, bei dem der
22 Spieler die Saite auf das Griffbrett aufschlagen lässt, sodass zusätzlich
23 zum angeschlagenen Ton ein scharfes, knallendes Geräusch ertönt}
24 (Wikipedia).  Es wird dargestellt als kleiner Kreis mit einer vertikalen
25 Linie, die vom Kreiszentrum aus nach oben weist und ein Stück außerhalb des
26 Kreises endet.  Lilypond hat keinen eigenen Glyphen für dieses Symbol; es
27 ist aber einfach, direkt eine Definition in die Eingabedatei einzufügen.
28 "
29
30   texidoc = "
31 A snap-pizzicato (also known as \"Bartok pizzicato\") is a \"strong
32 pizzicato where the string is plucked vertically by snapping and
33 rebounds off the fingerboard of the instrument\" (Wikipedia). It is
34 denoted by a cicle with a vertical line going from the center upwards
35 outside the circle. While Lilypond does not have a pre-defined command
36 to created this markup, it is easy to create a definition and place it
37 directly into the lilypond file. 
38
39 "
40   doctitle = "Snap-pizzicato markup (\"Bartok pizzicato\")"
41 } % begin verbatim
42
43 #(define-markup-command (snappizz layout props) ()
44   (interpret-markup layout props
45     (markup #:stencil
46       (ly:stencil-translate-axis
47         (ly:stencil-add
48           (make-circle-stencil 0.7 0.1 #f)
49           (ly:make-stencil
50             (list 'draw-line 0.1 0 0.1 0 1)
51             '(-0.1 . 0.1) '(0.1 . 1)))
52         0.7 X))))
53
54 snapPizzicato = \markup \snappizz
55
56 % now it can be used as \snappizzicato after the note/chord
57 % Note that a direction (-, ^ or _) is required.
58 \relative c' {
59   c4^\snapPizzicato
60   % This does NOT work:
61   %<c e g>\snapPizzicato
62   <c' e g>-\snapPizzicato
63   <c' e g>^\snapPizzicato
64   <c, e g>_\snapPizzicato
65 }