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