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