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