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