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