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