]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/snap-pizzicato-markup-bartok-pizzicato.ly
LSR: Update.
[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.11.62"
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 % Definition of the snappizz markup to print snap-pizzicato articulations.
44 % These are also known as "Bartok pizzicato" and are denotes by a circle with a
45 % vertical line from the center of the circle upwards:
46 #(define-markup-command (snappizz layout props) ()
47   (interpret-markup layout props
48     (markup #:stencil
49       (ly:stencil-translate-axis
50         (ly:stencil-add
51           (make-circle-stencil 0.7 0.1 #f)
52           (ly:make-stencil
53             (list 'draw-line 0.1 0 0.1 0 1)
54             '(-0.1 . 0.1) '(0.1 . 1)
55           )
56         )
57         0.7 X
58       )
59     )
60   )
61 )
62 snappizzicato = \markup \snappizz
63
64 % now it can be used as \snappizzicato after the note/chord
65 % Note, that a direction (-, ^ or _) is REQUIRED!
66 \relative c'{
67    c4^\snappizzicato
68 %    < c e g>\snappizzicato  % This does NOT work
69    < c' e g>-\snappizzicato
70    < c' e g>^\snappizzicato
71    < c, e g>_\snappizzicato
72 }
73