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