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