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