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