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