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