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