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