]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/faq.texi
release: 1.3.0
[lilypond.git] / Documentation / faq.texi
1 \input texinfo @c -*-texinfo-*-
2 @setfilename faq.info
3 @settitle FAQ - GNU LilyPond FAQs
4
5 @node Top, , Windows32, (dir)
6 @top
7 @menu
8 * FAQ - GNU LilyPond FAQs::       FAQ - GNU LilyPond FAQs
9 @end menu
10
11
12
13 @node FAQ - GNU LilyPond FAQs, Miscellaneous, , Top
14 @menu
15 * Miscellaneous::                 Miscellaneous
16 * Installing::                    Installing
17 * Documentation::                 Documentation
18 * Language- mudela::              Language- mudela
19 * Do you support -::              Do you support -
20 * How do I -::                    How do I -
21 * Development::                   Development
22 * Running::                       Running
23 * Copyright::                     Copyright
24 * Windows32::                     Windows32
25 @end menu
26 @chapter FAQ - GNU LilyPond FAQs
27
28
29 @node Miscellaneous, Installing, FAQ - GNU LilyPond FAQs, FAQ - GNU LilyPond FAQs
30 @section Miscellaneous
31
32 @subsubsection HELP! I'm stuck!
33
34 Please read this document carefully.  If you are still at loss, send
35 your questions to the @strong{mailing list}, and not to authors
36 directly.
37
38 Note: relative paths are meant to be relative to the source directory
39
40 @node Installing, Documentation, Miscellaneous, FAQ - GNU LilyPond FAQs
41 @section Installing
42
43
44 @subsubsection If I install the .exe file on my DOS/windows 3.11 machine, it doesn't work
45
46 The NT port is done with the Cygnus GNU/Windows32 port of the GNU utils.
47 It does @emph{not} work with windows 3.x; you need Windows-NT (95/98?).
48
49 @subsubsection Where is guile-config
50
51 Old RedHat RPMS don't include guile-config.  You need guile-config as it
52 was produced during the RPM build run.  Build the RPM from source
53 (@file{.src.rpm}), and use the guile-config that is in
54 @file{/usr/src/redhat/BUILD/guile-1.3/guile-config/}.
55
56 @subsubsection I get all kinds of errors while  compiling @file{parser.cc}
57
58 LilyPond uses features of bison version 1.25. Please confirm that
59 you are using a version 1.25 or better, that is @strong{GNU} bison
60 @strong{1.25}. Don't forget to do "make clean" after installing it. Don't
61 forget to remove the stale @file{bison.simple} as well.
62
63 If the problem persists, then please send a bug report to the mailing list.
64
65 @subsubsection I upgraded by applying a patch, and now my configure/build breaks.
66
67 Patches don't include automatically generated files, i.e. 
68 @file{configure} and files generated by @file{configure}.  Regenerate them 
69 yourself:
70 @example 
71
72     autoconf
73     configure
74  
75 @end example 
76
77
78 @subsubsection Some of your neat scripts fail, what directories do you use:
79
80 [This only applies if you don't do @code{make install}, and run out
81 of the source directory]
82
83 I have a directory which contains all our development projects
84 @example 
85
86     ~/usr/
87  
88 @end example 
89
90 which looks like @file{/usr/}
91 @example 
92
93     bin/
94     share
95     lib/
96     share/
97     src/
98
99     etc....
100  
101 @end example 
102
103 @file{~/usr/src/bin/} is in the variable PATH, and contains symbolic
104 links to the compiled executables.
105
106 @subsubsection Is there an emacs mode?
107
108 Yes.  It is included with the source archive as mudela-mode.el.  If
109 you have an rpm it is in @file{/usr/doc/lilypond-X/}.  You have to install it
110 yourself.
111
112 @subsubsection How do I create the @file{.tfm} files?
113
114 You don't.  The @file{.tfm} files should be generated automatically by
115 Metafont when you run TeX.  Check your TeX installation, or ask
116 your local TeX guru.  The supplied @file{.afm} files are intended to
117 be used by LilyPond, not by any other programs.
118
119 @node Documentation, Language- mudela, Installing, FAQ - GNU LilyPond FAQs
120 @section Documentation
121
122 @subsubsection Why is the documentation/website/etc. so lousy?
123
124 LilyPond development is moving quite fast, documentation will often lag
125 a bit behind.  We must always make a choice between writing more
126 documentation, writing HTML, writing more code and answering email.
127
128 If you think you can make a correction, or devised a solution that
129 should be documented, please write it up, and us a diff.
130
131 @node Language- mudela, Do you support -, Documentation, FAQ - GNU LilyPond FAQs
132 @section Language: mudela
133
134 @subsubsection Why do I have to type the accidentals to the note if I
135 specified them in the keysignature?
136
137 Take this example
138 @example 
139
140     cis cis
141  
142 @end example 
143
144 Independently of how it was written and what the current key was, you
145 would say that you are playing and reading "two C-sharp" notes, so you
146 have to enter C-sharp twice.
147
148 @subsubsection What is @code{cis} anyway
149
150 @code{cis} is the dutch naming for C-sharp. The notes are named
151 a, b,.., g. The suffix -is means sharp, and -es flat. This system is
152 common in a number of languages (such as swedish, dutch, german.)
153 Certain other languages (such as English, French and Italian) just add
154 the word for "sharp" to the notename.
155
156 We chose the Dutch system, because we're dutch. You are free to chose
157 whatever names you like; they are user definable.
158
159 @subsubsection Why are [] around the notes, and () inbetween?
160
161 [] designate beams, a note can only be in one beam at the same
162 time. () is a slur, which connects notes.  You need to be able to 
163 specify
164 @example 
165
166     a()a()a
167  
168 @end example 
169
170 @subsubsection I want to insert some TeX commands.
171
172 You shouldn't: it's against LilyPond philosophy to have typesetting
173 commands in the mudela source. Moreover, this would be difficult.
174 LilyPond uses TeX like a glorified output engine: the output consists
175 of (x,y) positions and symbols.  You can only sensibly do TeX stuff in
176 the symbol string.  You can access the symbol string easily for some
177 symbols (notably lyrics and @code{^"text"} commands).
178
179 @node Do you support -, How do I -, Language- mudela, FAQ - GNU LilyPond FAQs
180 @section Do you support ...
181
182 @subsubsection Do you support pop songs (chords, single staff, lyrics)?
183
184 Yes, see the @file{twinkle-pop} example.
185
186 @subsubsection Do you support guitar chord diagrams?
187
188 No. Go ahead and send a patch.
189
190 We ourselves don't play guitar, and don't know the fine points of this
191 notation.  We would welcome anyone who could give this a try.
192
193 @subsubsection Do you support TAB notation?
194
195 No. The same as for the previous subsubsection goes.
196
197
198 @subsubsection Do you support multiple staff-sizes?
199
200 Yes.  At this time you can choose between 11, 13, 16, 19, 20, 23 and 20
201 pt staff-size.  Use the @code{staffLineLeading} property for setting the
202 size of the staff, and @code{fontSize} for setting the size of the
203 glyphs.
204
205 @subsubsection Do you support Gregorian chant notation?
206
207 No.
208
209
210 @subsubsection Do you support grace notes?
211
212 Yes. See @file{input/test/grace.ly}
213
214 @node How do I -, Development, Do you support -, FAQ - GNU LilyPond FAQs
215 @section How do I ....
216
217 @subsubsection How do I change the TeX layout?
218
219 See @file{lilyponddefs.tex}, it has some comments.  Or use @file{ly2dvi}.
220
221 @subsubsection How do I place lyrics under @emph{each} of the staves in a score, as choral music. I can work out how to put lyrics for each line all under the top line, or at the bottom but not between!
222
223 You change the order lyrics and staves.  You have to name all
224 staves (lyric and melodic), otherwise they will end up in the same
225 staff/lyricline
226 @example 
227         
228         \score @{
229                 < \melodic \type Staff = "treble" \trebleMelody
230                   \lyric \type Lyrics = "tlyrics" \trebtext
231                   \type Staff = "bass" \melodic \bassMelody        
232                   \lyric \type Lyrics = "blyrics" \basstext      
233                 >
234                 \paper @{  @}
235         @}
236  
237 @end example 
238
239 @subsubsection How do I put more than one marking on a note.
240
241 You can stack them 
242 @example 
243
244         c4^"a"^"b"
245  
246 @end example 
247
248 or use spacing-notes to put markings at different horizontal positions 
249 @example 
250
251         < c1
252           @{ s4\ff s4^"text" s4-\marcato s4 @}
253         >
254  
255 @end example 
256
257 This also works for crescendi, eg,
258 @example 
259
260         < c1
261           @{ s4\< s2 \! s4 @}
262         >
263  
264 @end example 
265
266 @subsubsection How do I combine multiple pieces into one document
267
268 There are several solutions:
269
270 @itemize @bullet
271 @item  
272 @example 
273
274         ly2dvi foo.ly bar.ly
275  
276 @end example 
277  
278 produces one combined @file{foo.dvi}
279 @item  make a toplevel @file{.ly} file that contains al pieces:
280 @example 
281
282         % booklet.ly
283         \input "piece-1.ly"
284         \input "piece-2.ly"
285         \input "piece-3.ly"
286  
287 @end example 
288  
289 @item  make a hybrid TeX/LilyPond @file{.doc} document (see the
290      @file{Documentation/tex} directory).
291 @end itemize
292
293 For the first two solutions, you will need to move @code{\header} info 
294 in each individual piece from toplevel into the @code{\paper} block.
295
296 There are several examples in the @file{mutopia} directory.
297
298 @subsubsection How do I get bar numbers?
299
300 See @file{input/test/bar-scripts.ly}.
301
302 @subsubsection How do I change the tagline 'Lily was here'
303
304 In the @code{\header} field, add a @code{tagline} entry, eg
305 @example 
306
307 tagline="Typeset by GNU LilyPond"
308  
309 @end example 
310
311 to get a bit less frivolous tagging.
312
313 @node Development, Running, How do I -, FAQ - GNU LilyPond FAQs
314 @section Development
315
316 @subsubsection Could you implement feature XXXX? It is really easy, just extend the syntax to allow YYYY!
317
318 In general finding a cute syntax (such as YYYY) isn't very hard. The
319 complicated issue how to adapt the internals to do XXXX. The parser is
320 really a simple front end to the complicated internals.
321
322 @subsubsection Can I join in on LilyPond development?  How do I do this?
323
324 Yes, we do frequent releases, you are welcome to send in a patch or do
325 suggestions.  Join the list @email{gnu-music-discuss@@gnu.org} to
326 participate.
327
328
329 @subsubsection Is there a GUI frontend?  Should I start building one?
330
331 LilyPond currently has no graphical interface.  We (LilyPond authors)
332 don't feel the need to write a GUI, but several others do:
333
334 Matthew Hiller has extended Midiscore and Koobase to handle mudela.
335 Check out @uref{http://zoo.cs.yale.edu/~meh25/}.  He is now working on
336 `Denemo', a GTK based notation program (which is still being developed).
337
338 Federico Mena-Quintero and Elliot Lee of RedHat Advanced Development
339 labs have plans to write a GNOME based Music notation program. However,
340 there is no code, only plans.
341
342 Chris Cannam is working a rewrite of Rosegarden.  The new design should
343 be more modular, and could conceivably be used to output
344 mudela. However, the not much seems to have happened the past year. See
345 @uref{http://www.all-day-breakfast.com/rosegarden/development.html}.
346
347
348 @subsubsection I want to implement XXXX!  How should I do this?
349
350 Your best bet of getting us to include code, is to present it as a
351 "fait accompli", i.e., to send a patch to the mailing list.
352
353 Please use the diff command to generate a patch, and don't send complete
354 files, even if the diff is larger than the whole file.
355
356 Don't forget to put your name and e-mail address in the file
357 @file{Documentation/topdocs/AUTHORS.texi}, or you won't get credits
358 :-)
359
360
361 @subsubsection Your make system does not adhere to GNU coding standards, could you please fix it?
362
363 No.  We have evaluated the standard GNU combination for compiling
364 programs (autoconf, automake, libtool) and found to be inadequate for
365 our needs.
366
367 @subsubsection gdb crashes when I debug!
368
369 Upgrade/downgrade to 4.17.
370
371 @node Running, Copyright, Development, FAQ - GNU LilyPond FAQs
372 @section Running
373
374 @subsubsection I use dvilj4, and there are lots of warning messages for the printing
375
376 You should use dvips and ghostscript to print the @code{dvi} output: the
377 slurs and beams are PS @code{\special} commands.
378
379
380 subsubsection My symbols are all messed up after I upgraded, I get the wrong symbols and dvi-checksum errors!
381
382 We obviously mucked with the fonts in the upgrade.  Remove @emph{all}
383 previous fonts, including the @file{.pk} and @file{.tfm} fonts in
384 @file{/var/lib/texmf}.  A script automating this has been included, see
385 @file{buildscripts/clean-fonts.sh}.
386
387 @subsubsection all the pk and tfm fonts are created in the directory where the mudela file is, not in "/var/spool/texmf" where I think they should be.
388
389 Mats Bengtsson <mats.bengtsson@@s3.kth.se> writes:
390
391 The simple solution used by Anthony Fok in the Debian distribution of
392 Lilypond is to link the mf/ directory to
393 /usr/lib/texmf/fonts/source/public/lilypond Depending on what
394 distribution of teTeX and Linux you have installed, there might also
395 be other places like /usr/local/lib/texmf/fonts/source/public/lilypond
396 or /var/spool/texmf//fonts/source/public/lilypond
397
398 Wherever you put it, don't forget to run mktexlsr (or texhash for
399 older installations) afterwards, so that TeX will find the files.
400 Also, don't forget to remove all old .tfm and .*pk files when the font
401 is updated (as it will be in version 1.1.40, for example).
402
403 @subsubsection Are there scalable versions of the font?
404
405 Yes, they are type-3 fonts.  In the @file{mf/} 
406 subdirectory, issue:
407 @example 
408
409         make pfa
410  
411 @end example 
412  in the mf/ subdirectory.  This will also  make @file{mfplain} for metapost.
413 The @file{pfa}s will be in the subdirectory @file{out/}.
414
415 @subsubsection How does PS output work?
416
417 @itemize @bullet
418  @item 
419 Generate the PostScript Type-3 fonts. 
420 @item 
421 Run lilypond with option @code{-f ps}:
422 @example 
423
424     lilypond -fps foo.ly
425  
426 @end example 
427
428 @item  To view the @file{.ps} output with GhostView, set GS_FONTPATH to the 
429 directory containing the @file{pfa}s.  In the source tree, this is @file{mf/out/}.
430
431 i.e. do something like:
432 @example 
433
434    export GS_FONTPATH=$HOME/usr/src/lilypond/mf/out
435    gv foo.ps &
436  
437 @end example 
438
439 @end itemize
440
441 Direct PS output is still experimental.  For creating nice looking ps 
442 output, use TeX and @code{dvips}.
443
444   
445 @subsubsection The beams and slurs are gone if use the XDvi magnifying glass!?
446
447 The beams and slurs are done in PostScript.  XDvi doesn't show
448 PostScript in the magnifying glass.  Complain to the XDvi maintainers.
449
450
451 @subsubsection A lot of musical stuff doesn't make it to the MIDI file, eg.  dynamics, articulation, etc.
452
453 The MIDI output was originally put in as a proof that MIDI could be
454 done, and as a method of proof"reading" the input.  The MIDI support
455 is by no means finished.  Patches appreciated.
456
457 @node Copyright, Windows32, Running, FAQ - GNU LilyPond FAQs
458 @section Copyright
459
460 @subsubsection What is Urtext?  Critical Edition?
461
462 Werner Lemberg:
463
464 It may be translated best as `that what the composer intended to tell
465 the reader'
466
467 Peter Chubb <peterc@@aurema.com> writes:
468
469 An Urtext is a reconstruction of the earliest form of a text,
470 including mistakes the original author wrote.  Where there is no
471 available facsimile of the original, creating this can involve some
472 inspired detective work (in comparing various later editions and
473 trying to deduce what the original form was).  As far as copyright
474 goes, my guess is that, for works that are otherwise out of copyright,
475 an Urtext is copyright to the person who reconstructed it, as a
476 derived work from the editions s/he consulted.  If the edition is
477 created directly from a facsimile, as would be the case for most
478 Urtext editions of music, then the amount of new (copyright) material
479 is minimal.
480
481 A critical edition is an edition that is designed for critical
482 study of a text.  It'll usually have lots of footnotes, alternative
483 readings, possible realisations of bass parts and harmonies, etc.  It
484 aims to elucidate the author's original intentions, as opposed to
485 reproduce exactly what was written.  The critical apparatus will be
486 copyright to its author.
487
488 A playing edition is one that has been edited for modern usage.
489 It'll have fewer or no alternative readings, it'll be in modern
490 notation, it may have additional editorial marks (phrase marks, slurs,
491 etc.) will often have a fully realised basso continuo part (if oone
492 was present in the original) and may have had key changes, time
493 signature changes, time compression (original in 4/1, playing edition
494 in 4/4, for example, with all semibreves replaced with crotchets)
495 Copyright is in the arranger/editor.
496
497 @subsubsection How does copyright for sheet music work? Can I enter and spread my newly bought Bach urtext?
498
499 Silas S. Brown <ssb22@@hermes.cam.ac.uk>:
500
501 @quotation
502
503 There are several aspects to sheet music copyright:
504
505 1.  The music itself - copyright for the composer's life plus 70 years (so
506 not applicable to Bach).
507
508 2.  If the music is an arrangement, then the arranger holds copyright on
509 that arrangement.  However, you can produce your own arrangement using
510 that arrangement as a reference point.  Obviously your arrangement must be
511 sufficently different to be called your own arrangement - you need to do
512 more than change one note!
513
514 3.  In some countries, the same applies for editions.  This could be
515 relevant to the Bach example.  If a modern person has edited the music,
516 then they hold the copyright on the edition.  This does not stop you from
517 removing the editorial features - remove all editorial slurs, phrasemarks,
518 ornaments etc and only leave those that you know to be original.  You can
519 then add some of your own if you want to be your own editor.
520
521 4.  If there are lyrics, then the lyricist also holds copyright.  This
522 does not stop you from using the music without the lyrics if it is
523 otherwise out of copyright.
524
525 5.  The copyright of the printed page is held by the publisher for 30
526 years after printing (25 in some countries).  This stops you from
527 photocopying (unless it's "fair use" eg. you're partially sighted and need
528 to enlarge the music) or otherwise reproducing the typesetting that is
529 used on it.  But the copyright is only held over the typesetting work, not
530 the music itself.  Since Mudela specifies the notes, independently of any
531 typesetting work that went into your reference copy, you are not
532 duplicating any of the publisher's work.
533
534 6.  If you want to violate copyright, there are two main cases where you
535 may do so: fair use, and with permission.  The former is rather fuzzily
536 defined, but it includes such things as including small extracts of a
537 score in a critique, and making a large print or Braille copy for a blind
538 or partially-sighted performer (many people argue that in this case it
539 should always be kept with the original copy and/or destroyed after it is
540 no longer needed).  The latter is obvious: You can always write to the
541 composer, arranger, editor, lyricist or publisher in subsubsection and ask if
542 you can do whatever it is you're trying to do.  Some will respond more
543 readily than others, but anything that they say will override any copying 
544 restrictions imposed on you.
545
546 References - best one I know is the UK-based Performing Right Society,
547 @uref{http://www.prs.co.uk/} (especially "membership") and their links to other
548 international equivalents.  
549 @end quotation
550
551 Werner Lemberg @email{wl@@gnu.org} writes:
552
553 @quotation
554
555 Typesetting [at least in Austria or Germany, but not in France] [..]
556 isn't copyrighted -- typesetting is a handcraft, not an
557 art.
558
559 What's copyrighted in an Urtext edition is the editor's comment or
560 the revision remarks, cadenzas added by the editor, etc.
561
562 Urtext editions per se are @emph{not} copyrighted -- if you print
563 exactly what the composer has written, how can there some copyright be
564 added?  Copyrighted are usually only the `Critical notes', the foreword,
565 and the cadenzas some editors have added.
566
567 This means that the `Photocopying forbidden' sign in many scores is not
568 always correct for e.g. J.S. Bach -- you are allowed to copy the pages
569 which don't contain editorial stuff which is probably copyrighted.
570
571 A very unfortunate situation for the publishers.
572
573 @end  quotation
574
575
576 Glen Prideaux, @email{glenprideaux@@MailAndNews.com}:
577
578 @quotation
579 One has to be careful. In Australia typesetting IS covered by copyright, but
580 only for 25 years (as opposed to 50 years from the death of the
581 author/composer/artist for virtually any other copyright). If the
582 typesetting originates in a country that does not protect typesetting then
583 there may indeed be no copyright protection available to control the use of
584 mudela files.
585 @end quotation
586
587 Juergen Reuter @email{reuterj@@ira.uka.de}
588
589 [More information can be had at: ]
590
591 @uref{http://lcweb.loc.gov/copyright/}
592 (USA copyright law)
593
594 @uref{http://fairuse.stanford.edu/}
595 (meta site about copyright with many links to other resources)
596
597 @uref{http://host.mpa.org/crc.html}
598 (copyright from the viewpoint of the USA music publishers' association)
599
600 @uref{http://www.wipo.int}
601 (World Intellectual Property Organization (a UNO agency); with
602 information about international copyright)
603
604 John Sankey:
605
606 See @uref{http://www.geocities.com/Vienna/Studio/1714/harpsichord.html}
607 for a summary of copyright relative to old music, also for the
608 expert forum for such subsubsections.
609
610
611 @node Windows32, Top, Copyright, FAQ - GNU LilyPond FAQs
612 @section Windows32
613
614 @subsubsection I downloaded the windows32 port, and it doesn't match the website!
615
616 The website is usually made from the latest snapshots.  Binary releases,
617 in particular the windows32 binaries, are only made every once in a while.
618 They may lag several versions behind the latest version. 
619
620 @subsubsection But i want a native DOS/Windows-NT/95 port
621
622 Reconsider.  Try Linux.  It's fun!
623
624 @bye