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