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