]> git.donarmstrong.com Git - lilypond.git/blob - TODO
304e29b7fe2b659c0718785ee6dbeb20cb5a43bb
[lilypond.git] / TODO
1 -*-outline-layout:(2 (-1 -1 0 :) 0);outline-stylish-prefixes:nil -*-
2
3 * GNU LilyPond TODO
4 Features you cannot find in the doco as working, should be
5 mentioned here.  This is an assorted collection of stuff that will be
6 done, might be done, or is an idea that I want to think about
7
8 Most of the items are marked in the code as well
9 Grep for TODO and ugh/ugr/urg.  
10
11 .* TODO before 1.2
12 . * rename 'staff_line_leading' (who is being lead where?) to
13 staff_space, interline; (or other meaningful name) and use throughout
14 lily
15
16 [-> leading are the lead strips between the sticks (lines) of
17 typeface. ie. leading is vertical space  --hwn]
18
19 . * move \version check to lexer.ll
20 . * junk delayed spanner breaking.
21 . * check dangling_scm_sym working.
22 . * revise pianobrace to put font stuff into Lookup
23 . * spacing of accidentals
24 . * restorations & repeats
25 . * \score {
26   \context Staff \notes {
27 c'2 fis'~
28 % accidential after bar
29 fis'4 % accidential should be here
30 fis' g'2
31 \repeat semi 2 {
32 c' c'
33 }
34 \alternative {
35 % no bars at the beginning of alternative 1 and at the end of alternative 2
36 {
37 d' d'
38 }
39 {
40 c'1 c'
41 }
42 }
43 d'4_"normal" d' \times 2/3 {e' e' e'}
44 % no triplet bracket in \tiny
45 \tiny d'4_"tiny" d' \times 2/3 {e' e' e'}
46   }
47 }
48
49 . * 
50 So how do I do what I want to do?
51
52 In Caro Mio Ben, bar 8, there's a syllable that starts on a note, and
53 ends on a pair of grace notes.  Standard practice is to mark this with
54 a slur starting on the main note and ending on the grace note, so a
55 singer knows where to break the words.
56
57 In bar 26, there's a \p marker that should appear below the grace
58 note.
59
60 In bar 27, there's a crescendo that's supposed to start at the start
61 of the grace notes and extend to the note after the grace notes.
62
63 How do I specify these?
64
65 How can I control whether a grace note takes its time from the note
66 before or the note after it (for the purposes of alignment with
67 lyrics)?
68 . *  / distance after 4/4 \key.
69 . * spanners from grace to  normal ctxt
70 . * Glen:
71 1. I got a vertical line where I asked for a decrescendo.
72
73 2. Slurs -- good to see some spacing between slurs and lyrics, but not
74 there's several times too much space.
75
76 3. Slurs with wrong slopes. Where a slur between two notes goes from the
77 head of one to the stem of another it can have the wrong slope:
78          |   ___
79          |  /   \
80          | /    |
81         x|/     |
82                 |
83                x|
84    The music goes down but the slur goes up (or vice versa). This looks
85 wrong.
86
87 4. Lyrics and \fermata collide. I know that the TODO has lyrics and scripts
88 colliding; I'm just including it here because it's really an issue for me
89 with fermata. Other scripts aren't a problem for me, but sometimes I need
90 fermata on both sides of the staff (when sop and alto hold different notes,
91 for example). In fact it's not just scripts and lyrics: In a choirstaff,
92 scripts above the bass clef collide with scripts below the treble clef.
93
94 5. Sometimes lyrics extend past the right end of the staff. I guess that
95 this is a similar problem (if not another symptom of the same problem) as
96 one of the spacing bugs mentioned in the TODO.
97
98 6. The bar line at the beginning of an \alternative section has disappeared
99 altogether.
100
101 7. When it's a tight fit to get all the notes in the first line, the first
102 note collides with the time signature. Is this the same as one of the
103 spacing bugs mentioned in the TODO?
104
105 .* 4.  Lyrics and grace sections don't go too well together.
106         The words are aligned with the main note, not the start of the
107         grace note.  This is usually wrong, but is sometimes right.
108 . * Auto_beam debugging output (waarom/wanneer heb jij die weggehaald?)
109 .  * Rename illegal to invalid
110 .  * Mats:
111
112 - The Postscript output is still very experimental
113
114 - It is impossible to typeset two textual scripts that are stacked
115   on top of eachother and avoids note collisions and at the same
116   time are typeset with different textStyle. I tried to move around
117   the text_engraver and other engravers between Voice and Thread 
118   but the granularity is not fine enough, the scripts have to 
119   share the same engraver in order to be get correct vertical 
120   position but than they cannot have different style.
121   In my opinion, all scripts that share the same staff, should
122   be stacked vertically, avoiding collisions with the notes
123   in all voices.
124
125 - I'd like to change the \repetitions command to Jan's suggested
126   syntax: \repeat "repeatsymbol" 2 {...}, but I'm not sure that
127   I understand the implementation of repeats well enough.
128
129 - The paper11/13/26 files have to be updated.
130 . * Grace_slur_engraver.
131 . * input/star-spangled-banner.ly: fold for lyrics?
132 . * don't create $srcdir/share/
133 . * Break_req handling is silly (break_forbid () + \break fucks up.)
134 . * hangOnClef with non-breakable clefs.
135 . * account for accidentals in spacing.
136 . * collision of lyrics with span_bars. See star-spangled.
137 . * fix partial measures in meaningful way.
138 . * relative mode for midi2ly
139 . * 
140 Crescendi/diminuendi that cross a line break lose their vertical
141 position and all end up above the top staff line, see the 
142 following example.
143
144 ----------------
145 \score{
146   \context StaffGroup <
147     \context Staff=s1 \notes\relative c'{
148       c d e f | 
149       g f e d | \break %% If this break is removed, it works fine
150       c d e f |}
151     \context Staff=s2 \notes\relative c'{
152       c \< d e f | 
153       g f e d | 
154       c d e \! f |}
155   >
156 }
157 . * uniformise recent feta contributions.
158 .  * bigger and fatter 4/4 C
159 . * sort out directory stuff.
160 .  * --prefix option?
161 .  * -I option per filetype?
162 .  * kpathsea?
163 . * ly2dvi/lilypond logfile.
164 . * fractional chord durs.
165 . * hang Item on Spanner
166 . * do --safe for PS output?
167 . * convert-mudela --output
168 . * Staff_margin (with a partial measure.)
169 . * fix convert-mudela manpage
170 . * decimal point in \paper {}
171 . * msgfmt -o check?
172 . * add new glyphs to font.ly
173 . * formatting of input stuff. 
174 .  * deps for ly2dvi
175 . * decide wether to junk _ in lyrics. 
176 . * indent = 0.0 with linewidth=-1.0
177 . * collisions & accidentals.
178 . * auto-beaming in input/test/spacing.ly:
179 Non-finished auto-beams (consider_end_and_begin didn't decide to
180 end beam), that get typeset in removal_processing (eg: end of a piece)
181 Huh, snap niks van: gewone beam gaat wel goed.  hoe kan abe nu
182 invloed hebben op beam-creatie, stopt toch gewoon stokken in?
183 . * music ending in grace notes.
184 . * PostScript
185 .  * half notes in pfa
186 . * didot / big point.
187 . * \shape 1st dim skipped? 
188 . * turn slope-damping on/off
189 . * We need feta-din*.mf files for more sizes than 10.
190 . * fix dynamics decently, ie. use kerning & ligatures.  
191 . * behavior of  "that the obvious solution
192 \lyrics { foo1*4 __ _ }" is unintuitive.
193 . * Lyrics and scripts collide.
194 . * grace_align_item -> stackingdir = left, weird placement.
195 . * filenames : junk lily.x 
196
197 .* Cleanups needed
198 . * \$ and $ identifier syntax in examples.
199 . * bracket ps code.
200 . * Key_engraver, Local_key_item
201 . * Think of comprehensive solution for "if (grace_b == self_grace_b_)"
202 . * Y dimension units: staffspace vs. Point
203 . * Beam
204 . * Stem
205 . * Rhythmic_column and interaction stem/rhythmic_column/note_head/dots.
206 . * Duration
207 . * clef engraver 
208 . * parser
209
210 .* BUGS
211 . * [c8. c16 c16 c16] in 6/8 timesig. 
212
213 .* STUFF
214 . * break priority setting from SCM.
215 . * Matanya's tips: 
216 .  * don't  shorten stems/staffs closer to each other.
217 .  * accidentals closer to note head
218 .  * to space the staffs/staffgroups contained in the score.  
219 .  * heavier beams?
220
221 . * tuplets that are written as "number : note", for example
222    "3 : [image of a half note here]".  possible?
223 . * a note with a circle after it, meaning:
224
225    note + circle = note + 1/4 of its length
226
227    the circle is like a dot that's not filled in.  for example, on
228    page three, the c-sharp on the second line should be a quarter with 
229    a circle, not a quarter tied to a sixteenth.  is this at all
230    possible with lily?
231 . * scm-ify \property values.
232 . * make dependencies () a virtual function.
233 . * Abstraction for engravers:
234 .  * make "in-between" engraver (Tie, Extender)
235 .  * make wide_spanner_engraver (line_group_spanner, staff_symbol)
236 . * store req -> element, element -> element causes for warnings
237 . * compulsory hshift
238 . * dots & rest collisions?
239 . * 
240 My wish list for lyrics. I dream of a time when I will have enough time to
241 become familiar enough with the source code to be able to implement some of
242 these myself, but I don't know when that will be, so I thought I'd "publish"
243 my suggestions in case someone else is in a position to give them some
244 priority. Otherwise, perhaps they could go on the todo list?
245
246 If any of these are already implemented, please let me what the syntax is to
247 use them!
248
249 1. Stanza numbering. Numbering at the beginning of a song with the number
250 set to the left of the first note. It would also be nice (but not as
251 important) to be able to have some form of automatic numbering at the
252 beginning of each new line. This would make it easier to follow songs with a
253 large number of stanzas.
254
255 3. Notes centred above/below lyrics rather than left-aligned.
256
257 4. It would be very nice to be able to build some kind of phrasing into the
258 lyrics of hymns, etc, so that the first words of a phrase are left aligned
259 with each other, the last words are right aligned, and the words in between
260 are centred.
261
262 5. In a song, with (say) four stanzas and a chorus, it would be nice to be
263 able to vertically align the chorus midway between the staves.
264
265 6. It would be nice to be able to put vertical brackets either side of a
266 repeated section with different words for each repeat.
267
268 . * Give # lines in linebreaking.  
269 . * arrows on slurs.
270 . * rewrite context defs using Scheme
271 . * \selectmusic to cut pieces from music. 
272 . * TODO: merge atom & molecule; make  tree from molecule.
273 . * Align_element::padding  ?
274 . * typo checks on property names?
275 . * use streambufs and iostream
276         to provide IO handling for TeX stream, mudela stream, data-file.
277 . * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
278 . * strip EXEs before installing
279 . * zip target for binary windows dist (JBR)
280 . * junking \skip req in lyrics
281 . * midi2ly empty staffs.
282 . * use Fourier transformation for rhythmic quantisation.
283 . * horizontal centering of dynamics 
284 . * $DEPENDENCIES_OUTPUT support
285 . * fix vertical alignment and stafflines
286 . * declaring Performers
287 . * *.yo: fix pod manpage layout legacy
288 . * text-items clash with stems/beams
289 . * --include, -I option for ly2dvi (pass on to lily)
290 . * fix placement of beam-less abbrev
291 . * \meter 3/4;
292         <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
293          {\voicetwo cis,4 r r | r2. | r1 }> |
294         }
295 . * Musical_pitch (analogous to Duration and Rhythmic_req)
296           think about, analogous to pitch: 
297            * { a4 a16 } c <-- duration of c?
298            * < a4 b8 > c <-- duration of c?
299 . * \tempo 4. = 90;
300 . * make sure all ex's have a mudela-version
301 . * do rest-collisions for Multi_measure_rests as well.
302 . * split error/warning in error/warning/non_fatal_error
303 . * add a Duration_convert member to Duration_iter to set parameters.
304         Junk global duration settings. 
305 . * en-,discouraged linebreaking: 
306 .  * handle DISALLOW < penalty > FORCE
307 .  * discourage breaking of slurs
308 . * fix variable define/lookup parser global<->paper
309 . * fix title/instrument placements; see input/test/title.ly
310 . * <\voiceone c4. \voicetwo c4>
311 . * add full cello suites to web site (kom op, Maarten!)
312 . * add mudela-book-doc source to webstie.
313 . * Rethink Time_description
314 \cadenza , \meter,  should all be \properties
315 . * fix singleStaffBracket
316 . * rename
317 .  * measure -> bar
318 .  * abbreviation-beam -> (measured/unmeasured) tremolo
319 .  * partial -> anacrouse
320 . * robustify Beam (in case of no stems, 32nd notes)
321 . * move paper vars into engraver properties
322 . * check for groff / troff/ nroff et
323 . * more intelligent file searching
324 . * disable spaces in TeX stuff
325 . * handle ^C for tmp/file creation.
326 . * make LilyPond RPM fully relocatable
327 . * the warning about the negative slur/tie length appears twice
328 which is irritating.
329 . * better hshift (dots, distance, head dependent)
330 . * clefs (AG): The "8" should appear closer to the actual clef,
331 touching it.
332 . * put errorlevel in Input class
333 . * junk nesting slurs
334 . * distinguish between unset and empty properties. 
335
336 .* FONT
337 . * the bracket is ugly (wings are too parabolic, should be more circular)
338 . * versioning for Feta
339 . * rewrite dynamic signs.  They're kind of spaghetti now. 
340 . * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
341         in the middle:
342 . * design macro for penstroke with rounded endings
343 . * timesig C: fat yet less curved.  Check out relations. 
344 . * design decent macro for bulbed endings
345 . * printer dependencies.
346 . * versioning  
347 . * lo-res fixes.
348 . * work out sizes of character fonts.
349 . * more symbols
350 .  * piano pedals: Ped/*
351 .  * maxima notehead
352 .  * coda signs: Segno, O+
353 .  * glissando, arpeggio
354 .  * lengthened trill
355 . * include important spacing dims in fetalog 
356 . * scalability: use blot_diameter everywhere, make font chubbier for
357     small sizes.
358
359 .* 3RD PARTY BUGS
360 . * UMR: Uninitialized memory read
361       This is occurring while in:
362             qst            [qsort.c]
363             qsort          [libc.so.1]
364             Keyword_table::Keyword_table(Keyword_ent*) [keyword.cc:28]
365             My_lily_lexer::My_lily_lexer() [my-lily-lexer.cc:78]
366             My_lily_parser::parse_file(String,String) [my-lily-parser.cc:54]
367             do_one_file(String,String) [scores.cc:124]
368       Reading 4 bytes from 0xefffeca8 on the stack.
369       Address 0xefffeca8 is 728 bytes below frame pointer in function 
370 . * GNU diff 2.7: diff -rN does not see a new directory with empty file
371 . * patch: don't touch timestamp if all patches fail.
372 . * mf-to-table -> add space before ; in AFM output.  (-> check AFM
373     spec. Is this a bug in afm2tfm?)
374 . * check out GCC signatures?
375 . * glibc 2.0:
376           f = fopen ("/dev/null", "r")
377           assert (feof (f))
378
379 . * tetex: mfplain.mem
380 . * timesig: sometimes bottom digit  too high: Xdvi doesn't handle
381     newly created fonts correctly.
382
383 .* PROJECTS
384 . * Scripts:
385 .  * stack scripts in chords:
386           % fingering:        footing:
387             < a-4 c-2 g-1 >   < c-\ltoe e-\lheel >
388 .  * script-spacing
389 .  * slur parts as a script
390 .  * stack parameterised scripts for fingering and footing:
391
392 . * convert-mudela:
393 .  * automatically add  a \version if not present.
394 .  * better parsing
395 .  * make smarter
396 .  * convert-mudela -e empty.ly
397
398 . * emacs mudela-mode
399 .  *  should handle block comments too.
400 .  *  handle lexer modes (\header, \melodic, \lyric) etc.
401 .  *  indentation
402 .  *  notenames?
403 .  *  fontlock: \melodic \melodic
404
405 . * use properties for:
406 .  * default tempo.
407 .  * cadenza mode? 
408
409 . * page handling:
410 .  * PS output
411 .  * optimal pagebreaking.
412
413 . * internationalisation for input.
414 .  * Unicode support? -> man 7 unicode
415 .  * (The explanation below is mostly intended for Han-Wen and Jan)
416 > Before, the font was changed with macros declared separately for 
417 > pure TeX and LaTeX, but now all the fonts are declared directly in
418 > the generated code using the low-level TeX commands. This circumvents
419 > the fontencoding mechanism of LaTeX and is a potential source of
420 > problems also for us users of the Latin-1 character set. 
421 > I think it still works since the inputencoding latin1 is 
422 > declared by ly2dvi, but it still means that e.g. an o with
423 > umlaut is typeset as a combination of the two symbols 'o' and
424 > 'umlaut' instead of as a single character, as would be the case
425 > if fontencoding OT1 had been used. This shouldn't give any 
426 > difference in layout, though. One of the main argument for using
427 > fontencoding OT1 is for the hyphenation mechanism to work, an 
428 > argument that's clearly irrelevant in our application. Yet we
429 > see the problem for August.
430
431 . * \header
432 .  * output header info to MIDI too.
433
434 . * a musical dictionary. See Documentation/vocabulary-*, other
435 languages:
436 .  * explanations
437 .  * italian
438 .  * german
439 .  * dutch
440 .  * swedish
441          .. ?
442
443 . * chords
444 .  * guitar chords (fret diagrams)
445 .  * other chord name styles (american(?) style)
446 .  * basso continuo
447 .  * MIDI output?
448
449 . * Debug logs:
450 .  * derive lily_stream, Dstream, texstream from ostream?
451 .  * indentable stream as baseclass for TeX stream, lily stream, Dstream.
452 .  * use dstream feature in midi2ly
453 .  * integrate IO checking into stream class
454
455 . * input converters
456 .  * NIFF?
457 .  * ABC? 
458 .  * SMDL?
459
460 . * add to MIDI output:
461 .  * sharp / flat on trills (in MIDI ??)
462 .  * tempo change
463 .  * ornaments (and trills?)
464 .  * slurs
465 .  * accents
466 .  * dynamics
467 > Would it be hard to add support for proper dynamics in MIDI output?  I
468 > would really like to have this feature...
469
470 Concretely spoken, for dynamics you have to write a performer
471 (Dynamics_performer), that will take the input requests. If I
472 understand correctly, every MIDI note played must have its dynamic
473 strength set separately.  That means the the Dynamics_performer must
474 set the strength of every Audio_note it finds.  This means that one
475 has to modify existing Audio items.  The best way of doing this is
476 with a broadcast/acknowledge process.
477
478 So the best way of handling this, is
479
480   1 supporting dynamic settings in Audio_note
481
482   2 Write a Dynamics_performer that will modify
483   any notes it finds to set appropriate strengths.
484
485 I'd say that the work involved is not hard, but you have to be fluent
486 with C++ and need some insight into the working of Notation Contexts
487 and friends.  I guess I could do it in a day or so, but if you are not
488 so fluent with the inner workings of LilyPond, it could take you some
489 more time (A few more days?).
490
491 Please note, that I am *not* going to code this myself: my days are
492 valuable, and I think I have more interesting things to do than fixing
493 the MIDI output (I don't even have a soundcard).  But I *do* want to help
494 you or other people with implementing this, so if you need help, don't
495 hesitate to ask.
496 .  * account for rhythmic position in measure
497 .  * etc.
498
499
500 . * Output class, handles : (smallish)
501 .  * help text /(c) notice?
502 .  * version line
503 .  * warning /errors/progress
504 .  * abort on error/warning; exit status
505 .  * quiet/ignore-version options
506 .  * logfile output
507
508 . * PS 
509 .  * speed up PS code.
510 .  * PS lines to .eps files
511 .  * write custom prolog
512
513 . * SGML input
514
515 . * Documentation
516 .  * remove links to non-free SW.
517 .  * internal documentation
518 .  * a general paper. 
519 .  * \properties
520 .   * left/rightbeamcount
521 .   * various other new properties.
522 .  * introduction?
523 .  * info?
524 .  * LaTeX?
525 .  * more manpages?
526 .  * Doc (C) stuff of sheet music
527 .  * a better format?  SGML?  TeX?  Info?
528 .  * a better tutorial
529
530 . * more spanners (smallish)
531 .  * Glissando
532 .  * trill
533
534 . * Rewrite Stem, Beam (hairy)
535 .  * general shaving on Beam and Stem
536 .  * use plet grouping
537 .  * beams over bars
538
539 . * lines:
540 .  * Ledger lines, should be separate item: Ledger_lines
541 .  * set different line sizes / thicknesses
542 .  * beam stem showthrough, inter beam sizes (french vs german style)
543
544 . * Collisions
545 .  * left/right note balls should be handled by Collision:
546         < \multi 2; { \stem 1; <b c> } { <f as b> } >
547
548 . * Keys:
549 .  * merge key{item} & localkey{item}?
550 .  * spacing, national styles?
551
552 . * Support for TAB
553 .  * redo Notehead to allow digits as heads
554 .  * add a \tablature {} lexer mode for easy entering
555
556 . * should adjust stemlength for flag number.
557
558 . * breaking:
559 .  * caching breakpoints
560 .  * saving them
561 .  * specify number of lines
562
563 .* INPUTLANGUAGE
564 . * convention for slurs vs. phrasing marks.
565 . * Language:
566 .  * \translator -> ?
567 .  * fix \partial 
568 .  * \bla {} vs \bla ; 
569 .  * mix engraver hacking with music ?
570 .  * \once\property  KEY = VAL
571 .  * input property
572 .  * abstract grammar.
573 . * Figure out semicolons.
574 . * <c f a>4 ?
575 . * Viola mode?
576
577                 @c c g e g 
578         for
579                 c g es g, 
580
581                 @A c g e g
582         for
583                 cis gis e gis
584 . * configure pitch_byte
585 . * rest name configurable
586
587
588 .* SMALLISH PROJECTS
589
590 . * fix confusing naming in Engraver vs Engraver_group_engraver (context)
591
592 . * A range for context errors (eg. mark both { and }. )
593
594 . * lyric in staff  (sharpsharp in staff, text below)
595
596 . * write Dynamic_line (to group dynamics horizontally)
597
598 . * use Real for all y positions.
599
600 . * half-sharps, half-flats
601
602 . * adaptive accidental spacing.
603
604 . * handle EOF graciously in error messages.
605
606 . * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
607
608 . * lily \tempo
609
610 . *   % toe to bheel   four to five
611             %   ^_u            4_5  
612             %     -                           
613             %  --|x--         --|x--
614             %  --|---         --|---
615             %  --|---         --|---
616           (where "to" is a tiny bow)
617
618 . * auxilliary file for caching info.
619 . * Text_crescendo
620
621 .* IDEAS
622 . * Output data structures of Mudela in XML/SGML.
623 . * create libmudela, or liblily_frontend
624 . * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
625 . * Spacing_request for manually adjusting spacing
626 . * caching breakpoints
627 . * used fixedpoint arithmetic for min. energy.
628
629 * OUTLINE SETUP
630 .* .EMACS
631 ;;; from outline.el
632 (defvar outline-font-lock-keywords
633   '(;; Highlight headings according to the level.
634     ;; must change this to allout node layout
635     ;;("^\\(\\*+\\)[ \t]*\\(.+\\)?[ \t]*$"
636     ("^\\([.]*[ ]*[*]\\)[ \t]*\\(.*\\)$"
637      (1 font-lock-string-face)
638      (2 (let ((len (- (match-end 1) (match-beginning 1))))
639           (or (cdr (assq len '((1 . font-lock-function-name-face)
640                                (2 . font-lock-keyword-face)
641                                (3 . font-lock-comment-face))))
642               font-lock-variable-name-face))
643         nil t))
644     ;; Highlight citations of the form [1] and [Mar94].
645     ("\\[\\([A-Z][A-Za-z]+\\)*[0-9]+\\]" . font-lock-type-face))
646   "Additional expressions to highlight in Outline mode.")
647
648 (add-hook 'outline-mode-hook
649           '(lambda ()
650             (setq font-lock-maximum-decoration t)
651             (setq font-lock-maximum-decoration t)
652             (make-local-variable 'font-lock-defaults)
653             (setq font-lock-defaults '(outline-font-lock-keywords t))
654             (font-lock-mode global-font-lock-mode)
655         ))
656  
657 (require 'allout)
658 (outline-init 't)
659