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