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