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