]> git.donarmstrong.com Git - lilypond.git/blob - TODO
94b4f38ce557d357b2bd3f23103e1470a8606f73
[lilypond.git] / TODO
1 -*-outline-layout:(2 (-1 -1 0 :) 0);outline-stylish-prefixes:nil -*-
2
3
4 * GNU LilyPond TODO
5 Features you cannot find in the documentation as working, should be
6 mentioned here.  This is an assorted collection of stuff that will be
7 done, might be done, or is an idea that we want to think about.
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 hash tabs iso. alist_ for elt property?
13 . * unhardcode stuff in bezier-bow: all sizes other than 20pt are
14     broken
15 . * use ports iso. iostream. 
16 . * hard constraints for  broken slurs to.
17 . * Staff_margin_engraver placement is broken for Staff.instr(ument)
18 . * Bracket/brace placement and stacking is broken
19 . * Lattermann:
20
21  2. There dynamic markings of the cello part are set in roman (maybe
22     because of pizz. and arco in roman?)
23
24  4. Bar 41/42, violins: the ties should be the same direction, pref.
25     down in bar 42.
26     -- dir of broken ties
27
28  7. This is a bug: there's a colon in the middle of the two harmonium
29     staves
30
31  12. bars 82 to 84 and 88: the ties of upper harmonium should all bend down.
32      -- stemdown ~ stemup and at linebreak
33
34  15. bar 89, harmonium, the ties coming from the previous line look strangely
35      asymmetric.
36
37
38 . * Mondrup:
39
40 - In some cases I don't get the large textsize within note examples I request.
41 Consider for example the entry 'c clef', where \property Lyrics.textStyle = "large"
42 used to give that result. It doesn't now. The large text sizes DO work in other cases,
43 for example in the entry 'chord' (\property Voice.textStyle = "large"). To me it looks
44 like the property Voice.textStyle is working while Lyrics.textStyle isn't. Consider
45 for example the entry 'functional harmony' which has the same problem as 'chord'
46
47 - I don't get full size clef changes upon issuing \property Voice.clefStyle =
48 "fullSizeChanges", see for example the entry 'c clef'.
49
50 - In the entry 'brace' the second note example using \context StaffGroup gets the
51 staff bracket offset to the left page margin !! while the first note example behaves
52 normally.
53
54 - <p><img> in mudela-book
55 . * mats
56
57 If textStyle is set (in the \paper section), this setting 
58 applies also to dynamics. 
59
60 Also, the marginScriptPadding should be set by default to give 
61 a nice layout, but that's already been reported on the list.
62
63 -  What happened to the StaffGroup brackets? 
64   Try input/test/orchestscore.ly which worked fine in pl 27.
65
66 - Why do I get bar numbers on every bar (both for the score
67   and the parts)?
68
69 - Bar numbers and marks are not printed on top of the staffs,
70   but at one of the middle parts of the score. This may be 
71   related to the problem with the brackets, since the 
72   corresponding StaffGroup is the only one to get a bracket,
73   even though it is misplaced horisontally.
74
75 - The score extends too high on the page, it often overwrites the
76   page number. LaTeX warns about overfull boxes. I'll take a look
77   at the page layout.
78
79 . * control paper-size/-file from commandline ?
80   lilypond --paper=paper16 foo.ly
81   lilypond --paper=paper20 foo.ly
82   lilypond --paper=paper-as9 foo.ly
83 . * detangle ly/* paper-params papersize stuff
84 . * fix tremolos.
85 . * change ) c4  to c4-)
86 . * automated marks. 
87 . * There should be no pagebreak below the title of the movement!!
88 . * tempo:
89
90 >   - Tempo Indications:
91 >     * \tempo 4 = 60 should be printed
92 >     * There should be commands like \alloegro that also do something
93 >       sensible in midi.
94
95 . *  - It should be possible to have Bar numbers on every bar.
96
97 . * dynamics: 
98 >       * Notes should be spaced out for crescendos (had to use c^"      ")
99 >       * something like c-.->\ff looks ugly.  The dynamc indication should
100 >         appear left of the marks
101
102 . * 
103 There's insufficient leading between lines of lyrics, so risers like
104 `l' and 'b' collide with the bottom of the line above.
105
106 Also the lines are unevenly spaced.
107
108 . * write comments in the source code
109 . * internationalize GUILE msgs.
110 . * roy rankin:
111 1> The volta brackets are on top of the lyrics. This problem existed in
112    1.2.x which I corrected by giving the brackets a vertical size. I
113    have not had the time to check what is going on in 1.3.
114
115 2> Part names are being written on top of the staff and not in the
116    left margin.
117
118 3> The tag at the end is spaced out clear across the page. (new problem
119    in 1.3.27)
120
121 I also get the following error messages from ly2dvi.
122 . * unbroken marks.
123 . * chubb:
124 -- Take a piece of early music, and typeset it as closely as possible to
125 the original edition.  This means: moveable clefs, sometimes funny or no
126 time signatures, few or no bar lines, few or no ties, slurs or
127 phrasemarks, ornaments implied by the structure of the music, or
128 indicated by, e.g., one or more thick lines through the stem of a note
129 (Purcell and Farnaby both use this extensively, but with rather
130 different meanings).  For Dowland's music it may also mean being able
131 to rotate one or more staves (but I can do this in LaTeX).
132
133 -- Add to this music a set of critical marks that:
134    * regularises clef, time and key signature.
135    * add slurs, phrase marks, articulation, etc.
136    * Halve or quarter the durations, so that minims become crotchets, say.
137    * add ornaments (mordents, trills, turns etc)
138    * add regular barlines (which sometimes will mean splitting a note
139      and adding a tie, e.g., in some of Byrd's music)
140    * Add footnotes to particular symbols, groups of notes, etc.
141    * When translating from chant notation, add a square bracket over a
142      group of notes to indicate a ligature in the original
143 etc.
144    * Discretionary sharp or flat signs, for Musica Ficta
145
146 -- print out both editions from the same source.
147 . * write smobifying howto.
148 . * put property test files in refman.
149 . * alignment within @itemize
150 . * interstaff stems
151 . * junk dstream output.
152 . * Change website to be index to documentation.
153 . * \grace { c d } c1 in midi
154 . * \prop slurdir in grace notes
155 . * Make fingering and playing instructions Music_wrappers?
156 . * script columns
157 . * Must stop before this music ends:
158 verse=\lyrics {
159 . * input/test/grace.sly: wierd big spacing on grace notes
160 . * TODO^2:
161 .  * make  a TODO.texi, like http://www.gnu.org/software/guile/ideas.html
162 .  * make this file understandable for 3rd parties.
163 . * \accepts -> \acceptedby 
164 . * context in embedded SCM errors.
165 . * acc at tied note after linebreak.
166 . * fontSize for time sigs and beams.
167 . * fix font-naming and selecting
168 . * add context information to warnings
169 Paper:
170 waarschuwing: Kan niet beide uiteinden van bindingsboog vinden
171 MIDI:
172 pa.ly:33:23: waarschuwing: Schroot verzoek: `Span_req':
173   g' a4 bes8 \grace f8(
174                          )es16 d es8 r c |
175 . * chord tonic: placement of accidental  C#, Cb (from scm and C++)
176 . * note head on stem err msg in dutch.
177 . * why need to run -C mf twice?
178 . * here's no difference at all in output. When either is jacked up to 7.0,
179 everything works and matches up; when either is set just a bit above the
180 default 5.0 (5.4 is what I was hoping to use), stems miss note heads. So
181 it's some sort of a numerical (truncation/roundoff) problem.
182 John
183 . * fix #'margin-shape;  setting indent to 0 with \shape fails
184 . * Fixed size staff/system heights;
185 . * ly2dvi : don't repeat opus if same. 
186 . * hara kiri _8 clef. 
187 . * junk -M ? 
188 . * mudela-book doco
189 . * bracket pdf hack
190 . * Added StaffContents and RhythmicStaffContents context, they are
191 between Staff (which groups the elements), and generates the Staff
192 level elements (key, clef, meter, etc). This construction makes
193 \consistsend redundant
194
195 . * Mondrup:
196 - if I change the property minVerticalAlign in a multi staff score with
197 lyrics the change affects the lyrics too. I would like the change to
198 _only_ affect staves.
199 - after the leading measure in the above mentioned score I want a double
200 bar line fully drawn across the staves and after that keep to the
201 ChoirStaff bar line types in the rest of the scores
202 . * Write script that uses --find-old-relative to do auto relativization. 
203
204
205 .* Cleanups needed
206 . * \$ and $ identifier syntax in examples. 
207 . * Key_engraver, Local_key_item
208 . * Think of comprehensive solution for "if (grace_b == self_grace_b_)"
209 . * String[String.length] doesn't trap.
210 . * Rhythmic_column and interaction stem/rhythmic_column/note_head/dots.
211 . * clef engraver 
212 . * parser
213 . * Lookup::text -> needs  to be TeX independent.
214 . * junk Music_iterator::first_b_
215
216 .* ACCIDENTALS
217 . * half-sharps, half-flats
218 . * adaptive accidental spacing.
219 . * accidentals closer to note head
220
221
222 .* BEAMS
223 . * [c8. c16 c16 c16] in 6/8 timesig.
224 . * Rewrite Stem, Beam (hairy)
225 .  * beams over barlines
226 . * autoBeamMelisma: if I explicitly beam notes in a staff with auto
227 beaming disabled I would like to have these beams also to be
228 melismatic.
229 . * The stemLength property should affect also beamed stems.
230 . * staffside spanner (crescendo!) along with staffswitch.
231 . * * auto melismaBusy for beams.
232
233 . * \context Staff <
234 >   {\voiceone''4. r8}
235 >  \voicetwo c,4 r4}
236 > >
237 . * \time forces keysig?
238
239 .* STUFF
240 . * We need feta-din*.mf files for more sizes than 10.
241 . * align left edge of broken tuplet-spanner (have a test case?)
242 . * fix dynamics decently, ie. use kerning & ligatures.
243 . * key restorations & repeats
244 . * paperXX.ly \quartwidth, font setting not up to date. (Should read from AFM?)
245 . *In Caro Mio Ben, bar 8, there's a syllable that starts on a note, and
246 ends on a pair of grace notes.  Standard practice is to mark this with
247 a slur starting on the main note and ending on the grace note, so a
248 singer knows where to break the words.
249
250 In bar 27, there's a crescendo that's supposed to start at the start
251 of the grace notes and extend to the note after the grace notes.
252 . * 4. Lyrics and grace sections don't go too well together.
253  The words are aligned with the main note, not the start of the
254  grace note.  This is usually wrong, but is sometimes right.
255 . * rhythmic staff & accidentals.
256 . * use melismaBusy in Lyric context to typeset melismata correctly.  
257 . * ly2dvi/lilypond logfile.
258 . * hang Item on Spanner
259 . * do --safe for PS output?
260 . * msgfmt -o check?
261 . * collision of lyrics with span_bars. See star-spangled.
262 . * It is impossible to typeset two textual scripts that are stacked
263   on top of each other and avoids note collisions and at the same
264   time are typeset with different textStyle. I tried to move around
265   the text_engraver and other engravers between Voice and Thread 
266   but the granularity is not fine enough, the scripts have to 
267   share the same engraver in order to be get correct vertical 
268   position but than they cannot have different style.
269   In my opinion, all scripts that share the same staff, should
270   be stacked vertically, avoiding collisions with the notes
271   in all voices.
272
273 . * Matanya's tips: 
274 .  * don't  shorten stems/staffs closer to each other.
275 .  * to space the staffs/staffgroups contained in the score.  
276 .  * heavier beams?
277 . * Abstraction for engravers:
278 .  * make "in-between" engraver (Tie)
279 .  * make wide_spanner_engraver (line_group_spanner, staff_symbol)
280 . * store req -> element, element -> element causes for warnings
281 . *  My wish list for lyrics. I dream of a time when I will have enough time to
282 become familiar enough with the source code to be able to implement some of
283 these myself, but I don't know when that will be, so I thought I'd "publish"
284 my suggestions in case someone else is in a position to give them some
285 priority. Otherwise, perhaps they could go on the todo list?
286
287 If any of these are already implemented, please let me what the syntax is to
288 use them!
289
290 1. Stanza numbering. Numbering at the beginning of a song with the number
291 set to the left of the first note. It would also be nice (but not as
292 important) to be able to have some form of automatic numbering at the
293 beginning of each new line. This would make it easier to follow songs with a
294 large number of stanzas.
295
296 3. Notes centred above/below lyrics rather than left-aligned.
297
298 4. It would be very nice to be able to build some kind of phrasing into the
299 lyrics of hymns, etc, so that the first words of a phrase are left aligned
300 with each other, the last words are right aligned, and the words in between
301 are centred.
302
303 5. In a song, with (say) four stanzas and a chorus, it would be nice to be
304 able to vertically align the chorus midway between the staves.
305
306 6. It would be nice to be able to put vertical brackets either side of a
307 repeated section with different words for each repeat.
308 . * Give # lines in linebreaking.  
309 . * arrows on slurs.
310 . * rewrite context defs using Scheme
311 . * junk TeX specifics from internal code.
312 . * \selectmusic to cut pieces from music. 
313 . * formatting of input stuff. 
314 .  * deps for ly2dvi
315 . * Align_element::padding  ?
316 . * use streambufs and iostream
317 to provide IO handling for TeX stream, mudela stream, data-file.
318 . * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
319 . * uniformise recent feta contributions.
320 .  * bigger and fatter 4/4 C
321 . * relative mode for midi2ly
322 . * junking \skip req in lyrics
323 . * midi2ly empty staffs.
324 . * use Fourier transformation for rhythmic quantisation.
325 . * horizontal centering of dynamics 
326 . * $DEPENDENCIES_OUTPUT support
327 . * turn slope-damping on/off
328 . * sort out directory stuff.
329 .  * --prefix option?
330 .  * -I option per filetype?
331 .  * kpathsea?
332 . * declaring Performers
333 . * text-items clash with stems/beams
334 . * --include, -I option for ly2dvi (pass on to lily)
335 . * fix placement of beam-less abbrev
336 . * Musical_pitch (analogous to Duration and Rhythmic_req)
337           think about, analogous to pitch: 
338            * { a4 a16 } c <-- duration of c?
339            * < a4 b8 > c <-- duration of c?
340 . * \tempo 4. = 90;
341 . * do rest-collisions for Multi_measure_rests as well.
342 . * split error/warning in error/warning/non_fatal_error
343 .  * discourage breaking of slurs
344 . * fix variable define/lookup parser global<->paper
345 . * fix title/instrument placements; see input/test/title.ly
346 . * <\voiceone c4. \voicetwo c4>
347 . *  I'd like to change the \repetitions command to Jan's suggested
348   syntax: \repeat "repeatsymbol" 2 {...}, but I'm not sure that
349   I understand the implementation of repeats well enough.
350 . * add mudela-book-doc source to webstie.
351 . * fix singleStaffBracket
352 . * move paper vars into engraver properties
353 . * add new glyphs to font.ly
354 . * more intelligent file searching
355 . * disable spaces in TeX stuff
356 . * handle ^C for tmp/file creation.
357 . * make LilyPond RPM fully relocatable
358 . * didot / big point.
359 . * clefs (AG): The "8" should appear closer to the actual clef,
360 touching it.
361 . * put errorlevel in Input class
362 . * junk nesting slurs
363
364
365 .* FONT
366 . * the bracket is ugly (wings are too parabolic, should be more circular)
367 . * fix accordion turning paths.
368 . * versioning for Feta
369 . * rewrite dynamic signs.  They're kind of spaghetti now. 
370 . * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
371         in the middle:
372 . * design macro for penstroke with rounded endings
373 . * timesig C: fat yet less curved.  Check out relations. 
374 . * design decent macro for bulbed endings
375 . * printer dependencies.
376 . * versioning  
377 . * lo-res fixes.
378 . * work out sizes of character fonts.
379 . * more symbols
380 .  * piano pedals: Ped/*
381 .  * coda signs: Segno, O+
382 .  * glissando, arpeggio
383 .  * lengthened trill
384 . * include important spacing dims in fetalog 
385 . * scalability: use blot_diameter everywhere, make font chubbier for
386     small sizes.
387
388 .* 3RD PARTY BUGS
389 . * UMR: Uninitialized memory read
390       This is occurring while in:
391             qst            [qsort.c]
392             qsort          [libc.so.1]
393             Keyword_table::Keyword_table(Keyword_ent*) [keyword.cc:28]
394             My_lily_lexer::My_lily_lexer() [my-lily-lexer.cc:78]
395             My_lily_parser::parse_file(String,String) [my-lily-parser.cc:54]
396             do_one_file(String,String) [scores.cc:124]
397       Reading 4 bytes from 0xefffeca8 on the stack.
398       Address 0xefffeca8 is 728 bytes below frame pointer in function 
399 . * patch: don't touch timestamp if all patches fail.
400 . * MetaPost: should not generate setgray for unfill
401 . * glibc 2.0:
402           f = fopen ("/dev/null", "r")
403           assert (feof (f))
404 . * Texinfo, add [ A | B | C ] style tocs to .html output, and don't rely
405     on @node names for html tocs.
406
407 .* PROJECTS
408 . * Scripts:
409 .  * stack scripts in chords:
410           % fingering:        footing:
411             < a-4 c-2 g-1 >   < c-\ltoe e-\lheel >
412 .  * script-spacing
413 .  * slur parts as a script
414 .  * stack parameterised scripts for fingering and footing:
415
416 . * convert-mudela:
417 .  * better parsing
418 .  * make smarter
419 .  * convert-mudela -e empty.ly
420
421 . * emacs mudela-mode
422 .  *  should handle block comments too.
423 .  *  handle lexer modes (\header, \melodic, \lyric) etc.
424 .  *  indentation
425 .  *  notenames?
426 .  *  fontlock: \melodic \melodic
427
428 . * use properties for:
429 .  * default tempo.
430
431 . * page handling:
432 .  * PS output
433 .  * optimal pagebreaking.
434
435 . * internationalisation for input.
436 .  * Unicode support? -> man 7 unicode
437 .  * (The explanation below is mostly intended for Han-Wen and Jan)
438 > Before, the font was changed with macros declared separately for 
439 > pure TeX and LaTeX, but now all the fonts are declared directly in
440 > the generated code using the low-level TeX commands. This circumvents
441 > the fontencoding mechanism of LaTeX and is a potential source of
442 > problems also for us users of the Latin-1 character set. 
443 > I think it still works since the inputencoding latin1 is 
444 > declared by ly2dvi, but it still means that e.g. an o with
445 > umlaut is typeset as a combination of the two symbols 'o' and
446 > 'umlaut' instead of as a single character, as would be the case
447 > if fontencoding OT1 had been used. This shouldn't give any 
448 > difference in layout, though. One of the main argument for using
449 > fontencoding OT1 is for the hyphenation mechanism to work, an 
450 > argument that's clearly irrelevant in our application. Yet we
451 > see the problem for August.
452
453 . * \header
454 .  * output header info to MIDI too.
455 .  * dump \header into easily parsable format.
456
457 . * chords
458 .  * guitar chords (fret diagrams)
459 .  * other chord name styles (american(?) style)
460 .  * basso continuo
461 .  * MIDI output?
462
463 . * Debug logs:
464 .  * derive lily_stream, Dstream, texstream from ostream?
465 .  * indentable stream as baseclass for TeX stream, lily stream, Dstream.
466 .  * use dstream feature in midi2ly
467 .  * integrate IO checking into stream class
468
469 . * input converters
470 .  * NIFF?
471 .  * musedata
472
473 . * add to MIDI output:
474 .  * sharp / flat on trills (in MIDI ??)
475 .  * ornaments (and trills?)
476 .  * slurs
477 .  * accents
478 .  * dynamics
479 .  * account for rhythmic position in measure
480 .  * etc.
481
482
483 . * logfile output?
484
485 . * PS 
486 .  * speed up PS code.
487 .  * PS lines to .eps files
488 .  * write custom prolog
489 .  * fix ps font switching
490
491 . * more spanners (smallish)
492 .  * Glissando
493 .  * trill
494
495 . * Keys:
496 .  * merge key{item} & localkey{item}?
497 .  * spacing
498
499 . * Support for TAB
500 .  * redo Notehead to allow digits as heads
501 .  * add a \tablature {} lexer mode for easy entering
502
503 . * should adjust stemlength for flag number.
504
505 . * breaking:
506 .  * specify number of lines
507
508 .* INPUTLANGUAGE
509 . * convention for slurs vs. phrasing marks.
510 . * Language:
511 .  * \translator -> ?
512 .  * fix \partial 
513 .  * \bla {} vs \bla ; 
514 .  * \once\property  KEY = VAL
515 .  * input property
516 . * Figure out semicolons.
517 . * <c f a>4 ?
518 . * configure pitch_byte
519 . * rest name configurable
520
521
522 .* SMALLISH PROJECTS
523
524 . * lyric in staff  (sharpsharp in staff, text below)
525
526 . * write Dynamic_line (to group dynamics horizontally)
527
528 . * handle EOF graciously in error messages.
529
530 . * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
531
532 . * lily \tempo
533
534 . *   % toe to bheel   four to five
535             %   ^_u            4_5  
536             %     -                           
537             %  --|x--         --|x--
538             %  --|---         --|---
539             %  --|---         --|---
540           (where "to" is a tiny bow)
541
542 . * Text_crescendo
543
544 .* IDEAS
545 . * Output data structures of Mudela in XML/SGML.
546 . * create libmudela, or liblily_frontend
547 . * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
548
549 * OUTLINE SETUP
550 .* .EMACS
551 ;;; from outline.el
552 (defvar outline-font-lock-keywords
553   '(;; Highlight headings according to the level.
554     ;; must change this to allout node layout
555     ;;("^\\(\\*+\\)[ \t]*\\(.+\\)?[ \t]*$"
556     ("^\\([.]*[ ]*[*]\\)[ \t]*\\(.*\\)$"
557      (1 font-lock-string-face)
558      (2 (let ((len (- (match-end 1) (match-beginning 1))))
559           (or (cdr (assq len '((1 . font-lock-function-name-face)
560                                (2 . font-lock-keyword-face)
561                                (3 . font-lock-comment-face))))
562               font-lock-variable-name-face))
563         nil t))
564     ;; Highlight citations of the form [1] and [Mar94].
565     ("\\[\\([A-Z][A-Za-z]+\\)*[0-9]+\\]" . font-lock-type-face))
566   "Additional expressions to highlight in Outline mode.")
567
568 (add-hook 'outline-mode-hook
569           '(lambda ()
570             (setq font-lock-maximum-decoration t)
571             (setq font-lock-maximum-decoration t)
572             (make-local-variable 'font-lock-defaults)
573             (setq font-lock-defaults '(outline-font-lock-keywords t))
574             (font-lock-mode global-font-lock-mode)
575         ))
576  
577 (require 'allout)
578 (outline-init 't)
579
580