]> git.lyx.org Git - lyx.git/blob - lib/examples/lilypond.lyx
Update the lilypond example file.
[lyx.git] / lib / examples / lilypond.lyx
1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
2 \lyxformat 413
3 \begin_document
4 \begin_header
5 \textclass article
6 \use_default_options true
7 \begin_modules
8 lilypond
9 \end_modules
10 \maintain_unincluded_children false
11 \language english
12 \language_package default
13 \inputencoding auto
14 \fontencoding global
15 \font_roman lmodern
16 \font_sans lmss
17 \font_typewriter lmtt
18 \font_default_family default
19 \use_non_tex_fonts false
20 \font_sc false
21 \font_osf false
22 \font_sf_scale 100
23 \font_tt_scale 100
24
25 \graphics default
26 \default_output_format default
27 \output_sync 0
28 \bibtex_command default
29 \index_command default
30 \paperfontsize default
31 \spacing single
32 \use_hyperref true
33 \pdf_title "LilyPond-book and LyX"
34 \pdf_author "The LyX Team"
35 \pdf_bookmarks true
36 \pdf_bookmarksnumbered true
37 \pdf_bookmarksopen true
38 \pdf_bookmarksopenlevel 1
39 \pdf_breaklinks false
40 \pdf_pdfborder false
41 \pdf_colorlinks true
42 \pdf_backref false
43 \pdf_pdfusetitle false
44 \papersize default
45 \use_geometry true
46 \use_amsmath 1
47 \use_esint 1
48 \use_mhchem 1
49 \use_mathdots 1
50 \cite_engine basic
51 \use_bibtopic false
52 \use_indices false
53 \paperorientation portrait
54 \suppress_date true
55 \use_refstyle 0
56 \index Index
57 \shortcut idx
58 \color #008000
59 \end_index
60 \leftmargin 2cm
61 \topmargin 2cm
62 \rightmargin 2cm
63 \bottommargin 2cm
64 \secnumdepth 3
65 \tocdepth 3
66 \paragraph_separation indent
67 \paragraph_indentation default
68 \quotes_language english
69 \papercolumns 1
70 \papersides 1
71 \paperpagestyle default
72 \tracking_changes false
73 \output_changes false
74 \html_math_output 0
75 \html_css_as_file 0
76 \html_be_strict true
77 \end_header
78
79 \begin_body
80
81 \begin_layout Title
82 LilyPond-book and LyX
83 \end_layout
84
85 \begin_layout Author
86 The LyX Team
87 \end_layout
88
89 \begin_layout Abstract
90 This document explains and demonstrates the inclusion of musical snippets
91  in a LyX document, using the LilyPond syntax for music notation and the
92  LilyPond-book utility for processing.
93 \end_layout
94
95 \begin_layout Section
96 Introduction
97 \end_layout
98
99 \begin_layout Standard
100 LilyPond is an open-source project that renders possible the creation of
101  beautiful computer-generated musical scores.
102  The project consists of a text-based music notation language, and a program
103  to process this notation into musical scores.
104 \end_layout
105
106 \begin_layout Standard
107 While LilyPond itself supports the display of title, author information,
108  footnotes, endnotes, etc., its primary focus is on music typesetting.
109  For text typesetting, other programs are generally better suited.
110  LilyPond-book is an utility provided by the LilyPond project that helps
111  incorporate musical scores using the LilyPond notation into LaTeX documents,
112  among other formats.
113 \end_layout
114
115 \begin_layout Standard
116 This document describes the use of the LilyPond music notation within LyX
117  documents that use a LaTeX-based layout, thus combining the beauty and
118  quality of the typesetting achieved by both LaTeX and LilyPond.
119  While a basic understanding of the LilyPond syntax for music notation is
120  in order, knowledge of LaTeX is not necessary when using LyX.
121 \end_layout
122
123 \begin_layout Standard
124 Section 
125 \begin_inset CommandInset ref
126 LatexCommand ref
127 reference "sec:Using-LilyPond-code"
128
129 \end_inset
130
131  explains the requirements, usage instructions, and shortcomings of LilyPond
132  music notation within LyX.
133  Section 
134 \begin_inset CommandInset ref
135 LatexCommand ref
136 reference "sec:LilyPond-examples"
137
138 \end_inset
139
140  demonstrates the beauty and quality of the typesetting with a few examples.
141 \end_layout
142
143 \begin_layout Section
144 Using LilyPond code within LyX
145 \begin_inset CommandInset label
146 LatexCommand label
147 name "sec:Using-LilyPond-code"
148
149 \end_inset
150
151
152 \end_layout
153
154 \begin_layout Standard
155 Support for LilyPond music notation (LilyPond code) within LyX is enabled
156  by adding the LilyPond module to your document.
157  This is done from the menu 
158 \family sans
159 Document\SpecialChar \menuseparator
160 Settings
161 \family default
162 , then selecting LilyPond in the list of modules.
163  You can use any LaTeX-based LyX layout and use the regular preview and
164  export mechanism; LyX will take care of processing the mixed LaTeX/LilyPond
165  code through LilyPond-book for you.
166  LilyPond-book can also handle DocBook and HTML documents, but the integration
167  of these document types with LilyPond-book and LyX is missing at the moment.
168 \end_layout
169
170 \begin_layout Subsection
171 Requirements
172 \end_layout
173
174 \begin_layout Standard
175 LilyPond-book version 2.13 or newer.
176 \begin_inset Foot
177 status collapsed
178
179 \begin_layout Plain Layout
180 LilyPond-book supports LaTeX output since version 2.1.
181  However, some features used by LyX are available only in recent versions:
182  PDFLaTeX support (version 2.9), the 
183 \family typewriter
184 --lily-output-dir
185 \family default
186  flag (version 2.11) and especially the 
187 \family typewriter
188 --safe
189 \family default
190  flag (version 2.13).
191 \end_layout
192
193 \end_inset
194
195
196 \end_layout
197
198 \begin_layout Subsection
199 Integration
200 \end_layout
201
202 \begin_layout Standard
203 The module provides a LilyPond inset which you insert from the menu 
204 \family sans
205 Insert\SpecialChar \menuseparator
206 Custom
207 \begin_inset space ~
208 \end_inset
209
210 Insets
211 \family default
212 .
213  This inset is for typing the LilyPond code which will be typeset into your
214  musical notes.
215  First, let us try a simple scale:
216 \end_layout
217
218 \begin_layout Standard
219 \begin_inset Flex LilyPond
220 status open
221
222 \begin_layout Plain Layout
223
224
225 \backslash
226 relative c'' {
227 \end_layout
228
229 \begin_layout Plain Layout
230
231   g a b c
232 \end_layout
233
234 \begin_layout Plain Layout
235
236 }
237 \end_layout
238
239 \end_inset
240
241
242 \end_layout
243
244 \begin_layout Standard
245 \noindent
246 The previous LyX inset produces the following LaTeX-lookalike code:
247 \end_layout
248
249 \begin_layout LyX-Code
250
251 \backslash
252 begin{lilypond}
253 \end_layout
254
255 \begin_layout LyX-Code
256
257 \backslash
258 relative c'' {
259 \end_layout
260
261 \begin_layout LyX-Code
262   g a b c
263 \end_layout
264
265 \begin_layout LyX-Code
266 }
267 \end_layout
268
269 \begin_layout LyX-Code
270
271 \backslash
272 end{lilypond}
273 \end_layout
274
275 \begin_layout Standard
276 This code is not, in fact, processed by LaTeX, but is preprocessed by LilyPond-b
277 ook, which creates the graphics files and includes them in the LaTeX document
278  by replacing the above with a 
279 \family typewriter
280
281 \backslash
282 includegraphics{\SpecialChar \ldots{}
283 }
284 \family default
285  command.
286 \end_layout
287
288 \begin_layout Standard
289 Thus, the conversion process is as follow: 
290 \family sans
291 LyX\SpecialChar \menuseparator
292 LilyPond-book\SpecialChar \menuseparator
293 LaTeX
294 \family default
295 .
296  LyX creates a .lytex file, LilyPond-book creates a .tex files and the accompanyin
297 g image files, and LaTeX creates the final document.
298  Every step of the tool chain obeys your spacing, so whether you put the
299  musical extract inline, or in its own paragraph, centered, left-aligned,
300  etc., what you see in the LyX window should be respected in the final format.
301  An example of inline use may be to display a chord name, such as
302 \begin_inset Flex LilyPond
303 status open
304
305 \begin_layout Plain Layout
306
307
308 \backslash
309 markup { 
310 \backslash
311 concat {B 
312 \backslash
313 super 
314 \backslash
315 flat } }
316 \end_layout
317
318 \end_inset
319
320 , or perhaps a very short snippet.
321 \end_layout
322
323 \begin_layout Subsection
324 Previews
325 \end_layout
326
327 \begin_layout Standard
328 It is possible to have a direct feedback of what the music notation looks
329  like from within LyX.
330  To do this, wrap a LilyPond inset inside a Preview inset, which you find
331  from the menu 
332 \family sans
333 Insert\SpecialChar \menuseparator
334 Preview
335 \family default
336 .
337  This only affects the display within LyX, not the output:
338 \end_layout
339
340 \begin_layout Standard
341 \begin_inset Preview
342
343 \begin_layout Standard
344 \begin_inset Flex LilyPond
345 status collapsed
346
347 \begin_layout Plain Layout
348
349
350 \backslash
351 relative c'' {
352 \end_layout
353
354 \begin_layout Plain Layout
355
356   ais a g ges
357 \end_layout
358
359 \begin_layout Plain Layout
360
361 }
362 \end_layout
363
364 \end_inset
365
366
367 \end_layout
368
369 \end_inset
370
371
372 \end_layout
373
374 \begin_layout Standard
375 Unfortunately, you might find that the preview isn't exactly instantaneous.
376  You need to move the cursor out of the Preview inset to start compilation,
377  and processing time can take a few seconds.
378  Nevertheless, the direct feedback is often worthwhile during editing, and
379  renders the navigation through the document much easier.
380 \end_layout
381
382 \begin_layout Subsection
383 Gotchas
384 \end_layout
385
386 \begin_layout Standard
387 A few gotchas that have been experienced with the integration of LilyPond-book
388  and LyX are reported here.
389 \end_layout
390
391 \begin_layout Subsubsection
392 Child documents
393 \end_layout
394
395 \begin_layout Standard
396 A LyX document using the LilyPond module cannot have child documents using
397  the 
398 \begin_inset Quotes eld
399 \end_inset
400
401 Input
402 \begin_inset Quotes erd
403 \end_inset
404
405  method.
406  If you select 
407 \begin_inset Quotes eld
408 \end_inset
409
410 Input
411 \begin_inset Quotes erd
412 \end_inset
413
414  as the 
415 \begin_inset Quotes eld
416 \end_inset
417
418 Include Type
419 \begin_inset Quotes erd
420 \end_inset
421
422  under 
423 \family sans
424 Insert\SpecialChar \menuseparator
425 File\SpecialChar \menuseparator
426 Child
427 \begin_inset space ~
428 \end_inset
429
430 Document
431 \family default
432 , you will get an error when producing output.
433  This is due to the way LilyPond-book automatically processes these input
434  files recursively.
435  Since there is currently no command-line option to turn off this behavior
436  of LilyPond-book, it is suggested to use the 
437 \begin_inset Quotes eld
438 \end_inset
439
440 Include
441 \begin_inset Quotes erd
442 \end_inset
443
444  method instead.
445 \end_layout
446
447 \begin_layout Standard
448 Note that it is possible to insert child documents which make use of the
449  LilyPond module, using either the 
450 \begin_inset Quotes eld
451 \end_inset
452
453 Input
454 \begin_inset Quotes erd
455 \end_inset
456
457  or 
458 \begin_inset Quotes eld
459 \end_inset
460
461 Include
462 \begin_inset Quotes erd
463 \end_inset
464
465  method, in a master document which does not make use of the LilyPond module.
466  For this to work you might have to add the line
467 \end_layout
468
469 \begin_layout LyX-Code
470
471 \backslash
472 usepackage{graphicx}
473 \end_layout
474
475 \begin_layout Standard
476 to your master document's preamble under 
477 \family sans
478 Document\SpecialChar \menuseparator
479 Settings
480 \family default
481 .
482 \end_layout
483
484 \begin_layout Subsubsection
485 Surrounding braces
486 \end_layout
487
488 \begin_layout Standard
489 LilyPond-book searches for a 
490 \family typewriter
491
492 \backslash
493 score
494 \family default
495  or 
496 \family typewriter
497
498 \backslash
499 relative
500 \family default
501  command when it decides if the code is only a fragment.
502  It is possible to include no LilyPond command at all, but in that case
503  {surrounding braces} are required.
504  Thus, in the following code,
505 \end_layout
506
507 \begin_layout LyX-Code
508
509 \backslash
510 begin{lilypond}
511 \end_layout
512
513 \begin_layout LyX-Code
514   ais' f'' g' e'' % no 
515 \backslash
516 score given
517 \end_layout
518
519 \begin_layout LyX-Code
520
521 \backslash
522 end{lilypond}
523 \end_layout
524
525 \begin_layout Standard
526 LilyPond-book gets confused:
527 \end_layout
528
529 \begin_layout LyX-Code
530 error: syntax error, unexpected NOTENAME_PITCH
531 \end_layout
532
533 \begin_layout LyX-Code
534 ais' f'' g' e'' % no 
535 \backslash
536 score given
537 \end_layout
538
539 \begin_layout Standard
540 With surrounding braces, all is well:
541 \end_layout
542
543 \begin_layout Standard
544 \begin_inset Preview
545
546 \begin_layout Standard
547 \begin_inset Flex LilyPond
548 status collapsed
549
550 \begin_layout Plain Layout
551
552 {ais' f'' g' e''} % no 
553 \backslash
554 score given
555 \end_layout
556
557 \end_inset
558
559
560 \end_layout
561
562 \end_inset
563
564
565 \end_layout
566
567 \begin_layout Standard
568 Writing the notes directly within braces without using any LilyPond command
569  is convenient when writing short snippets.
570  Advanced users will probably want to enter their musical content using
571  LilyPond variables and commands, which is of course supported.
572 \end_layout
573
574 \begin_layout Subsubsection
575 Fret diagrams
576 \end_layout
577
578 \begin_layout Standard
579 Another gotcha is with subsequent LilyPond snippets with 
580 \family typewriter
581
582 \backslash
583 fret-diagram
584 \family default
585  markup commands:
586 \end_layout
587
588 \begin_layout LyX-Code
589
590 \backslash
591 begin{lilypond}
592 \end_layout
593
594 \begin_layout LyX-Code
595   
596 \backslash
597 markup{ 
598 \backslash
599 fret-diagram-terse #"x;3;2;o;1;o;" }
600 \end_layout
601
602 \begin_layout LyX-Code
603
604 \backslash
605 end{lilypond}
606 \end_layout
607
608 \begin_layout LyX-Code
609
610 \end_layout
611
612 \begin_layout LyX-Code
613
614 \backslash
615 begin{lilypond}
616 \end_layout
617
618 \begin_layout LyX-Code
619   
620 \backslash
621 markup{ 
622 \backslash
623 fret-diagram-terse #"x;x;o;2;3;2;" }
624 \end_layout
625
626 \begin_layout LyX-Code
627
628 \backslash
629 end{lilypond}
630 \end_layout
631
632 \begin_layout Standard
633 For some reason LilyPond-book version 2.13 barks on this when run in safe
634  mode (which you always should use, unless you know what you are doing).
635  This has been corrected as of version 2.15 (was LilyPond issue #1900).
636 \end_layout
637
638 \begin_layout Subsubsection
639 The 
640 \family typewriter
641
642 \backslash
643 lilypondfile
644 \family default
645  command
646 \end_layout
647
648 \begin_layout Standard
649 LilyPond-book supports including LilyPond code that resides in external
650  files with the 
651 \family typewriter
652
653 \backslash
654 lilypondfile
655 \family default
656  command.
657  With this command, the LilyPond code is processed as if it was typed inside
658  the document and the output score follows the typesetting determined by
659  LaTeX with respect to line width, page breaks, and so on.
660  This is in contrast to the long-standing LyX feature to include LilyPond
661  scores as external material, which calls LilyPond on the external file
662  to produce a rigid figure, and includes this figure in the document, leaving
663  the typesetting decisions to LilyPond.
664  Unfortunately, support for the 
665 \family typewriter
666
667 \backslash
668 lilypondfile
669 \family default
670  command in LyX is not implemented yet, but it is possible to use it inside
671  a TeX-Code block, provided that one writes the complete, absolute path
672  to the desired file.
673 \end_layout
674
675 \begin_layout Section
676 LilyPond examples
677 \begin_inset CommandInset label
678 LatexCommand label
679 name "sec:LilyPond-examples"
680
681 \end_inset
682
683
684 \end_layout
685
686 \begin_layout Standard
687 Example 
688 \begin_inset CommandInset ref
689 LatexCommand ref
690 reference "sub:Editorial-headword"
691
692 \end_inset
693
694  shows a complex score using many LilyPond constructs; some scheme code
695  has been removed from the original source of this snippet, to be able to
696  run in safe mode.
697  Example 
698 \begin_inset CommandInset ref
699 LatexCommand ref
700 reference "sub:Tablatures-template"
701
702 \end_inset
703
704  shows another LilyPond output which should be interesting to guitarists.
705 \end_layout
706
707 \begin_layout Subsection
708 Editorial headword
709 \begin_inset CommandInset label
710 LatexCommand label
711 name "sub:Editorial-headword"
712
713 \end_inset
714
715
716 \end_layout
717
718 \begin_layout Standard
719 NR 1.7 Editorial annotations Beethoven, Op.
720  31, No.
721  3 Piano sonata 18, Movt II, Scherzo Measures 9--14.
722 \end_layout
723
724 \begin_layout Standard
725 \noindent
726 \align center
727 \begin_inset Preview
728
729 \begin_layout Standard
730 \begin_inset Flex LilyPond
731 status collapsed
732
733 \begin_layout Plain Layout
734
735
736 \backslash
737 new PianoStaff <<
738 \end_layout
739
740 \begin_layout Plain Layout
741
742   
743 \end_layout
744
745 \begin_layout Plain Layout
746
747   % RH Staff
748 \end_layout
749
750 \begin_layout Plain Layout
751
752   
753 \backslash
754 new Staff {
755 \end_layout
756
757 \begin_layout Plain Layout
758
759     
760 \backslash
761 clef treble
762 \end_layout
763
764 \begin_layout Plain Layout
765
766     
767 \backslash
768 key aes 
769 \backslash
770 major
771 \end_layout
772
773 \begin_layout Plain Layout
774
775     
776 \backslash
777 time 2/4
778 \end_layout
779
780 \begin_layout Plain Layout
781
782     %
783 \backslash
784 set Staff.fingeringOrientations = #'(up)
785 \end_layout
786
787 \begin_layout Plain Layout
788
789     %
790 \backslash
791 set Score.currentBarNumber = #9
792 \end_layout
793
794 \begin_layout Plain Layout
795
796     
797 \backslash
798 partial 8
799 \end_layout
800
801 \begin_layout Plain Layout
802
803     <aes''-4 c''>8
804 \backslash
805 staccato
806 \end_layout
807
808 \begin_layout Plain Layout
809
810     |
811 \end_layout
812
813 \begin_layout Plain Layout
814
815     %
816 \backslash
817 set doubleSlurs = ##t
818 \end_layout
819
820 \begin_layout Plain Layout
821
822     <bes''-5 des''-2>4(
823 \end_layout
824
825 \begin_layout Plain Layout
826
827     <aes''-4 c''>8
828 \backslash
829 staccato)
830 \end_layout
831
832 \begin_layout Plain Layout
833
834     
835 \backslash
836 noBeam
837 \end_layout
838
839 \begin_layout Plain Layout
840
841     c''8-5
842 \backslash
843 staccato
844 \backslash
845 pp
846 \end_layout
847
848 \begin_layout Plain Layout
849
850     |
851 \end_layout
852
853 \begin_layout Plain Layout
854
855     
856 \backslash
857 unset doubleSlurs
858 \end_layout
859
860 \begin_layout Plain Layout
861
862     bes'8..(
863 \end_layout
864
865 \begin_layout Plain Layout
866
867     aes'32
868 \end_layout
869
870 \begin_layout Plain Layout
871
872     g'8)
873 \backslash
874 staccato
875 \end_layout
876
877 \begin_layout Plain Layout
878
879     f'8
880 \backslash
881 staccato
882 \end_layout
883
884 \begin_layout Plain Layout
885
886     |
887 \end_layout
888
889 \begin_layout Plain Layout
890
891     e'4-2
892 \end_layout
893
894 \begin_layout Plain Layout
895
896     r8
897 \end_layout
898
899 \begin_layout Plain Layout
900
901     %
902 \backslash
903 once 
904 \backslash
905 override Script #'script-priority = #-100
906 \end_layout
907
908 \begin_layout Plain Layout
909
910     
911 \backslash
912 afterGrace
913 \end_layout
914
915 \begin_layout Plain Layout
916
917     f'8(
918 \backslash
919 trill^
920 \backslash
921 markup { 
922 \backslash
923 finger "3-2" }
924 \end_layout
925
926 \begin_layout Plain Layout
927
928     { e'16[ f'16] }
929 \end_layout
930
931 \begin_layout Plain Layout
932
933     |
934 \end_layout
935
936 \begin_layout Plain Layout
937
938     g'8..-3
939 \end_layout
940
941 \begin_layout Plain Layout
942
943     f'32
944 \end_layout
945
946 \begin_layout Plain Layout
947
948     e'8-1)
949 \backslash
950 staccato
951 \end_layout
952
953 \begin_layout Plain Layout
954
955     d'8-2
956 \backslash
957 staccato
958 \end_layout
959
960 \begin_layout Plain Layout
961
962     |
963 \end_layout
964
965 \begin_layout Plain Layout
966
967     c'4
968 \end_layout
969
970 \begin_layout Plain Layout
971
972     r4
973 \end_layout
974
975 \begin_layout Plain Layout
976
977   }
978 \end_layout
979
980 \begin_layout Plain Layout
981
982   
983 \end_layout
984
985 \begin_layout Plain Layout
986
987   % LH Staff
988 \end_layout
989
990 \begin_layout Plain Layout
991
992   
993 \backslash
994 new Staff {
995 \end_layout
996
997 \begin_layout Plain Layout
998
999     
1000 \backslash
1001 key aes 
1002 \backslash
1003 major
1004 \end_layout
1005
1006 \begin_layout Plain Layout
1007
1008     
1009 \backslash
1010 clef treble
1011 \end_layout
1012
1013 \begin_layout Plain Layout
1014
1015     %
1016 \backslash
1017 override Fingering #'direction = #down
1018 \end_layout
1019
1020 \begin_layout Plain Layout
1021
1022     %
1023 \backslash
1024 set Staff.fingeringOrientations = #'(down)
1025 \end_layout
1026
1027 \begin_layout Plain Layout
1028
1029     
1030 \backslash
1031 partial 8
1032 \end_layout
1033
1034 \begin_layout Plain Layout
1035
1036     <aes' aes>8
1037 \backslash
1038 staccato
1039 \end_layout
1040
1041 \begin_layout Plain Layout
1042
1043     %
1044 \backslash
1045 set doubleSlurs = ##t
1046 \end_layout
1047
1048 \begin_layout Plain Layout
1049
1050     <g'-2 ees'-3>4(
1051 \end_layout
1052
1053 \begin_layout Plain Layout
1054
1055     <aes' aes>8)
1056 \backslash
1057 staccato
1058 \end_layout
1059
1060 \begin_layout Plain Layout
1061
1062     
1063 \backslash
1064 noBeam
1065 \end_layout
1066
1067 \begin_layout Plain Layout
1068
1069     
1070 \backslash
1071 clef bass
1072 \end_layout
1073
1074 \begin_layout Plain Layout
1075
1076     c'8-1
1077 \backslash
1078 staccato
1079 \end_layout
1080
1081 \begin_layout Plain Layout
1082
1083     |
1084 \end_layout
1085
1086 \begin_layout Plain Layout
1087
1088     %
1089 \backslash
1090 set doubleSlurs = ##f
1091 \end_layout
1092
1093 \begin_layout Plain Layout
1094
1095     bes8..(
1096 \end_layout
1097
1098 \begin_layout Plain Layout
1099
1100     aes32
1101 \end_layout
1102
1103 \begin_layout Plain Layout
1104
1105     g8-1)
1106 \backslash
1107 staccato
1108 \end_layout
1109
1110 \begin_layout Plain Layout
1111
1112     f8
1113 \backslash
1114 staccato
1115 \end_layout
1116
1117 \begin_layout Plain Layout
1118
1119     |
1120 \end_layout
1121
1122 \begin_layout Plain Layout
1123
1124     e4
1125 \end_layout
1126
1127 \begin_layout Plain Layout
1128
1129     r8
1130 \end_layout
1131
1132 \begin_layout Plain Layout
1133
1134     
1135 \backslash
1136 afterGrace
1137 \end_layout
1138
1139 \begin_layout Plain Layout
1140
1141     f8(
1142 \backslash
1143 trill_
1144 \backslash
1145 markup { 
1146 \backslash
1147 finger "2-1" }
1148 \end_layout
1149
1150 \begin_layout Plain Layout
1151
1152     { e16[ f16] }
1153 \end_layout
1154
1155 \begin_layout Plain Layout
1156
1157     |
1158 \end_layout
1159
1160 \begin_layout Plain Layout
1161
1162     g8..-1
1163 \end_layout
1164
1165 \begin_layout Plain Layout
1166
1167     f32
1168 \end_layout
1169
1170 \begin_layout Plain Layout
1171
1172     e8)
1173 \backslash
1174 staccato
1175 \end_layout
1176
1177 \begin_layout Plain Layout
1178
1179     d8
1180 \backslash
1181 staccato
1182 \end_layout
1183
1184 \begin_layout Plain Layout
1185
1186     |
1187 \end_layout
1188
1189 \begin_layout Plain Layout
1190
1191     c4
1192 \end_layout
1193
1194 \begin_layout Plain Layout
1195
1196     r4
1197 \end_layout
1198
1199 \begin_layout Plain Layout
1200
1201   }
1202 \end_layout
1203
1204 \begin_layout Plain Layout
1205
1206 >>
1207 \end_layout
1208
1209 \begin_layout Plain Layout
1210
1211 \end_layout
1212
1213 \end_inset
1214
1215
1216 \end_layout
1217
1218 \end_inset
1219
1220
1221 \end_layout
1222
1223 \begin_layout Standard
1224 \noindent
1225 [from 
1226 \begin_inset Flex URL
1227 status collapsed
1228
1229 \begin_layout Plain Layout
1230
1231 http://lsr.dsi.unimi.it/LSR/Item?id=627
1232 \end_layout
1233
1234 \end_inset
1235
1236 ; scheme code removed, centering applied through the paragraph settings]
1237 \end_layout
1238
1239 \begin_layout Subsection
1240 Tablatures template
1241 \begin_inset CommandInset label
1242 LatexCommand label
1243 name "sub:Tablatures-template"
1244
1245 \end_inset
1246
1247
1248 \end_layout
1249
1250 \begin_layout Standard
1251 \begin_inset Preview
1252
1253 \begin_layout Standard
1254 \begin_inset Flex LilyPond
1255 status collapsed
1256
1257 \begin_layout Plain Layout
1258
1259 upper=  
1260 \backslash
1261 relative c' {
1262 \end_layout
1263
1264 \begin_layout Plain Layout
1265
1266   c4.
1267   g4  g  c
1268 \end_layout
1269
1270 \begin_layout Plain Layout
1271
1272 }
1273 \end_layout
1274
1275 \begin_layout Plain Layout
1276
1277 lower=  
1278 \backslash
1279 relative c {
1280 \end_layout
1281
1282 \begin_layout Plain Layout
1283
1284   c4  e  g,  e'
1285 \end_layout
1286
1287 \begin_layout Plain Layout
1288
1289 }
1290 \end_layout
1291
1292 \begin_layout Plain Layout
1293
1294
1295 \backslash
1296 score {
1297 \end_layout
1298
1299 \begin_layout Plain Layout
1300
1301   
1302 \backslash
1303 new StaffGroup <<
1304 \end_layout
1305
1306 \begin_layout Plain Layout
1307
1308     
1309 \backslash
1310 new Staff = "guitar" <<
1311 \end_layout
1312
1313 \begin_layout Plain Layout
1314
1315       
1316 \backslash
1317 context Voice = "upper guitar" { 
1318 \backslash
1319 clef "G_8" 
1320 \backslash
1321 voiceOne  
1322 \backslash
1323 upper }
1324 \end_layout
1325
1326 \begin_layout Plain Layout
1327
1328       
1329 \backslash
1330 context Voice = "lower guitar" { 
1331 \backslash
1332 clef "G_8" 
1333 \backslash
1334 voiceTwo  
1335 \backslash
1336 lower }
1337 \end_layout
1338
1339 \begin_layout Plain Layout
1340
1341     >>
1342 \end_layout
1343
1344 \begin_layout Plain Layout
1345
1346     
1347 \backslash
1348 new TabStaff = "tab" <<
1349 \end_layout
1350
1351 \begin_layout Plain Layout
1352
1353       
1354 \backslash
1355 context TabVoice = "upper tab" { 
1356 \backslash
1357 clef "tab" 
1358 \backslash
1359 voiceOne 
1360 \backslash
1361 upper }
1362 \end_layout
1363
1364 \begin_layout Plain Layout
1365
1366       
1367 \backslash
1368 context TabVoice = "lower tab" { 
1369 \backslash
1370 clef "tab" 
1371 \backslash
1372 voiceTwo 
1373 \backslash
1374 lower }
1375 \end_layout
1376
1377 \begin_layout Plain Layout
1378
1379     >>
1380 \end_layout
1381
1382 \begin_layout Plain Layout
1383
1384   >>
1385 \end_layout
1386
1387 \begin_layout Plain Layout
1388
1389 }
1390 \end_layout
1391
1392 \end_inset
1393
1394
1395 \end_layout
1396
1397 \end_inset
1398
1399
1400 \end_layout
1401
1402 \begin_layout Standard
1403 \noindent
1404 [from 
1405 \begin_inset Flex URL
1406 status collapsed
1407
1408 \begin_layout Plain Layout
1409
1410 http://lsr.dsi.unimi.it/LSR/Item?id=634
1411 \end_layout
1412
1413 \end_inset
1414
1415 ]
1416 \end_layout
1417
1418 \end_body
1419 \end_document