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