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