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