]> git.donarmstrong.com Git - lilypond.git/blob - TODO
release: 1.1.16
[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         * clean up abbrev/plet/beam/abbrevbeam/duration mess in parser.
190
191         * minimum length second part broken tie
192  
193         * en-,discouraged linebreaking: 
194           - handle DISALLOW < penalty > FORCE
195           - discourage breaking of slurs
196
197         * multibar rest
198           - symbol(s)
199
200         * fix variable define/lookup parser global<->paper
201
202         * fix title/instrument placements; see input/test/title.ly
203
204         * <\voiceone c4. \voicetwo c4>
205
206         * add full cello suites to web site (kom op, Maarten!)
207
208         * Rethink Time_description
209           * \cadenza , \meter, \grouping should all be \properties
210
211         * rename
212           - measure -> bar
213           - abbrev -> tremolo
214           - abbreviation-beam -> (measured/unmeasured) tremolo
215           - partial -> anacrouse
216
217         * shared lib
218
219         * robustify Beam (in case of no stems, 32nd notes)
220
221         * decentralised spring factory
222
223         * move paper vars into engraver properties
224
225         * check for groff / troff/ nroff et
226
227         * more intelligent file searching
228         - make LilyPond RPM fully relocatable
229
230         * nicen examples:
231         - break-up heavily-nested score blocks
232
233         * disable spaces in TeX stuff
234         
235         * handle ^C for tmp/file creation.
236
237         
238         * dots & rest collisions.
239
240         * documentation
241         - introduction?
242         - info?
243         - LaTeX?
244         - more manpages?
245
246         * versioning for Feta
247
248         * the warning about the negative slur/tie length appears twice
249         which is irritating.
250
251         * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
252         in the middle:
253
254         * the bracket is ugly (wings are too parabolic, should be more circular)
255
256         * better hshift (dots, distance, head dependent)
257
258         * clefs (AG): The "8" should appear closer to the actual clef,
259           touching it.
260
261         * put errorlevel in Input class
262
263         * junk nesting slurs
264
265         * integrate midi-elts from mi2mu and lily?
266
267         * score-bar-scripts
268         FMR: Free memory read:
269           * This is occurring while in:
270                 Bar_column::do_substitute_dependency(Score_element*,Score_element*) [bar
271         -column.cc:29]
272                 Score_element::unlink() [score-elem.cc:383]
273                 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
274         150]
275                 Paper_score::calc_breaking() [p-score.cc:189]
276                 Paper_score::process() [p-score.cc:203]
277                 Score::run_translator(Music_output_def*) [score.cc:117]
278           * Reading 4 bytes from 0x65d3a0 in the heap.
279           * Address 0x65d3a0 is 160 bytes into a freed  block at 0x65d300 of 208 bytes.
280           * This block was allocated from:
281                 malloc         [rtlib.o]
282                 __builtin_new  [libgcc.a]
283                 Span_score_bar::clone()const [span-score-bar.hh:20]
284                 Item::copy_breakable_items() [item.cc:69]
285                 Item::do_breakable_col_processing() [item.cc:89]
286                 Score_element::calcalute_dependencies(int,int,void(Score_element::*)()*)
287          [score-elem.cc:171]
288           * There have been 22 frees since this block was freed from:
289                 free           [rtlib.o]
290                 __builtin_delete [libgcc.a]
291                 Span_score_bar::~Span_score_bar() [span-score-bar.hh:18]
292                 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
293         156]
294                 Paper_score::calc_breaking() [p-score.cc:189]
295                 Paper_score::process() [p-score.cc:203]
296         Postprocessing elements... 
297         TeX output to score-bar-scripts.tex...
298
299
300 3RD PARTY BUGS:
301
302         * make GCC warn about ctor that leaves member vars  uninitialised.
303
304         * redhat (v?) graphical install bomb-out?
305
306         * GNU diff 2.7: diff -rN does not see a new directory with empty file
307
308         * GNU patch 2.1: <must find simple example> if patch chokes on a
309           hunk, or on allegedly unsorted hunks in a diff, it may stop 
310           without a trace of failure (create .rej file, print error or 
311           dump core) and just ignore any further diffs.
312
313         * glibc 2.0:
314
315           f = fopen ("/dev/null", "r")
316           assert (feof (f))
317
318 3RD PARTY PROJECTS:
319
320         * GNU indent: handle C++
321
322         * GNU patch 
323           - 'double-fix' mode: ignore identical fix, rather than suggest 
324             to revert patch direction when (more or less? exactly) the same 
325             thing is fixed
326
327 PROJECTS
328
329         * Scripts:
330         - fix position of bar number
331         - stack scripts in chords:
332           % fingering:        footing:
333             < a-4 c-2 g-1 >   < c-\ltoe e-\lheel >
334         - script-spacing
335         - slur parts as a script
336         - stack parameterised scripts for fingering and footing:
337
338         * convert-mudela:
339         - automatically add  a \version if not present.
340         - better parsing
341         - make smarter
342         - convert-mudela -e empty.ly
343
344         * emacs mudela-mode
345         -  should handle block comments too.
346         -  handle lexer modes (\header, \melodic, \lyric) etc.
347         -  indentation
348         -  notenames?
349         -  fontlock: \melodic \melodic
350
351         * use properties for:
352         - plet?
353         - Staff_sym size
354         - default tempo.
355         - font size
356         - bartypes (get rid of derived Span_bar_engravers)
357         - cadenza mode? 
358
359         * page handling:
360         - PS output
361         - optimal pagebreaking.
362
363         * Unicode support? -> man 7 unicode
364         - 16 bit Strings
365         - -u switch
366         - detect of 16/8 bit files
367         - examples to go with it.
368
369         * Spring_spacer:
370         - write a faster Spring_spacer (without matrices if possible)
371         - relate energybound to linelen unitspace fontsize etc.
372         - used fixed point fp?
373
374         * \header
375         - output header info to MIDI too.
376
377         * a musical dictionary. See Documentation/vocabulary-*, other
378         languages:
379         - explanations
380         - italian
381         - german
382         - dutch
383         - swedish
384          .. ?
385
386         * chords
387         - guitar chords (fret diagrams)
388         - other chord name styles (american(?) style)
389         - basso continuo
390         - MIDI output?
391
392         * Debug logs:
393         - derive lily_stream, Dstream, texstream from ostream?
394         - indentable stream as baseclass for TeX stream, lily stream, Dstream.
395         - use dstream feature in mi2mu
396         - integrate IO checking into stream class
397
398         * input converters
399         - NIFF?
400         - ABC? 
401         - SMDL?
402
403         * add to MIDI output:
404         - tempo change
405         - ornaments (and trills?)
406         - repeat/volta
407         - slurs
408         - accents
409         - dynamics
410         - account for rhythmic position in measure
411         - etc.
412
413         * grace notes
414         - make separate class for Grace_*_engravers 
415         (which is at Voice_gravs level)
416         - make encapsulated spacing problems.
417
418         * accidentals per Voice_group
419
420         * Output class, handles : (smallish)
421         - help text /(c) notice?
422         - version line
423         - warning /errors/progress
424         - abort on error/warning; exit status
425         - quiet/ignore-version options
426         - logfile output
427
428         * piano staff
429
430         * elaborate Staff_side baseclass:
431         - scripts
432         - text
433         - slur start/end
434
435         * PS 
436         - speed up PS code.
437         - PS lines to .eps files
438         - write custom prolog
439
440
441         * Output an output format independent (ofi) typeset file; and 
442           make ofi2 TeX, MusiXTex, Display PostScript, PostScript,
443           Ascii... interpreters. (difficult)
444
445         - NIFF ?
446         - Common Music Notation
447         - PostScript output (esp. Beams, Slurs, etc)
448         - Move all Score_elems, into libmutype.a
449         - SGML
450
451         * Documentation
452         - Doc (C) stuff of sheet music
453         - a better format?  SGML?  TeX?  Info?
454         - a better tutorial
455
456         * more spanners (smallish)
457         - Glissando
458         - trill
459
460         * Rewrite Stem, Beam and Rhythmic_grouping (hairy)
461         - [c8. c32 c32]
462         - doc on Rhythmic_grouping
463         - general shaving on Beam and Stem
464         - use plet grouping
465         - separate visual from rhythmic info even more
466         - beams over bars
467
468         * lines:
469         - Ledger lines, should be separate item: Ledger_lines, Ledger_lines
470         - set different line sizes / thicknesses
471         - beam stem showthrough, inter beam sizes (french vs german style)
472
473         * Collisions
474         - left/right note balls should be handled by Collision:
475         < \multi 2; { \stem 1; <b c> } { <f as b> } >
476
477         * Keys:
478         - merge key{item} & localkey{item}?
479         - spacing, national styles?
480
481         * Support for TAB
482         - redo Notehead to allow digits as heads
483         - add a \tablature {} lexer mode for easy entering
484
485         * should adjust stemlength for flag number.
486
487         * breaking:
488         - caching breakpoints
489         - saving them
490         - specify number of lines
491
492         * markers
493
494 INPUTLANGUAGE
495
496         * c4 4 4 4 for c4 c4 c4 c4?
497
498         * neatly (and readably) expressing concurrent
499         voices
500
501         * <c f a>4 ?
502
503         * Viola mode?
504
505                 @c c g e g 
506         for
507                 c g es g, 
508
509                 @A c g e g
510         for
511                 cis gis e gis
512
513         * relative mode for pitch entering
514
515         * configure pitch_byte
516
517         * rest name configurable
518
519 SMALLISH PROJECTS
520
521         * limit memory usage; the full coriolan takes up too much resources.
522
523         * fix confusing naming in Engraver vs Engraver_group_engraver (context)
524
525         * progress when creating MIDI elts.
526
527         * A range for context errors (eg. mark both { and }. )
528
529         * lyric in staff  (sharpsharp in staff, text below)
530
531         * half sharps/flats
532
533         * write Dynamic_line (to group dynamics horizontally)
534
535         * use Real for all y positions.
536         - use translate_axis( .. ,Y_AXIS)  iso separate variables.
537
538         * half-sharps, half-flats
539
540         * adaptive accidental spacing.
541
542         * handle EOF graciously in error messages.
543
544         * centered whole rest
545
546         * declare notenametab?
547
548         * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
549
550         * Flower types:
551         - A decent scalar type
552
553         * stafftypes: voice names/ instrument names.
554
555         * lily \tempo
556
557         * C meter iso 4/4, idem for alla breve, etc.
558
559         * textspanner: center position
560
561         *   % toe to bheel   four to five
562             %   ^_u            4_5  
563             %     -                           
564             %  --|x--         --|x--
565             %  --|---         --|---
566             %  --|---         --|---
567           (where "to" is a tiny bow)
568
569         * auxilliary file for caching info.
570
571         * Text_crescendo
572
573         * clean solution for staffsize in items.
574
575         * revise calcideal
576
577 IDEAS
578
579         * Output data structures of Mudela in XML/SGML.
580
581         * create libmudela, or liblily_frontend
582
583         * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
584
585         * use an embedded language: Python, Scheme
586         for:
587                 - Score_elems
588                 - Translators
589
590         * y -dims in internote? Staff-space? X-dimensions?
591
592         * Spacing_request for manually adjusting spacing
593
594         * caching breakpoints
595
596         * used fixedpoint arithmetic for min. energy.
597
598         * move towards incremental algorithms.
599
600         * far fetched language ideas
601         - design meta-language like TeX and Metafont
602         - programming/macros input
603
604         * versioning stuff (cvt mudela, mudela, etc.)
605
606         * Klavarskribo?
607
608         * dynamic loading of engravers? 
609
610 SMOBS:
611
612 ****************************************
613 Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
614
615 > mcmanus@IDT.NET writes:
616 > > > I want different C++ objects (with scheme embedded) to be linked by
617 > > > C++ pointers.  I want to access these other objects from the Scheme
618 > > > code, and I want access to these pointers from C++.
619 > > 
620 > > You can do this with a  combination of smob's and primitive functions,
621 > > though it may not be  be exactly what you wanted.   You would have one
622 > > smob  for each class in  your application, and then  you would write a
623 > > primitive function that would return the objects  that are linked to a
624 > > base object.
625
626 > And the smob and the C++ class are interlinked?  Like
627
628 >       class Foo_class {
629 >               Foo_smob *smob_ptr_;
630 >       }
631
632 >       struct Foo_smob {
633 >               Foo_class *class_ptr_
634 >       }
635
636 Usually you can get away without having this interlinked structure.
637 One piece of information you need when exporting objects to scheme is
638 the smob tag for your class.  You might store this value (a long) into
639 a class static variable, or a file static variable.  I'll use a class
640 static variable in this example.
641
642 I typically use code that works like this (untested code ahead):
643
644 class Foo_class {
645     static long *Foo_smob_tag;
646     SCM obj; // representation as a scheme object, description comes later
647 }
648
649 // call this once on startup
650 void init_Foo_class {
651     static scm_smobfuns type_rec;
652
653     type_rec.mark = foo_mark;
654     type_rec.free = foo_free;
655     type_rec.print = foo_display;
656     type_rec.equalp = 0;
657     Foo_class::Foo_smob_tag = new int(scm_new_smob(type_rec));
658 }
659
660 When you want to export an object to scheme, you put a pointer to the
661 object itself in the cdr of the cell, and the tag in the car of the
662 cell.  The code looks like this:
663
664 // Is this a Foo?
665 static int
666 foo_p(SCM obj)
667 {
668     return(SCM_NIMP(obj) && SCM_CAR(obj) == Foo_class::Foo_smob_tag);
669 }
670
671 // given a Scheme representation, return, a C++ representation
672 static Foo_class *
673 foo_unbox(SCM obj)
674 {
675     return((Foo_class*)SCM_CDR(obj));
676 }
677
678 // the SCM representation of the object is stored inside itself
679 // this will become useful when destructor gets called
680 static SCM
681 foo_box(Foo_class *foo)
682 {
683     SCM_DEFER_INTS;
684     SCM_NEWCELL(foo->obj);
685     SCM_SETCAR(foo->obj, Foo_class::Foo_smob_tag);
686     SCM_SETCDR(foo->obj, (SCM)foo);
687     SCM_ALLOW_INTS;
688     return foo->obj;
689 }
690
691 > C++ determines life time, so what is the strategy?
692
693 What happens now when the destructor gets called?  Lets set the cdr to
694 NULL, and then check for that in all of the primitive functions that
695 use your smob.  We'll call this notion 'live'; a scheme object is
696 'live' if the C++ representation still exists, it's dead if the C++
697 object is gone.  You can still have references to dead objects in
698 scheme code; it's just an error to use them.  This idea is stolen from
699 Emacs's handling of buffers ('buffer-live-p' and friends).
700
701 Add another function, foo_live_p:
702
703 static int
704 foo_live_p(SCM obj)
705 {
706     return(foo_p(obj) && SCM_CDR(obj) != NULL);
707 }
708
709 In you destructor, you need to do:
710
711 ~Foo_class()
712 {
713     SCM_CDR(this->obj, NULL);
714 }
715
716 When writing new primitives, now just check foo_live_p().
717
718 I hope the above helps,
719
720 -russ
721
722
723 --
724 "Even if you are on the right track, you'll get run over 
725 if you just sit there."  
726              --Will Rogers (1879-1935)
727
728 ***************************