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