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