]> git.donarmstrong.com Git - lilypond.git/blob - TODO
release: 1.1.17
[lilypond.git] / TODO
1 Features you cannot find in the doco as working, should be mentioned here.
2
3 This is an assorted collection of stuff that will be done, might be
4 done, or is an idea that I want to think about
5
6 Most of the items are marked in the code as well, with full explanation. 
7 grep for TODO and ugh/ugr/urg
8
9 BUGS:
10         * c4 \! \> c4
11
12         * tremolo stuff
13
14         * gallina barlines.
15
16         * fix height of / collisions with lyrics (chords), 
17            see input/test/vertical-text.ly
18
19         * repeat/volta:
20           - one volta spanner per score
21           - repeat bars span staffs
22           - placement alternative number
23
24         * latex bla.tex broken (titles / \lilyfooter stuff?)
25
26         * msgfmt -o check?
27
28         * \breathmark TeX macro 
29
30         * configure error if GUILE 1.3 not found
31
32         * configure error if no rtti (gcc 2.8 or egcs-1.1)
33
34         * catch GUILE errors?
35
36         * add new glyphs to font.ly
37
38         * formatting of input stuff. 
39
40         * \notes{ a \< b \cr } vs \notes{ a \< b \! }
41
42         * if possible, it might be nice for a warning to appear if someone does
43         \translator with no name and without assigning it to an
44         identifier.  
45
46         * space after bars?
47
48         * \type Voice \times 2/3 { [c8 c16 c16 c16 c16] }
49
50         * fix singleStaffBracket
51
52         * repeat bars: need distance after ":|" and before "|:"
53
54         Summary of minor spelling irregularities:
55         -  capitalization/use of underscores in property names
56
57         * fix SkipBars  -> skipBars
58
59         * \shape 1st dim skipped? 
60
61         * fix marks/barnumbers/marginal notes
62
63         * broken scripts:
64         lbheel = \script { "bheel" 0 0 -1  0 0 }
65         rbheel = \script { "bheel" 0 0 1 0 0 }
66         lbtoe = \script { "btoe" 0 0 -1 0 0 }
67         rbtoe = \script { "btoe" 0 0 1 0 0 }
68         lfheel = \script { "fheel" 0 0 -1  0 0 }
69         rfheel = \script { "fheel" 0 0 1 0 0 }
70         lftoe = \script { "ftoe" 0 0 -1 0 0 }
71         rftoe = \script { "ftoe" 0 0 1 0 0 }
72         
73         and also
74         
75         portato= \script { "portato" 0 -1 0 1 0 }
76
77 STUFF
78         * uniformise recent feta contributions.
79
80         * check out legal/(c) matters for scores.
81
82         * check out GCC signatures?
83
84         * Align_element::padding  ?
85
86         * uniformise property names.
87
88         * ydirection <-> yDirection
89
90         * typo checks on property names?
91
92         * use streambufs and iostream
93         to provide IO handling for TeX stream, mudela stream, data-file.
94
95         * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
96
97         * strip EXEs before installing
98
99         * zip target for binary windows dist (JBR)
100
101         * junking \skip req in lyrics
102
103         * Language:
104         - \type -> \context ?
105         - \translator -> ?
106         - fix \partial 
107         - \bla {} vs \bla ; 
108         - mix engraver hacking with music ?
109         - \once\property  KEY = VAL
110         - \addtranslator, \removetranslator
111         - junk ^ and _ for scripts
112         - junk _ for lyrics.
113         - abstract grammar.
114
115         * percussion note heads
116
117         * mi2mu empty staffs.
118
119         * midi_instrument -> midiInstrument
120
121         * horizontal centering of dynamics 
122
123         * \font\fontA=feta20.afm (.afm?)
124
125         * gzip RH manpage
126
127         * stable make/config stuff
128
129         * $DEPENDENCIES_OUTPUT support
130
131         * fix BUGs
132
133         * fix weird behaviour when .AFMs/.SCMs not found.
134
135         * Xdvi zooming ?! Try to understand GS garbage collection.
136                 gs: Error: /undefined in draw_beam
137                 gs: Operand stack:
138
139         * fix vertical alignment and stafflines
140
141         * GrandStaff needs more work -- I want a single word
142         `harpsichord' to the left of the grandstaff, not one on each
143         stave.  (Organ staff -- with separate pedal -- but common
144         properties may be something to think about.  Of course for
145         organ you want to be able to give stop indications on the way
146         through, so the \property Voice.Instrument would be a stop,
147         and \property GrandStaff.instrument would be PipeOrgan...)
148
149         * revise the Score_priority_align_engraver concept.  It sucks. 
150
151         * make new VoiceOne, VoiceTwo, VoiceThree contexts with
152 ydirection and hshift preset
153
154         * *.yo: fix pod manpage layout legacy
155
156         * text-items clash with stems/beams
157
158         * --include, -I option for ly2dvi (pass on to lily)
159
160         * fix placement of beam-less abbrev
161
162         * \meter 3/4;
163         <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
164          {\voicetwo cis,4 r r | r2. | r1 }> |
165         }
166
167         * try to use template<Type> iso MACRO(Type)
168
169         - NEWS: ... Musical_pitch (analogous to Duration and Rhythmic_req)
170           think about, analogous to pitch: 
171            * { a4 a16 } c <-- duration of c?
172            * <a4 b8> c <-- duration of c?
173
174         * \tempo 4. = 90;
175
176         * fix audio-items (don't use (input) requests, but copy data)
177
178         * make sure all ex's have a mudela-version
179
180         * do rest-collisions for Multi_measure_rests as well.
181
182         * split error/warning in error/warning/non_fatal_error
183
184         * add a Duration_convert member to Duration_iter to set parameters.
185         Junk global duration settings. 
186  
187         * deps for ly2dvi
188
189         * minimum length second part broken tie
190  
191         * en-,discouraged linebreaking: 
192           - handle DISALLOW < penalty > FORCE
193           - discourage breaking of slurs
194
195         * multibar rest
196           - symbol(s)
197
198         * fix variable define/lookup parser global<->paper
199
200         * fix title/instrument placements; see input/test/title.ly
201
202         * <\voiceone c4. \voicetwo c4>
203
204         * add full cello suites to web site (kom op, Maarten!)
205
206         * Rethink Time_description
207           * \cadenza , \meter, \grouping should all be \properties
208
209         * rename
210           - measure -> bar
211           - abbrev -> tremolo
212           - abbreviation-beam -> (measured/unmeasured) tremolo
213           - partial -> anacrouse
214
215         * shared lib
216
217         * robustify Beam (in case of no stems, 32nd notes)
218
219         * decentralised spring factory
220
221         * move paper vars into engraver properties
222
223         * check for groff / troff/ nroff et
224
225         * more intelligent file searching
226         - make LilyPond RPM fully relocatable
227
228         * nicen examples:
229         - break-up heavily-nested score blocks
230
231         * disable spaces in TeX stuff
232         
233         * handle ^C for tmp/file creation.
234
235         
236         * dots & rest collisions.
237
238         * documentation
239         - introduction?
240         - info?
241         - LaTeX?
242         - more manpages?
243
244         * versioning for Feta
245
246         * the warning about the negative slur/tie length appears twice
247         which is irritating.
248
249         * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
250         in the middle:
251
252         * the bracket is ugly (wings are too parabolic, should be more circular)
253
254         * better hshift (dots, distance, head dependent)
255
256         * clefs (AG): The "8" should appear closer to the actual clef,
257           touching it.
258
259         * put errorlevel in Input class
260
261         * junk nesting slurs
262
263         * integrate midi-elts from mi2mu and lily?
264
265         * score-bar-scripts
266         FMR: Free memory read:
267           * This is occurring while in:
268                 Bar_column::do_substitute_dependency(Score_element*,Score_element*) [bar
269         -column.cc:29]
270                 Score_element::unlink() [score-elem.cc:383]
271                 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
272         150]
273                 Paper_score::calc_breaking() [p-score.cc:189]
274                 Paper_score::process() [p-score.cc:203]
275                 Score::run_translator(Music_output_def*) [score.cc:117]
276           * Reading 4 bytes from 0x65d3a0 in the heap.
277           * Address 0x65d3a0 is 160 bytes into a freed  block at 0x65d300 of 208 bytes.
278           * This block was allocated from:
279                 malloc         [rtlib.o]
280                 __builtin_new  [libgcc.a]
281                 Span_score_bar::clone()const [span-score-bar.hh:20]
282                 Item::copy_breakable_items() [item.cc:69]
283                 Item::do_breakable_col_processing() [item.cc:89]
284                 Score_element::calcalute_dependencies(int,int,void(Score_element::*)()*)
285          [score-elem.cc:171]
286           * There have been 22 frees since this block was freed from:
287                 free           [rtlib.o]
288                 __builtin_delete [libgcc.a]
289                 Span_score_bar::~Span_score_bar() [span-score-bar.hh:18]
290                 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
291         156]
292                 Paper_score::calc_breaking() [p-score.cc:189]
293                 Paper_score::process() [p-score.cc:203]
294         Postprocessing elements... 
295         TeX output to score-bar-scripts.tex...
296
297
298 3RD PARTY BUGS:
299
300         * make GCC warn about ctor that leaves member vars  uninitialised.
301
302         * redhat (v?) graphical install bomb-out?
303
304         * GNU diff 2.7: diff -rN does not see a new directory with empty file
305
306         * GNU patch 2.1: <must find simple example> if patch chokes on a
307           hunk, or on allegedly unsorted hunks in a diff, it may stop 
308           without a trace of failure (create .rej file, print error or 
309           dump core) and just ignore any further diffs.
310
311         * glibc 2.0:
312
313           f = fopen ("/dev/null", "r")
314           assert (feof (f))
315
316 3RD PARTY PROJECTS:
317
318         * GNU indent: handle C++
319
320         * GNU patch 
321           - 'double-fix' mode: ignore identical fix, rather than suggest 
322             to revert patch direction when (more or less? exactly) the same 
323             thing is fixed
324
325 PROJECTS
326
327         * Scripts:
328         - fix position of bar number
329         - stack scripts in chords:
330           % fingering:        footing:
331             < a-4 c-2 g-1 >   < c-\ltoe e-\lheel >
332         - script-spacing
333         - slur parts as a script
334         - stack parameterised scripts for fingering and footing:
335
336         * convert-mudela:
337         - automatically add  a \version if not present.
338         - better parsing
339         - make smarter
340         - convert-mudela -e empty.ly
341
342         * emacs mudela-mode
343         -  should handle block comments too.
344         -  handle lexer modes (\header, \melodic, \lyric) etc.
345         -  indentation
346         -  notenames?
347         -  fontlock: \melodic \melodic
348
349         * use properties for:
350         - plet?
351         - Staff_sym size
352         - default tempo.
353         - font size
354         - bartypes (get rid of derived Span_bar_engravers)
355         - cadenza mode? 
356
357         * page handling:
358         - PS output
359         - optimal pagebreaking.
360
361         * Unicode support? -> man 7 unicode
362         - 16 bit Strings
363         - -u switch
364         - detect of 16/8 bit files
365         - examples to go with it.
366
367         * Spring_spacer:
368         - write a faster Spring_spacer (without matrices if possible)
369         - relate energybound to linelen unitspace fontsize etc.
370         - used fixed point fp?
371
372         * \header
373         - output header info to MIDI too.
374
375         * a musical dictionary. See Documentation/vocabulary-*, other
376         languages:
377         - explanations
378         - italian
379         - german
380         - dutch
381         - swedish
382          .. ?
383
384         * chords
385         - guitar chords (fret diagrams)
386         - other chord name styles (american(?) style)
387         - basso continuo
388         - MIDI output?
389
390         * Debug logs:
391         - derive lily_stream, Dstream, texstream from ostream?
392         - indentable stream as baseclass for TeX stream, lily stream, Dstream.
393         - use dstream feature in mi2mu
394         - integrate IO checking into stream class
395
396         * input converters
397         - NIFF?
398         - ABC? 
399         - SMDL?
400
401         * add to MIDI output:
402         - tempo change
403         - ornaments (and trills?)
404         - repeat/volta
405         - slurs
406         - accents
407         - dynamics
408         - account for rhythmic position in measure
409         - etc.
410
411         * grace notes
412         - make separate class for Grace_*_engravers 
413         (which is at Voice_gravs level)
414         - make encapsulated spacing problems.
415
416         * accidentals per Voice_group
417
418         * Output class, handles : (smallish)
419         - help text /(c) notice?
420         - version line
421         - warning /errors/progress
422         - abort on error/warning; exit status
423         - quiet/ignore-version options
424         - logfile output
425
426         * piano staff
427
428         * elaborate Staff_side baseclass:
429         - scripts
430         - text
431         - slur start/end
432
433         * PS 
434         - speed up PS code.
435         - PS lines to .eps files
436         - write custom prolog
437
438
439         * Output an output format independent (ofi) typeset file; and 
440           make ofi2 TeX, MusiXTex, Display PostScript, PostScript,
441           Ascii... interpreters. (difficult)
442
443         - NIFF ?
444         - Common Music Notation
445         - PostScript output (esp. Beams, Slurs, etc)
446         - Move all Score_elems, into libmutype.a
447         - SGML
448
449         * Documentation
450         - Doc (C) stuff of sheet music
451         - a better format?  SGML?  TeX?  Info?
452         - a better tutorial
453
454         * more spanners (smallish)
455         - Glissando
456         - trill
457
458         * Rewrite Stem, Beam and Rhythmic_grouping (hairy)
459         - [c8. c32 c32]
460         - doc on Rhythmic_grouping
461         - general shaving on Beam and Stem
462         - use plet grouping
463         - separate visual from rhythmic info even more
464         - beams over bars
465
466         * lines:
467         - Ledger lines, should be separate item: Ledger_lines, Ledger_lines
468         - set different line sizes / thicknesses
469         - beam stem showthrough, inter beam sizes (french vs german style)
470
471         * Collisions
472         - left/right note balls should be handled by Collision:
473         < \multi 2; { \stem 1; <b c> } { <f as b> } >
474
475         * Keys:
476         - merge key{item} & localkey{item}?
477         - spacing, national styles?
478
479         * Support for TAB
480         - redo Notehead to allow digits as heads
481         - add a \tablature {} lexer mode for easy entering
482
483         * should adjust stemlength for flag number.
484
485         * breaking:
486         - caching breakpoints
487         - saving them
488         - specify number of lines
489
490         * markers
491
492 INPUTLANGUAGE
493
494         * c4 4 4 4 for c4 c4 c4 c4?
495
496         * neatly (and readably) expressing concurrent
497         voices
498
499         * <c f a>4 ?
500
501         * Viola mode?
502
503                 @c c g e g 
504         for
505                 c g es g, 
506
507                 @A c g e g
508         for
509                 cis gis e gis
510
511         * relative mode for pitch entering
512
513         * configure pitch_byte
514
515         * rest name configurable
516
517 SMALLISH PROJECTS
518
519         * limit memory usage; the full coriolan takes up too much resources.
520
521         * fix confusing naming in Engraver vs Engraver_group_engraver (context)
522
523         * progress when creating MIDI elts.
524
525         * A range for context errors (eg. mark both { and }. )
526
527         * lyric in staff  (sharpsharp in staff, text below)
528
529         * half sharps/flats
530
531         * write Dynamic_line (to group dynamics horizontally)
532
533         * use Real for all y positions.
534         - use translate_axis( .. ,Y_AXIS)  iso separate variables.
535
536         * half-sharps, half-flats
537
538         * adaptive accidental spacing.
539
540         * handle EOF graciously in error messages.
541
542         * centered whole rest
543
544         * declare notenametab?
545
546         * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
547
548         * Flower types:
549         - A decent scalar type
550
551         * stafftypes: voice names/ instrument names.
552
553         * lily \tempo
554
555         * C meter iso 4/4, idem for alla breve, etc.
556
557         * textspanner: center position
558
559         *   % toe to bheel   four to five
560             %   ^_u            4_5  
561             %     -                           
562             %  --|x--         --|x--
563             %  --|---         --|---
564             %  --|---         --|---
565           (where "to" is a tiny bow)
566
567         * auxilliary file for caching info.
568
569         * Text_crescendo
570
571         * clean solution for staffsize in items.
572
573         * revise calcideal
574
575 IDEAS
576
577         * Output data structures of Mudela in XML/SGML.
578
579         * create libmudela, or liblily_frontend
580
581         * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
582
583         * use an embedded language: Python, Scheme
584         for:
585                 - Score_elems
586                 - Translators
587
588         * y -dims in internote? Staff-space? X-dimensions?
589
590         * Spacing_request for manually adjusting spacing
591
592         * caching breakpoints
593
594         * used fixedpoint arithmetic for min. energy.
595
596         * move towards incremental algorithms.
597
598         * far fetched language ideas
599         - design meta-language like TeX and Metafont
600         - programming/macros input
601
602         * versioning stuff (cvt mudela, mudela, etc.)
603
604         * Klavarskribo?
605
606         * dynamic loading of engravers? 
607
608 SMOBS:
609
610 ****************************************
611 Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
612
613 > mcmanus@IDT.NET writes:
614 > > > I want different C++ objects (with scheme embedded) to be linked by
615 > > > C++ pointers.  I want to access these other objects from the Scheme
616 > > > code, and I want access to these pointers from C++.
617 > > 
618 > > You can do this with a  combination of smob's and primitive functions,
619 > > though it may not be  be exactly what you wanted.   You would have one
620 > > smob  for each class in  your application, and then  you would write a
621 > > primitive function that would return the objects  that are linked to a
622 > > base object.
623
624 > And the smob and the C++ class are interlinked?  Like
625
626 >       class Foo_class {
627 >               Foo_smob *smob_ptr_;
628 >       }
629
630 >       struct Foo_smob {
631 >               Foo_class *class_ptr_
632 >       }
633
634 Usually you can get away without having this interlinked structure.
635 One piece of information you need when exporting objects to scheme is
636 the smob tag for your class.  You might store this value (a long) into
637 a class static variable, or a file static variable.  I'll use a class
638 static variable in this example.
639
640 I typically use code that works like this (untested code ahead):
641
642 class Foo_class {
643     static long *Foo_smob_tag;
644     SCM obj; // representation as a scheme object, description comes later
645 }
646
647 // call this once on startup
648 void init_Foo_class {
649     static scm_smobfuns type_rec;
650
651     type_rec.mark = foo_mark;
652     type_rec.free = foo_free;
653     type_rec.print = foo_display;
654     type_rec.equalp = 0;
655     Foo_class::Foo_smob_tag = new int(scm_new_smob(type_rec));
656 }
657
658 When you want to export an object to scheme, you put a pointer to the
659 object itself in the cdr of the cell, and the tag in the car of the
660 cell.  The code looks like this:
661
662 // Is this a Foo?
663 static int
664 foo_p(SCM obj)
665 {
666     return(SCM_NIMP(obj) && SCM_CAR(obj) == Foo_class::Foo_smob_tag);
667 }
668
669 // given a Scheme representation, return, a C++ representation
670 static Foo_class *
671 foo_unbox(SCM obj)
672 {
673     return((Foo_class*)SCM_CDR(obj));
674 }
675
676 // the SCM representation of the object is stored inside itself
677 // this will become useful when destructor gets called
678 static SCM
679 foo_box(Foo_class *foo)
680 {
681     SCM_DEFER_INTS;
682     SCM_NEWCELL(foo->obj);
683     SCM_SETCAR(foo->obj, Foo_class::Foo_smob_tag);
684     SCM_SETCDR(foo->obj, (SCM)foo);
685     SCM_ALLOW_INTS;
686     return foo->obj;
687 }
688
689 > C++ determines life time, so what is the strategy?
690
691 What happens now when the destructor gets called?  Lets set the cdr to
692 NULL, and then check for that in all of the primitive functions that
693 use your smob.  We'll call this notion 'live'; a scheme object is
694 'live' if the C++ representation still exists, it's dead if the C++
695 object is gone.  You can still have references to dead objects in
696 scheme code; it's just an error to use them.  This idea is stolen from
697 Emacs's handling of buffers ('buffer-live-p' and friends).
698
699 Add another function, foo_live_p:
700
701 static int
702 foo_live_p(SCM obj)
703 {
704     return(foo_p(obj) && SCM_CDR(obj) != NULL);
705 }
706
707 In you destructor, you need to do:
708
709 ~Foo_class()
710 {
711     SCM_CDR(this->obj, NULL);
712 }
713
714 When writing new primitives, now just check foo_live_p().
715
716 I hope the above helps,
717
718 -russ
719
720
721 --
722 "Even if you are on the right track, you'll get run over 
723 if you just sit there."  
724              --Will Rogers (1879-1935)
725
726 ***************************