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