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