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