]> git.donarmstrong.com Git - lilypond.git/blob - TODO
release: 1.3.3
[lilypond.git] / TODO
1 i-*-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 . * make this file understandable for 3rd parties.
13 . * use Rhythmic_head::position_i () for all Staff_referenced 
14 . * eradicate all VIRTUAL_COPY_CONS () macros ; use indexed creation,
15     eg.
16
17         ctor_dict["Score_element"]->clone_func (orig);
18         ctor_dict["Score_element"]->create_func ();
19
20 . * acc at tied note after linebreak.
21 . * note head on stem err msg in dutch.
22 . *  why need to run -C mf twice?
23 . * setting indent to 0 with \shape fails
24 . * here's no difference at all in output. When either is jacked up to 7.0,
25 everything works and matches up; when either is set just a bit above the
26 default 5.0 (5.4 is what I was hoping to use), stems miss note heads. So
27 it's some sort of a numerical (truncation/roundoff) problem.
28 John
29 . * Fixed size staff/system heights;
30 . * ly2dvi : don't repeat opus if same.
31 . * breaks before mmrests are favored.
32 . * hara kiri _8 clef.
33 . * junk -M ?
34 . * mudela-book doco
35 . * rerun profile
36 . * fix or replace feta-accordion.mf
37 . * script engraver
38 . * bracket pdf hack
39
40 . * Mondrup:
41 - I would like the possibility of forcing clef- and key- changes to be
42 printed _after_ the new bar line
43
44 - I would like an option to define the number of systems on which the
45 score must be distributed. As it is now it seems that I may only
46 influence that indirectly through the gourlay_maxmeasures property.
47
48 - if I change the property minVerticalAlign in a multi staff score with
49 lyrics the change affects the lyrics too. I would like the change to
50 _only_ affect staves.
51
52 - I would like to be able to influence the sloping of xtuplet brackets
53
54 - for one of my test scores containing a modern edition of an early
55 17'th century composition I have a leading measure containing the
56 orginal clefs and note values of the original composition. I use the
57 "harmonic" and "diamond" note head styles for that measure and would
58 like to have the stems of these notes _centered_ on the notehead as in
59 the mensural music notation.
60
61 - after the leading measure in the above mentioned score I want a double
62 bar line fully drawn across the staves and after that keep to the
63 ChoirStaff bar line types in the rest of the scores
64
65 - autoBeamMelisma: if I explicitly beam notes in a staff with auto
66 beaming disabled I would like to have these beams also to be
67 melismatic.
68
69 . * make all Feta (including dynamics) available to the user in
70     textual scripts. Examples: "D.S. al \coda", "\mf espress.".
71  
72 . * Write scritp that uses --find-old-relative to do auto relativization.
73 . * Junk shared cruft (duration, moment) in lib/
74
75
76 .* Cleanups needed
77 . * \$ and $ identifier syntax in examples.
78 . * Junk ghost positioning objects eg, Script leans on  Staffside
79     leans on Staff.
80 . * bracket ps code.
81 . * Key_engraver, Local_key_item
82 . * Think of comprehensive solution for "if (grace_b == self_grace_b_)"
83 . * String[String.length] doesn't trap.
84 . * Beam
85 . * Stem
86 . * Rhythmic_column and interaction stem/rhythmic_column/note_head/dots.
87 . * Duration
88 . * clef engraver 
89 . * parser
90 . * Lookup::text -> needs  to be TeX independent.
91 . * junk Music_iterator::first_b_
92 . * Bezier
93
94 .* BUGS
95 . * [c8. c16 c16 c16] in 6/8 timesig. 
96 . * staffside spanner (crescendo!) along with staffswitch.
97
98 . * 
99 > \context Staff <
100 >   {\voiceone''4. r8}
101 >  \voicetwo c,4 r4}
102 > >
103 . * sort out breve shapes.
104 . * \time forces keysig?
105
106 .* STUFF
107 . * We need feta-din*.mf files for more sizes than 10.
108 - Rests and beams don't work too well together. Example:
109    [ r8 g''16 des'] [r8 c16 a] 
110
111 - The stemLength property should affect also beamed stems.
112
113 . * align left edge of broken tuplet-spanner (have a test case?)
114 . * fix dynamics decently, ie. use kerning & ligatures.
115 . * key restorations & repeats
116 . * paperXX.ly \quartwidth, font setting not up to date. (Should read from AFM?)
117 . * * auto melismaBusy for beams.
118 . *In Caro Mio Ben, bar 8, there's a syllable that starts on a note, and
119 ends on a pair of grace notes.  Standard practice is to mark this with
120 a slur starting on the main note and ending on the grace note, so a
121 singer knows where to break the words.
122
123 In bar 27, there's a crescendo that's supposed to start at the start
124 of the grace notes and extend to the note after the grace notes.
125 . * 5. Sometimes lyrics extend past the right end of the staff. I guess that
126 this is a similar problem (if not another symptom of the same problem) as
127 one of the spacing bugs mentioned in the TODO.
128 . * 4.  Lyrics and grace sections don't go too well together.
129         The words are aligned with the main note, not the start of the
130         grace note.  This is usually wrong, but is sometimes right.
131 . * decimal point in \paper {}
132 . * tie-direction
133 . * repeats and partial measures.
134 . * rhythmic staff & accidentals.
135 . * use melismaBusy in Lyric context to typeset melismata correctly.  
136 . * ly2dvi/lilypond logfile.
137 . * hang Item on Spanner
138 . * do --safe for PS output?
139 . * msgfmt -o check?
140 . * collision of lyrics with span_bars. See star-spangled.
141 . * Auto_beam debugging output (waarom/wanneer heb jij die weggehaald?)
142 . * It is impossible to typeset two textual scripts that are stacked
143   on top of eachother and avoids note collisions and at the same
144   time are typeset with different textStyle. I tried to move around
145   the text_engraver and other engravers between Voice and Thread 
146   but the granularity is not fine enough, the scripts have to 
147   share the same engraver in order to be get correct vertical 
148   position but than they cannot have different style.
149   In my opinion, all scripts that share the same staff, should
150   be stacked vertically, avoiding collisions with the notes
151   in all voices.
152
153 . * Matanya's tips: 
154 .  * don't  shorten stems/staffs closer to each other.
155 .  * accidentals closer to note head
156 .  * to space the staffs/staffgroups contained in the score.  
157 .  * heavier beams?
158
159 . * tuplets that are written as "number : note", for example
160    "3 : [image of a half note here]".  possible?
161 . * a note with a circle after it, meaning:
162
163    note + circle = note + 1/4 of its length
164
165    the circle is like a dot that's not filled in.  for example, on
166    page three, the c-sharp on the second line should be a quarter with 
167    a circle, not a quarter tied to a sixteenth.  is this at all
168    possible with lily?
169 . * make dependencies () a virtual function.
170 . * deprecate hangOnClef.
171 . * Abstraction for engravers:
172 .  * make "in-between" engraver (Tie)
173 .  * make wide_spanner_engraver (line_group_spanner, staff_symbol)
174 . * store req -> element, element -> element causes for warnings
175 . * compulsory hshift
176 . *  My wish list for lyrics. I dream of a time when I will have enough time to
177 become familiar enough with the source code to be able to implement some of
178 these myself, but I don't know when that will be, so I thought I'd "publish"
179 my suggestions in case someone else is in a position to give them some
180 priority. Otherwise, perhaps they could go on the todo list?
181
182 If any of these are already implemented, please let me what the syntax is to
183 use them!
184
185 1. Stanza numbering. Numbering at the beginning of a song with the number
186 set to the left of the first note. It would also be nice (but not as
187 important) to be able to have some form of automatic numbering at the
188 beginning of each new line. This would make it easier to follow songs with a
189 large number of stanzas.
190
191 3. Notes centred above/below lyrics rather than left-aligned.
192
193 4. It would be very nice to be able to build some kind of phrasing into the
194 lyrics of hymns, etc, so that the first words of a phrase are left aligned
195 with each other, the last words are right aligned, and the words in between
196 are centred.
197
198 5. In a song, with (say) four stanzas and a chorus, it would be nice to be
199 able to vertically align the chorus midway between the staves.
200
201 6. It would be nice to be able to put vertical brackets either side of a
202 repeated section with different words for each repeat.
203 . * Give # lines in linebreaking.  
204 . * arrows on slurs.
205 . * rewrite context defs using Scheme
206 . * junk TeX specifics from internal code.
207 . * \selectmusic to cut pieces from music. 
208 . * formatting of input stuff. 
209 .  * deps for ly2dvi
210 . * TODO: merge atom & molecule; make  tree from molecule.
211 . * Align_element::padding  ?
212 . * use streambufs and iostream
213 to provide IO handling for TeX stream, mudela stream, data-file.
214 . * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
215 . * fix partial measures in meaningful way.
216 . * uniformise recent feta contributions.
217 .  * bigger and fatter 4/4 C
218 . * relative mode for midi2ly
219 . * junking \skip req in lyrics
220 . * midi2ly empty staffs.
221 . * use Fourier transformation for rhythmic quantisation.
222 . * horizontal centering of dynamics 
223 . * $DEPENDENCIES_OUTPUT support
224 . * turn slope-damping on/off
225 . * sort out directory stuff.
226 .  * --prefix option?
227 .  * -I option per filetype?
228 .  * kpathsea?
229 . * fix vertical alignment and stafflines
230 . * declaring Performers
231 . * text-items clash with stems/beams
232 . * --include, -I option for ly2dvi (pass on to lily)
233 . * fix placement of beam-less abbrev
234 . * \meter 3/4;
235         <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
236          {\voicetwo cis,4 r r | r2. | r1 }> |
237         }
238 . * Musical_pitch (analogous to Duration and Rhythmic_req)
239           think about, analogous to pitch: 
240            * { a4 a16 } c <-- duration of c?
241            * < a4 b8 > c <-- duration of c?
242 . * \tempo 4. = 90;
243 . * make sure all ex's have a mudela-version
244 . * do rest-collisions for Multi_measure_rests as well.
245 . * split error/warning in error/warning/non_fatal_error
246 . * add a Duration_convert member to Duration_iter to set parameters.
247         Junk global duration settings. 
248 . * en-,discouraged linebreaking: 
249 .  * handle DISALLOW < penalty > FORCE
250 .  * discourage breaking of slurs
251 . * fix variable define/lookup parser global<->paper
252 . * fix title/instrument placements; see input/test/title.ly
253 . * <\voiceone c4. \voicetwo c4>
254 . *  I'd like to change the \repetitions command to Jan's suggested
255   syntax: \repeat "repeatsymbol" 2 {...}, but I'm not sure that
256   I understand the implementation of repeats well enough.
257 . * add full cello suites to web site (kom op, Maarten!)
258 . * add mudela-book-doc source to webstie.
259 . * Rethink Time_description
260 \cadenza , \meter,  should all be \properties
261 . * fix singleStaffBracket
262 . * rename
263 .  * partial -> anacrouse
264 . * move paper vars into engraver properties
265 . * add new glyphs to font.ly
266 . * check for groff / troff/ nroff et
267 . * more intelligent file searching
268 . * disable spaces in TeX stuff
269 . * handle ^C for tmp/file creation.
270 . * make LilyPond RPM fully relocatable
271 . * better hshift (dots, distance, head dependent)
272 . * didot / big point.
273 . * clefs (AG): The "8" should appear closer to the actual clef,
274 touching it.
275 . * put errorlevel in Input class
276 . * junk nesting slurs
277 . * distinguish between unset and empty properties. 
278
279 .* FONT
280 . * the bracket is ugly (wings are too parabolic, should be more circular)
281 . * versioning for Feta
282 . * rewrite dynamic signs.  They're kind of spaghetti now. 
283 . * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
284         in the middle:
285 . * design macro for penstroke with rounded endings
286 . * timesig C: fat yet less curved.  Check out relations. 
287 . * design decent macro for bulbed endings
288 . * printer dependencies.
289 . * versioning  
290 . * lo-res fixes.
291 . * work out sizes of character fonts.
292 . * more symbols
293 .  * piano pedals: Ped/*
294 .  * maxima notehead
295 .  * coda signs: Segno, O+
296 .  * glissando, arpeggio
297 .  * lengthened trill
298 . * include important spacing dims in fetalog 
299 . * scalability: use blot_diameter everywhere, make font chubbier for
300     small sizes.
301
302 .* 3RD PARTY BUGS
303 . * UMR: Uninitialized memory read
304       This is occurring while in:
305             qst            [qsort.c]
306             qsort          [libc.so.1]
307             Keyword_table::Keyword_table(Keyword_ent*) [keyword.cc:28]
308             My_lily_lexer::My_lily_lexer() [my-lily-lexer.cc:78]
309             My_lily_parser::parse_file(String,String) [my-lily-parser.cc:54]
310             do_one_file(String,String) [scores.cc:124]
311       Reading 4 bytes from 0xefffeca8 on the stack.
312       Address 0xefffeca8 is 728 bytes below frame pointer in function 
313 . *  Array<Axis [2] > axeses;
314
315   for (int i=0; i < loose_elems.size (); i++)
316     {
317       Score_element* elt = loose_elems[i];
318       /*
319             with which axes do we have to meddle?
320       */
321       int j =0;
322       Axis as [2];
323       for (int a = X_AXIS; a < NO_AXES; ++a)
324         if (elt->parent_l (Axis (a)) == this)
325           as[j++] = Axis (a);
326       if (j == 1)
327         as[j++] = as[0];
328
329       axeses.push (as);
330     }
331
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 .  * internal documentation
476
477 . * more spanners (smallish)
478 .  * Glissando
479 .  * trill
480
481 . * Rewrite Stem, Beam (hairy)
482 .  * general shaving on Beam and Stem
483 .  * use plet grouping
484 .  * beams over bars
485
486 . * lines:
487 .  * Ledger lines, should be separate item: Ledger_lines
488 .  * beam stem showthrough, inter beam sizes (french vs german style)
489
490 . * Collisions
491 .  * left/right note balls should be handled by Collision:
492         < \multi 2; { \stem 1; <b c> } { <f as b> } >
493
494 . * Keys:
495 .  * merge key{item} & localkey{item}?
496 .  * spacing
497
498 . * Support for TAB
499 .  * redo Notehead to allow digits as heads
500 .  * add a \tablature {} lexer mode for easy entering
501
502 . * should adjust stemlength for flag number.
503
504 . * breaking:
505 .  * saving them
506 .  * specify number of lines
507
508 .* INPUTLANGUAGE
509 . * convention for slurs vs. phrasing marks.
510 . * Language:
511 .  * \translator -> ?
512 .  * fix \partial 
513 .  * \bla {} vs \bla ; 
514 .  * \once\property  KEY = VAL
515 .  * input property
516 . * Figure out semicolons.
517 . * <c f a>4 ?
518 . * Viola mode?
519
520                 @c c g e g 
521         for
522                 c g es g, 
523
524                 @A c g e g
525         for
526                 cis gis e gis
527 . * configure pitch_byte
528 . * rest name configurable
529
530
531 .* SMALLISH PROJECTS
532
533 . * A range for context errors (eg. mark both { and }. )
534
535 . * lyric in staff  (sharpsharp in staff, text below)
536
537 . * write Dynamic_line (to group dynamics horizontally)
538
539 . * use Real for all y positions.
540
541 . * half-sharps, half-flats
542
543 . * adaptive accidental spacing.
544
545 . * handle EOF graciously in error messages.
546
547 . * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
548
549 . * lily \tempo
550
551 . *   % toe to bheel   four to five
552             %   ^_u            4_5  
553             %     -                           
554             %  --|x--         --|x--
555             %  --|---         --|---
556             %  --|---         --|---
557           (where "to" is a tiny bow)
558
559 . * auxilliary file for caching info.
560 . * Text_crescendo
561
562 .* IDEAS
563 . * Output data structures of Mudela in XML/SGML.
564 . * create libmudela, or liblily_frontend
565 . * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
566 . * Spacing_request for manually adjusting spacing
567 . * caching breakpoints
568 . * used fixedpoint arithmetic for min. energy.
569
570 * OUTLINE SETUP
571 .* .EMACS
572 ;;; from outline.el
573 (defvar outline-font-lock-keywords
574   '(;; Highlight headings according to the level.
575     ;; must change this to allout node layout
576     ;;("^\\(\\*+\\)[ \t]*\\(.+\\)?[ \t]*$"
577     ("^\\([.]*[ ]*[*]\\)[ \t]*\\(.*\\)$"
578      (1 font-lock-string-face)
579      (2 (let ((len (- (match-end 1) (match-beginning 1))))
580           (or (cdr (assq len '((1 . font-lock-function-name-face)
581                                (2 . font-lock-keyword-face)
582                                (3 . font-lock-comment-face))))
583               font-lock-variable-name-face))
584         nil t))
585     ;; Highlight citations of the form [1] and [Mar94].
586     ("\\[\\([A-Z][A-Za-z]+\\)*[0-9]+\\]" . font-lock-type-face))
587   "Additional expressions to highlight in Outline mode.")
588
589 (add-hook 'outline-mode-hook
590           '(lambda ()
591             (setq font-lock-maximum-decoration t)
592             (setq font-lock-maximum-decoration t)
593             (make-local-variable 'font-lock-defaults)
594             (setq font-lock-defaults '(outline-font-lock-keywords t))
595             (font-lock-mode global-font-lock-mode)
596         ))
597  
598 (require 'allout)
599 (outline-init 't)
600
601