1 Features you cannot find in the doco as working, should be mentioned
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
7 Most of the items are marked in the code as well, with full explanation.
8 grep for TODO and ugh/ugr/urg
10 * input/test/extender.ly dumps core
12 * scm-ify \property values.
14 * move class Lookup {} into scm
18 * update mi2mu for lilypond 1.1
24 * ly2dvi barfs on linewidth = -1.
34 * fix height of / collisions with lyrics (chords),
35 see input/test/vertical-text.ly
38 - one volta spanner per score
39 - repeat bars span staffs
40 - placement alternative number
42 * latex bla.tex broken (titles / \lilyfooter stuff?)
44 * check/set minimum slur/tie length
48 * \breathmark TeX macro
52 * add new glyphs to font.ly
54 * formatting of input stuff.
56 * \notes{ a \< b \cr } vs \notes{ a \< b \! }
58 * if possible, it might be nice for a warning to appear if someone does
59 \translator with no name and without assigning it to an
64 * 'hinterfleisch' before bar (e.g. wtk1-fugue2)?
66 * \type Voice \times 2/3 { [c8 c16 c16 c16 c16] }
68 * fix singleStaffBracket
70 * repeat bars: need distance after ":|" and before "|:"
72 Summary of minor spelling irregularities:
73 - capitalization/use of underscores in property names
75 * fix SkipBars -> skipBars
77 * \shape 1st dim skipped?
79 * fix marks/barnumbers/marginal notes
82 lbheel = \script { "bheel" 0 0 -1 0 0 }
83 rbheel = \script { "bheel" 0 0 1 0 0 }
84 lbtoe = \script { "btoe" 0 0 -1 0 0 }
85 rbtoe = \script { "btoe" 0 0 1 0 0 }
86 lfheel = \script { "fheel" 0 0 -1 0 0 }
87 rfheel = \script { "fheel" 0 0 1 0 0 }
88 lftoe = \script { "ftoe" 0 0 -1 0 0 }
89 rftoe = \script { "ftoe" 0 0 1 0 0 }
93 portato= \script { "portato" 0 -1 0 1 0 }
96 * uniformise recent feta contributions.
98 * check out legal/(c) matters for scores.
100 * check out GCC signatures?
102 * Align_element::padding ?
104 * uniformise property names.
106 * ydirection <-> yDirection
108 * typo checks on property names?
110 * use streambufs and iostream
111 to provide IO handling for TeX stream, mudela stream, data-file.
113 * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
115 * strip EXEs before installing
117 * zip target for binary windows dist (JBR)
119 * junking \skip req in lyrics
122 - \type -> \context ?
126 - mix engraver hacking with music ?
127 - \once\property KEY = VAL
128 - \addtranslator, \removetranslator
129 - junk ^ and _ for scripts
133 * percussion note heads
135 * mi2mu empty staffs.
137 * midi_instrument -> midiInstrument
139 * horizontal centering of dynamics
141 * \font\fontA=feta20.afm (.afm?)
145 * stable make/config stuff
147 * $DEPENDENCIES_OUTPUT support
149 * fix weird behaviour when .AFMs/.SCMs not found.
151 * Xdvi zooming ?! Try to understand GS garbage collection.
152 gs: Error: /undefined in draw_beam
155 * fix vertical alignment and stafflines
157 * GrandStaff needs more work -- I want a single word
158 `harpsichord' to the left of the grandstaff, not one on each
159 stave. (Organ staff -- with separate pedal -- but common
160 properties may be something to think about. Of course for
161 organ you want to be able to give stop indications on the way
162 through, so the \property Voice.Instrument would be a stop,
163 and \property GrandStaff.instrument would be PipeOrgan...)
165 * revise the Score_priority_align_engraver concept. It sucks.
167 * make new VoiceOne, VoiceTwo, VoiceThree contexts with
168 ydirection and hshift preset
170 * *.yo: fix pod manpage layout legacy
172 * text-items clash with stems/beams
174 * --include, -I option for ly2dvi (pass on to lily)
176 * fix placement of beam-less abbrev
179 <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
180 {\voicetwo cis,4 r r | r2. | r1 }> |
183 * try to use template<Type> iso MACRO(Type)
185 - NEWS: ... Musical_pitch (analogous to Duration and Rhythmic_req)
186 think about, analogous to pitch:
187 * { a4 a16 } c <-- duration of c?
188 * <a4 b8> c <-- duration of c?
192 * fix audio-items (don't use (input) requests, but copy data)
194 * make sure all ex's have a mudela-version
196 * do rest-collisions for Multi_measure_rests as well.
198 * split error/warning in error/warning/non_fatal_error
200 * add a Duration_convert member to Duration_iter to set parameters.
201 Junk global duration settings.
205 * minimum length second part broken tie
207 * en-,discouraged linebreaking:
208 - handle DISALLOW < penalty > FORCE
209 - discourage breaking of slurs
214 * fix variable define/lookup parser global<->paper
216 * fix title/instrument placements; see input/test/title.ly
218 * <\voiceone c4. \voicetwo c4>
220 * add full cello suites to web site (kom op, Maarten!)
222 * Rethink Time_description
223 * \cadenza , \meter, \grouping should all be \properties
228 - abbreviation-beam -> (measured/unmeasured) tremolo
229 - partial -> anacrouse
233 * robustify Beam (in case of no stems, 32nd notes)
235 * decentralised spring factory
237 * move paper vars into engraver properties
239 * check for groff / troff/ nroff et
241 * more intelligent file searching
242 - make LilyPond RPM fully relocatable
245 - break-up heavily-nested score blocks
247 * disable spaces in TeX stuff
249 * handle ^C for tmp/file creation.
252 * dots & rest collisions.
260 * versioning for Feta
262 * the warning about the negative slur/tie length appears twice
265 * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
268 * the bracket is ugly (wings are too parabolic, should be more circular)
270 * better hshift (dots, distance, head dependent)
272 * clefs (AG): The "8" should appear closer to the actual clef,
275 * put errorlevel in Input class
279 * integrate midi-elts from mi2mu and lily?
282 FMR: Free memory read:
283 * This is occurring while in:
284 Bar_column::do_substitute_dependency(Score_element*,Score_element*) [bar
286 Score_element::unlink() [score-elem.cc:383]
287 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
289 Paper_score::calc_breaking() [p-score.cc:189]
290 Paper_score::process() [p-score.cc:203]
291 Score::run_translator(Music_output_def*) [score.cc:117]
292 * Reading 4 bytes from 0x65d3a0 in the heap.
293 * Address 0x65d3a0 is 160 bytes into a freed block at 0x65d300 of 208 bytes.
294 * This block was allocated from:
296 __builtin_new [libgcc.a]
297 Span_score_bar::clone()const [span-score-bar.hh:20]
298 Item::copy_breakable_items() [item.cc:69]
299 Item::do_breakable_col_processing() [item.cc:89]
300 Score_element::calcalute_dependencies(int,int,void(Score_element::*)()*)
302 * There have been 22 frees since this block was freed from:
304 __builtin_delete [libgcc.a]
305 Span_score_bar::~Span_score_bar() [span-score-bar.hh:18]
306 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
308 Paper_score::calc_breaking() [p-score.cc:189]
309 Paper_score::process() [p-score.cc:203]
310 Postprocessing elements...
311 TeX output to score-bar-scripts.tex...
316 * make GCC warn about ctor that leaves member vars uninitialised.
318 * redhat (v?) graphical install bomb-out?
320 * GNU diff 2.7: diff -rN does not see a new directory with empty file
322 * GNU patch 2.1: <must find simple example> if patch chokes on a
323 hunk, or on allegedly unsorted hunks in a diff, it may stop
324 without a trace of failure (create .rej file, print error or
325 dump core) and just ignore any further diffs.
329 f = fopen ("/dev/null", "r")
334 * GNU indent: handle C++
337 - 'double-fix' mode: ignore identical fix, rather than suggest
338 to revert patch direction when (more or less? exactly) the same
344 - fix position of bar number
345 - stack scripts in chords:
346 % fingering: footing:
347 < a-4 c-2 g-1 > < c-\ltoe e-\lheel >
349 - slur parts as a script
350 - stack parameterised scripts for fingering and footing:
353 - automatically add a \version if not present.
356 - convert-mudela -e empty.ly
359 - should handle block comments too.
360 - handle lexer modes (\header, \melodic, \lyric) etc.
363 - fontlock: \melodic \melodic
365 * use properties for:
370 - bartypes (get rid of derived Span_bar_engravers)
375 - optimal pagebreaking.
377 * Unicode support? -> man 7 unicode
380 - detect of 16/8 bit files
381 - examples to go with it.
384 - write a faster Spring_spacer (without matrices if possible)
385 - relate energybound to linelen unitspace fontsize etc.
386 - used fixed point fp?
389 - output header info to MIDI too.
391 * a musical dictionary. See Documentation/vocabulary-*, other
401 - guitar chords (fret diagrams)
402 - other chord name styles (american(?) style)
407 - derive lily_stream, Dstream, texstream from ostream?
408 - indentable stream as baseclass for TeX stream, lily stream, Dstream.
409 - use dstream feature in mi2mu
410 - integrate IO checking into stream class
417 * add to MIDI output:
419 - ornaments (and trills?)
424 - account for rhythmic position in measure
428 - make separate class for Grace_*_engravers
429 (which is at Voice_gravs level)
430 - make encapsulated spacing problems.
432 * accidentals per Voice_group
434 * Output class, handles : (smallish)
435 - help text /(c) notice?
437 - warning /errors/progress
438 - abort on error/warning; exit status
439 - quiet/ignore-version options
444 * elaborate Staff_side baseclass:
451 - PS lines to .eps files
452 - write custom prolog
455 * Output an output format independent (ofi) typeset file; and
456 make ofi2 TeX, MusiXTex, Display PostScript, PostScript,
457 Ascii... interpreters. (difficult)
460 - Common Music Notation
461 - PostScript output (esp. Beams, Slurs, etc)
462 - Move all Score_elems, into libmutype.a
466 - Doc (C) stuff of sheet music
467 - a better format? SGML? TeX? Info?
470 * more spanners (smallish)
474 * Rewrite Stem, Beam and Rhythmic_grouping (hairy)
476 - doc on Rhythmic_grouping
477 - general shaving on Beam and Stem
479 - separate visual from rhythmic info even more
483 - Ledger lines, should be separate item: Ledger_lines, Ledger_lines
484 - set different line sizes / thicknesses
485 - beam stem showthrough, inter beam sizes (french vs german style)
488 - left/right note balls should be handled by Collision:
489 < \multi 2; { \stem 1; <b c> } { <f as b> } >
492 - merge key{item} & localkey{item}?
493 - spacing, national styles?
496 - redo Notehead to allow digits as heads
497 - add a \tablature {} lexer mode for easy entering
499 * should adjust stemlength for flag number.
502 - caching breakpoints
504 - specify number of lines
510 * c4 4 4 4 for c4 c4 c4 c4?
512 * neatly (and readably) expressing concurrent
527 * relative mode for pitch entering
529 * configure pitch_byte
531 * rest name configurable
535 * limit memory usage; the full coriolan takes up too much resources.
537 * fix confusing naming in Engraver vs Engraver_group_engraver (context)
539 * progress when creating MIDI elts.
541 * A range for context errors (eg. mark both { and }. )
543 * lyric in staff (sharpsharp in staff, text below)
547 * write Dynamic_line (to group dynamics horizontally)
549 * use Real for all y positions.
550 - use translate_axis( .. ,Y_AXIS) iso separate variables.
552 * half-sharps, half-flats
554 * adaptive accidental spacing.
556 * handle EOF graciously in error messages.
558 * centered whole rest
560 * declare notenametab?
562 * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
564 * stafftypes: voice names/ instrument names.
568 * C meter iso 4/4, idem for alla breve, etc.
570 * textspanner: center position
572 * % toe to bheel four to five
578 (where "to" is a tiny bow)
580 * auxilliary file for caching info.
584 * clean solution for staffsize in items.
590 * Output data structures of Mudela in XML/SGML.
592 * create libmudela, or liblily_frontend
594 * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
596 * use an embedded language: Python, Scheme
601 * y -dims in internote? Staff-space? X-dimensions?
603 * Spacing_request for manually adjusting spacing
605 * caching breakpoints
607 * used fixedpoint arithmetic for min. energy.
609 * move towards incremental algorithms.
611 * far fetched language ideas
612 - design meta-language like TeX and Metafont
613 - programming/macros input
615 * versioning stuff (cvt mudela, mudela, etc.)
619 * dynamic loading of engravers?
623 ****************************************
624 Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
626 > mcmanus@IDT.NET writes:
627 > > > I want different C++ objects (with scheme embedded) to be linked by
628 > > > C++ pointers. I want to access these other objects from the Scheme
629 > > > code, and I want access to these pointers from C++.
631 > > You can do this with a combination of smob's and primitive functions,
632 > > though it may not be be exactly what you wanted. You would have one
633 > > smob for each class in your application, and then you would write a
634 > > primitive function that would return the objects that are linked to a
637 > And the smob and the C++ class are interlinked? Like
640 > Foo_smob *smob_ptr_;
644 > Foo_class *class_ptr_
647 Usually you can get away without having this interlinked structure.
648 One piece of information you need when exporting objects to scheme is
649 the smob tag for your class. You might store this value (a long) into
650 a class static variable, or a file static variable. I'll use a class
651 static variable in this example.
653 I typically use code that works like this (untested code ahead):
656 static long *Foo_smob_tag;
657 SCM obj; // representation as a scheme object, description comes later
660 // call this once on startup
661 void init_Foo_class {
662 static scm_smobfuns type_rec;
664 type_rec.mark = foo_mark;
665 type_rec.free = foo_free;
666 type_rec.print = foo_display;
668 Foo_class::Foo_smob_tag = new int(scm_new_smob(type_rec));
671 When you want to export an object to scheme, you put a pointer to the
672 object itself in the cdr of the cell, and the tag in the car of the
673 cell. The code looks like this:
679 return(SCM_NIMP(obj) && SCM_CAR(obj) == Foo_class::Foo_smob_tag);
682 // given a Scheme representation, return, a C++ representation
686 return((Foo_class*)SCM_CDR(obj));
689 // the SCM representation of the object is stored inside itself
690 // this will become useful when destructor gets called
692 foo_box(Foo_class *foo)
695 SCM_NEWCELL(foo->obj);
696 SCM_SETCAR(foo->obj, Foo_class::Foo_smob_tag);
697 SCM_SETCDR(foo->obj, (SCM)foo);
702 > C++ determines life time, so what is the strategy?
704 What happens now when the destructor gets called? Lets set the cdr to
705 NULL, and then check for that in all of the primitive functions that
706 use your smob. We'll call this notion 'live'; a scheme object is
707 'live' if the C++ representation still exists, it's dead if the C++
708 object is gone. You can still have references to dead objects in
709 scheme code; it's just an error to use them. This idea is stolen from
710 Emacs's handling of buffers ('buffer-live-p' and friends).
712 Add another function, foo_live_p:
717 return(foo_p(obj) && SCM_CDR(obj) != NULL);
720 In you destructor, you need to do:
724 SCM_CDR(this->obj, NULL);
727 When writing new primitives, now just check foo_live_p().
729 I hope the above helps,
735 "Even if you are on the right track, you'll get run over
736 if you just sit there."
737 --Will Rogers (1879-1935)
739 ***************************