]> git.donarmstrong.com Git - lilypond.git/blob - TODO
a3a4e28c8240c04cb4f6818b3c9633057056f7df
[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 documentation 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 we want to think about.
7 m
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 . * agressive type-checking for SCM stuff. 
13 . * TODO^2:
14 .   *make  a TODO.texi, like http://www.gnu.org/software/guile/ideas.html
15 .  * make this file understandable for 3rd parties.
16 . * \accepts -> \acceptedby 
17 . * context in embedded SCM errors.
18 . * eradicate all VIRTUAL_COPY_CONS () macros ; use indexed creation,
19     eg.
20
21         ctor_dict["Score_element"]->clone_func (orig);
22         ctor_dict["Score_element"]->create_func ();
23 . * acc at tied note after linebreak.
24 . * fix font-naming and selecting
25 . * fix naming: \interline Context.staffLineLeading, staff_line_leading (),
26 staff_position staff_space
27 . * chord tonic: placement of accidental  C#, Cb (from scm and C++)
28 . * note head on stem err msg in dutch.
29 . * why need to run -C mf twice?
30 . * here's no difference at all in output. When either is jacked up to 7.0,
31 everything works and matches up; when either is set just a bit above the
32 default 5.0 (5.4 is what I was hoping to use), stems miss note heads. So
33 it's some sort of a numerical (truncation/roundoff) problem.
34 John
35 . * fix #'margin-shape;  setting indent to 0 with \shape fails
36 . * Fixed size staff/system heights;
37 . * 
38 . * ly2dvi : don't repeat opus if same. 
39 . * hara kiri _8 clef. 
40 . * junk -M ? 
41 . * mudela-book doco
42 . * fix or replace feta-accordion.mf
43 . * script engraver
44 . * bracket pdf hack
45 . * Mondrup:
46 - if I change the property minVerticalAlign in a multi staff score with
47 lyrics the change affects the lyrics too. I would like the change to
48 _only_ affect staves.
49
50 - I would like to be able to influence the sloping of xtuplet brackets
51
52 - for one of my test scores containing a modern edition of an early
53 17'th century composition I have a leading measure containing the
54 orginal clefs and note values of the original composition. I use the
55 a"harmonic" and "diamond" note head styles for that measure and would
56 like to have the stems of these notes _centered_ on the notehead as in
57 the mensural music notation.
58
59 - after the leading measure in the above mentioned score I want a double
60 bar line fully drawn across the staves and after that keep to the
61 ChoirStaff bar line types in the rest of the scores
62
63 . * make all Feta (including dynamics) available to the user in
64     textual scripts. Examples: "D.S. al \coda", "\mf espress.".
65 . * Write script that uses --find-old-relative to do auto relativization. 
66 . * Junk shared cruft (duration, moment) in lib/
67
68
69 .* Cleanups needed
70 . * \$ and $ identifier syntax in examples. 
71 . * Junk ghost positioning objects eg, Script leans on  Staffside
72     leans on Staff.
73 . * Key_engraver, Local_key_item
74 . * Think of comprehensive solution for "if (grace_b == self_grace_b_)"
75 . * String[String.length] doesn't trap.
76 . * Rhythmic_column and interaction stem/rhythmic_column/note_head/dots.
77 . * Duration
78 . * clef engraver 
79 . * parser
80 . * Lookup::text -> needs  to be TeX independent.
81 . * junk Music_iterator::first_b_
82 . * Bezier
83
84 .* ACCIDENTALS
85 . * half-sharps, half-flats
86 . * adaptive accidental spacing.
87 . * accidentals closer to note head
88
89
90 .* Beams
91 . * [c8. c16 c16 c16] in 6/8 timesig.
92 . * Rewrite Stem, Beam (hairy)
93 .  * general shaving on Beam and Stem
94 .  * use plet grouping
95 .  * beams over bars
96 . * Rests and beams don't work too well together. Example:
97    [ r8 g''16 des'] [r8 c16 a] 
98 . * autoBeamMelisma: if I explicitly beam notes in a staff with auto
99 beaming disabled I would like to have these beams also to be
100 melismatic.
101 . * The stemLength property should affect also beamed stems.
102 . * staffside spanner (crescendo!) along with staffswitch.
103 . * * auto melismaBusy for beams.
104
105 . * 
106 > \context Staff <
107 >   {\voiceone''4. r8}
108 >  \voicetwo c,4 r4}
109 > >
110 . * sort out breve shapes.
111 . * \time forces keysig?
112
113 .* STUFF
114 . * We need feta-din*.mf files for more sizes than 10.
115 . * align left edge of broken tuplet-spanner (have a test case?)
116 . * fix dynamics decently, ie. use kerning & ligatures.
117 . * key restorations & repeats
118 . * paperXX.ly \quartwidth, font setting not up to date. (Should read from AFM?)
119 . *In Caro Mio Ben, bar 8, there's a syllable that starts on a note, and
120 ends on a pair of grace notes.  Standard practice is to mark this with
121 a slur starting on the main note and ending on the grace note, so a
122 singer knows where to break the words.
123
124 In bar 27, there's a crescendo that's supposed to start at the start
125 of the grace notes and extend to the note after the grace notes.
126 . * 4. Lyrics and grace sections don't go too well together.
127  The words are aligned with the main note, not the start of the
128  grace note.  This is usually wrong, but is sometimes right.
129 . * tie-direction
130 . * repeats and partial measures.
131 . * rhythmic staff & accidentals.
132 . * use melismaBusy in Lyric context to typeset melismata correctly.  
133 . * ly2dvi/lilypond logfile.
134 . * hang Item on Spanner
135 . * do --safe for PS output?
136 . * msgfmt -o check?
137 . * collision of lyrics with span_bars. See star-spangled.
138 . * It is impossible to typeset two textual scripts that are stacked
139   on top of eachother and avoids note collisions and at the same
140   time are typeset with different textStyle. I tried to move around
141   the text_engraver and other engravers between Voice and Thread 
142   but the granularity is not fine enough, the scripts have to 
143   share the same engraver in order to be get correct vertical 
144   position but than they cannot have different style.
145   In my opinion, all scripts that share the same staff, should
146   be stacked vertically, avoiding collisions with the notes
147   in all voices.
148
149 . * Matanya's tips: 
150 .  * don't  shorten stems/staffs closer to each other.
151 .  * to space the staffs/staffgroups contained in the score.  
152 .  * heavier beams?
153
154 . * tuplets that are written as "number : note", for example
155    "3 : [image of a half note here]".  possible?
156 . * a note with a circle after it, meaning:
157
158    note + circle = note + 1/4 of its length
159
160    the circle is like a dot that's not filled in.  for example, on
161    page three, the c-sharp on the second line should be a quarter with 
162    a circle, not a quarter tied to a sixteenth.  is this at all
163    possible with lily?
164 . * make dependencies () a virtual function.
165 . * deprecate hangOnClef.
166 . * Abstraction for engravers:
167 .  * make "in-between" engraver (Tie)
168 .  * make wide_spanner_engraver (line_group_spanner, staff_symbol)
169 . * store req -> element, element -> element causes for warnings
170 . * compulsory hshift
171 . *  My wish list for lyrics. I dream of a time when I will have enough time to
172 become familiar enough with the source code to be able to implement some of
173 these myself, but I don't know when that will be, so I thought I'd "publish"
174 my suggestions in case someone else is in a position to give them some
175 priority. Otherwise, perhaps they could go on the todo list?
176
177 If any of these are already implemented, please let me what the syntax is to
178 use them!
179
180 1. Stanza numbering. Numbering at the beginning of a song with the number
181 set to the left of the first note. It would also be nice (but not as
182 important) to be able to have some form of automatic numbering at the
183 beginning of each new line. This would make it easier to follow songs with a
184 large number of stanzas.
185
186 3. Notes centred above/below lyrics rather than left-aligned.
187
188 4. It would be very nice to be able to build some kind of phrasing into the
189 lyrics of hymns, etc, so that the first words of a phrase are left aligned
190 with each other, the last words are right aligned, and the words in between
191 are centred.
192
193 5. In a song, with (say) four stanzas and a chorus, it would be nice to be
194 able to vertically align the chorus midway between the staves.
195
196 6. It would be nice to be able to put vertical brackets either side of a
197 repeated section with different words for each repeat.
198 . * Give # lines in linebreaking.  
199 . * arrows on slurs.
200 . * rewrite context defs using Scheme
201 . * junk TeX specifics from internal code.
202 . * \selectmusic to cut pieces from music. 
203 . * formatting of input stuff. 
204 .  * deps for ly2dvi
205 . * TODO: merge atom & molecule; make  tree from molecule.
206 . * Align_element::padding  ?
207 . * use streambufs and iostream
208 to provide IO handling for TeX stream, mudela stream, data-file.
209 . * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
210 . * fix partial measures in meaningful way.
211 . * uniformise recent feta contributions.
212 .  * bigger and fatter 4/4 C
213 . * relative mode for midi2ly
214 . * junking \skip req in lyrics
215 . * midi2ly empty staffs.
216 . * use Fourier transformation for rhythmic quantisation.
217 . * horizontal centering of dynamics 
218 . * $DEPENDENCIES_OUTPUT support
219 . * turn slope-damping on/off
220 . * sort out directory stuff.
221 .  * --prefix option?
222 .  * -I option per filetype?
223 .  * kpathsea?
224 . * fix vertical alignment and stafflines
225 . * declaring Performers
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 .  * discourage breaking of slurs
244 . * fix variable define/lookup parser global<->paper
245 . * fix title/instrument placements; see input/test/title.ly
246 . * <\voiceone c4. \voicetwo c4>
247 . *  I'd like to change the \repetitions command to Jan's suggested
248   syntax: \repeat "repeatsymbol" 2 {...}, but I'm not sure that
249   I understand the implementation of repeats well enough.
250 . * add mudela-book-doc source to webstie.
251 . * fix singleStaffBracket
252 . * rename
253 .  * partial -> anacrouse
254 . * move paper vars into engraver properties
255 . * add new glyphs to font.ly
256 . * more intelligent file searching
257 . * disable spaces in TeX stuff
258 . * handle ^C for tmp/file creation.
259 . * make LilyPond RPM fully relocatable
260 . * better hshift (dots, distance, head dependent)
261 . * didot / big point.
262 . * clefs (AG): The "8" should appear closer to the actual clef,
263 touching it.
264 . * put errorlevel in Input class
265 . * junk nesting slurs
266
267
268 .* FONT
269 . * the bracket is ugly (wings are too parabolic, should be more circular)
270 . * versioning for Feta
271 . * rewrite dynamic signs.  They're kind of spaghetti now. 
272 . * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
273         in the middle:
274 . * design macro for penstroke with rounded endings
275 . * timesig C: fat yet less curved.  Check out relations. 
276 . * design decent macro for bulbed endings
277 . * printer dependencies.
278 . * versioning  
279 . * lo-res fixes.
280 . * work out sizes of character fonts.
281 . * more symbols
282 .  * piano pedals: Ped/*
283 .  * maxima notehead
284 .  * coda signs: Segno, O+
285 .  * glissando, arpeggio
286 .  * lengthened trill
287 . * include important spacing dims in fetalog 
288 . * scalability: use blot_diameter everywhere, make font chubbier for
289     small sizes.
290
291 .* 3RD PARTY BUGS
292 . * UMR: Uninitialized memory read
293       This is occurring while in:
294             qst            [qsort.c]
295             qsort          [libc.so.1]
296             Keyword_table::Keyword_table(Keyword_ent*) [keyword.cc:28]
297             My_lily_lexer::My_lily_lexer() [my-lily-lexer.cc:78]
298             My_lily_parser::parse_file(String,String) [my-lily-parser.cc:54]
299             do_one_file(String,String) [scores.cc:124]
300       Reading 4 bytes from 0xefffeca8 on the stack.
301       Address 0xefffeca8 is 728 bytes below frame pointer in function 
302 . *  Array<Axis [2] > axeses;
303
304   for (int i=0; i < loose_elems.size (); i++)
305     {
306       Score_element* elt = loose_elems[i];
307       /*
308             with which axes do we have to meddle?
309       */
310       int j =0;
311       Axis as [2];
312       for (int a = X_AXIS; a < NO_AXES; ++a)
313         if (elt->parent_l (Axis (a)) == this)
314           as[j++] = Axis (a);
315       if (j == 1)
316         as[j++] = as[0];
317
318       axeses.push (as);
319     }
320
321 . * patch: don't touch timestamp if all patches fail.
322 . * MetaPost: should not generate setgray for unfill
323
324 . * mf-to-table -> add space 'before ; in AFM output.  (-> check AFM
325 spec. Is this a bug in afm2tfm?)
326 . * check out GCC signatures?
327 . * glibc 2.0:
328           f = fopen ("/dev/null", "r")
329           assert (feof (f))
330 . * tetex: mfplain.mem -> INSTALL
331 . * mfplain.ini not in tetex 0.9 -> INSTALL
332
333
334 .* PROJECTS
335 . * Scripts:
336 .  * stack scripts in chords:
337           % fingering:        footing:
338             < a-4 c-2 g-1 >   < c-\ltoe e-\lheel >
339 .  * script-spacing
340 .  * slur parts as a script
341 .  * stack parameterised scripts for fingering and footing:
342
343 . * convert-mudela:
344 .  * better parsing
345 .  * make smarter
346 .  * convert-mudela -e empty.ly
347
348 . * emacs mudela-mode
349 .  *  should handle block comments too.
350 .  *  handle lexer modes (\header, \melodic, \lyric) etc.
351 .  *  indentation
352 .  *  notenames?
353 .  *  fontlock: \melodic \melodic
354
355 . * use properties for:
356 .  * default tempo.
357
358 . * page handling:
359 .  * PS output
360 .  * optimal pagebreaking.
361
362 . * internationalisation for input.
363 .  * Unicode support? -> man 7 unicode
364 .  * (The explanation below is mostly intended for Han-Wen and Jan)
365 > Before, the font was changed with macros declared separately for 
366 > pure TeX and LaTeX, but now all the fonts are declared directly in
367 > the generated code using the low-level TeX commands. This circumvents
368 > the fontencoding mechanism of LaTeX and is a potential source of
369 > problems also for us users of the Latin-1 character set. 
370 > I think it still works since the inputencoding latin1 is 
371 > declared by ly2dvi, but it still means that e.g. an o with
372 > umlaut is typeset as a combination of the two symbols 'o' and
373 > 'umlaut' instead of as a single character, as would be the case
374 > if fontencoding OT1 had been used. This shouldn't give any 
375 > difference in layout, though. One of the main argument for using
376 > fontencoding OT1 is for the hyphenation mechanism to work, an 
377 > argument that's clearly irrelevant in our application. Yet we
378 > see the problem for August.
379
380 . * \header
381 .  * output header info to MIDI too.
382 .  * dump \header into easily parsable format.
383
384 . * a musical dictionary. See Documentation/vocabulary-*, other
385 languages:
386 .  * explanations
387 .  * italian
388 .  * german
389 .  * dutch
390 .  * swedish
391
392 . * chords
393 .  * guitar chords (fret diagrams)
394 .  * other chord name styles (american(?) style)
395 .  * basso continuo
396 .  * MIDI output?
397
398 . * Debug logs:
399 .  * derive lily_stream, Dstream, texstream from ostream?
400 .  * indentable stream as baseclass for TeX stream, lily stream, Dstream.
401 .  * use dstream feature in midi2ly
402 .  * integrate IO checking into stream class
403
404 . * input converters
405 .  * NIFF?
406 .  * musedata
407
408 . * add to MIDI output:
409 .  * sharp / flat on trills (in MIDI ??)
410 .  * ornaments (and trills?)
411 .  * slurs
412 .  * accents
413 .  * dynamics
414 > Would it be hard to add support for proper dynamics in MIDI output?  I
415 > would really like to have this feature...
416
417 Concretely spoken, for dynamics you have to write a performer
418 (Dynamics_performer), that will take the input requests. If I
419 understand correctly, every MIDI note played must have its dynamic
420 strength set separately.  That means the the Dynamics_performer must
421 set the strength of every Audio_note it finds.  This means that one
422 has to modify existing Audio items.  The best way of doing this is
423 with a broadcast/acknowledge process.
424
425 So the best way of handling this, is
426
427   1 supporting dynamic settings in Audio_note
428
429   2 Write a Dynamics_performer that will modify
430   any notes it finds to set appropriate strengths.
431
432 I'd say that the work involved is not hard, but you have to be fluent
433 with C++ and need some insight into the working of Notation Contexts
434 and friends.  I guess I could do it in a day or so, but if you are not
435 so fluent with the inner workings of LilyPond, it could take you some
436 more time (A few more days?).
437
438 Please note, that I am *not* going to code this myself: my days are
439 valuable, and I think I have more interesting things to do than fixing
440 the MIDI output (I don't even have a soundcard).  But I *do* want to help
441 you or other people with implementing this, so if you need help, don't
442 hesitate to ask.
443 .  * account for rhythmic position in measure
444 .  * etc.
445
446 . * Output class, handles : (smallish)
447 .  * help text /(c) notice?
448 .  * version line
449 .  * warning /errors/progress
450 .  * abort on error/warning; exit status
451 .  * quiet/ignore-version options
452 .  * logfile output
453
454 . * PS 
455 .  * speed up PS code.
456 .  * PS lines to .eps files
457 .  * write custom prolog
458 .  * fix ps font switching
459
460 . * more spanners (smallish)
461 .  * Glissando
462 .  * trill
463
464 . * Collisions
465 .  * left/right note balls should be handled by Collision:
466         < \multi 2; { \stem 1; <b c> } { <f as b> } >
467
468 . * Keys:
469 .  * merge key{item} & localkey{item}?
470 .  * spacing
471
472 . * Support for TAB
473 .  * redo Notehead to allow digits as heads
474 .  * add a \tablature {} lexer mode for easy entering
475
476 . * should adjust stemlength for flag number.
477
478 . * breaking:
479 .  * specify number of lines
480
481 .* INPUTLANGUAGE
482 . * convention for slurs vs. phrasing marks.
483 . * Language:
484 .  * \translator -> ?
485 .  * fix \partial 
486 .  * \bla {} vs \bla ; 
487 .  * \once\property  KEY = VAL
488 .  * input property
489 . * Figure out semicolons.
490 . * <c f a>4 ?
491 . * configure pitch_byte
492 . * rest name configurable
493
494
495 .* SMALLISH PROJECTS
496
497 . * lyric in staff  (sharpsharp in staff, text below)
498
499 . * write Dynamic_line (to group dynamics horizontally)
500
501
502 . * handle EOF graciously in error messages.
503
504 . * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
505
506 . * lily \tempo
507
508 . *   % toe to bheel   four to five
509             %   ^_u            4_5  
510             %     -                           
511             %  --|x--         --|x--
512             %  --|---         --|---
513             %  --|---         --|---
514           (where "to" is a tiny bow)
515
516 . * auxilliary file for caching info.
517
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
525 * OUTLINE SETUP
526 .* .EMACS
527 ;;; from outline.el
528 (defvar outline-font-lock-keywords
529   '(;; Highlight headings according to the level.
530     ;; must change this to allout node layout
531     ;;("^\\(\\*+\\)[ \t]*\\(.+\\)?[ \t]*$"
532     ("^\\([.]*[ ]*[*]\\)[ \t]*\\(.*\\)$"
533      (1 font-lock-string-face)
534      (2 (let ((len (- (match-end 1) (match-beginning 1))))
535           (or (cdr (assq len '((1 . font-lock-function-name-face)
536                                (2 . font-lock-keyword-face)
537                                (3 . font-lock-comment-face))))
538               font-lock-variable-name-face))
539         nil t))
540     ;; Highlight citations of the form [1] and [Mar94].
541     ("\\[\\([A-Z][A-Za-z]+\\)*[0-9]+\\]" . font-lock-type-face))
542   "Additional expressions to highlight in Outline mode.")
543
544 (add-hook 'outline-mode-hook
545           '(lambda ()
546             (setq font-lock-maximum-decoration t)
547             (setq font-lock-maximum-decoration t)
548             (make-local-variable 'font-lock-defaults)
549             (setq font-lock-defaults '(outline-font-lock-keywords t))
550             (font-lock-mode global-font-lock-mode)
551         ))
552  
553 (require 'allout)
554 (outline-init 't)
555
556