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?)
46 * \breathmark TeX macro
50 * add new glyphs to font.ly
52 * formatting of input stuff.
54 * \notes{ a \< b \cr } vs \notes{ a \< b \! }
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
62 * \type Voice \times 2/3 { [c8 c16 c16 c16 c16] }
64 * fix singleStaffBracket
66 * repeat bars: need distance after ":|" and before "|:"
68 Summary of minor spelling irregularities:
69 - capitalization/use of underscores in property names
71 * fix SkipBars -> skipBars
73 * \shape 1st dim skipped?
75 * fix marks/barnumbers/marginal notes
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 }
89 portato= \script { "portato" 0 -1 0 1 0 }
92 * uniformise recent feta contributions.
94 * check out legal/(c) matters for scores.
96 * check out GCC signatures?
98 * Align_element::padding ?
100 * uniformise property names.
102 * ydirection <-> yDirection
104 * typo checks on property names?
106 * use streambufs and iostream
107 to provide IO handling for TeX stream, mudela stream, data-file.
109 * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
111 * strip EXEs before installing
113 * zip target for binary windows dist (JBR)
115 * junking \skip req in lyrics
118 - \type -> \context ?
122 - mix engraver hacking with music ?
123 - \once\property KEY = VAL
124 - \addtranslator, \removetranslator
125 - junk ^ and _ for scripts
129 * percussion note heads
131 * mi2mu empty staffs.
133 * midi_instrument -> midiInstrument
135 * horizontal centering of dynamics
137 * \font\fontA=feta20.afm (.afm?)
141 * stable make/config stuff
143 * $DEPENDENCIES_OUTPUT support
145 * fix weird behaviour when .AFMs/.SCMs not found.
147 * Xdvi zooming ?! Try to understand GS garbage collection.
148 gs: Error: /undefined in draw_beam
151 * fix vertical alignment and stafflines
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...)
161 * revise the Score_priority_align_engraver concept. It sucks.
163 * make new VoiceOne, VoiceTwo, VoiceThree contexts with
164 ydirection and hshift preset
166 * *.yo: fix pod manpage layout legacy
168 * text-items clash with stems/beams
170 * --include, -I option for ly2dvi (pass on to lily)
172 * fix placement of beam-less abbrev
175 <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
176 {\voicetwo cis,4 r r | r2. | r1 }> |
179 * try to use template<Type> iso MACRO(Type)
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?
188 * fix audio-items (don't use (input) requests, but copy data)
190 * make sure all ex's have a mudela-version
192 * do rest-collisions for Multi_measure_rests as well.
194 * split error/warning in error/warning/non_fatal_error
196 * add a Duration_convert member to Duration_iter to set parameters.
197 Junk global duration settings.
201 * minimum length second part broken tie
203 * en-,discouraged linebreaking:
204 - handle DISALLOW < penalty > FORCE
205 - discourage breaking of slurs
210 * fix variable define/lookup parser global<->paper
212 * fix title/instrument placements; see input/test/title.ly
214 * <\voiceone c4. \voicetwo c4>
216 * add full cello suites to web site (kom op, Maarten!)
218 * Rethink Time_description
219 * \cadenza , \meter, \grouping should all be \properties
224 - abbreviation-beam -> (measured/unmeasured) tremolo
225 - partial -> anacrouse
229 * robustify Beam (in case of no stems, 32nd notes)
231 * decentralised spring factory
233 * move paper vars into engraver properties
235 * check for groff / troff/ nroff et
237 * more intelligent file searching
238 - make LilyPond RPM fully relocatable
241 - break-up heavily-nested score blocks
243 * disable spaces in TeX stuff
245 * handle ^C for tmp/file creation.
248 * dots & rest collisions.
256 * versioning for Feta
258 * the warning about the negative slur/tie length appears twice
261 * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
264 * the bracket is ugly (wings are too parabolic, should be more circular)
266 * better hshift (dots, distance, head dependent)
268 * clefs (AG): The "8" should appear closer to the actual clef,
271 * put errorlevel in Input class
275 * integrate midi-elts from mi2mu and lily?
278 FMR: Free memory read:
279 * This is occurring while in:
280 Bar_column::do_substitute_dependency(Score_element*,Score_element*) [bar
282 Score_element::unlink() [score-elem.cc:383]
283 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
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:
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::*)()*)
298 * There have been 22 frees since this block was freed from:
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:
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...
312 * make GCC warn about ctor that leaves member vars uninitialised.
314 * redhat (v?) graphical install bomb-out?
316 * GNU diff 2.7: diff -rN does not see a new directory with empty file
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.
325 f = fopen ("/dev/null", "r")
330 * GNU indent: handle C++
333 - 'double-fix' mode: ignore identical fix, rather than suggest
334 to revert patch direction when (more or less? exactly) the same
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 >
345 - slur parts as a script
346 - stack parameterised scripts for fingering and footing:
349 - automatically add a \version if not present.
352 - convert-mudela -e empty.ly
355 - should handle block comments too.
356 - handle lexer modes (\header, \melodic, \lyric) etc.
359 - fontlock: \melodic \melodic
361 * use properties for:
366 - bartypes (get rid of derived Span_bar_engravers)
371 - optimal pagebreaking.
373 * Unicode support? -> man 7 unicode
376 - detect of 16/8 bit files
377 - examples to go with it.
380 - write a faster Spring_spacer (without matrices if possible)
381 - relate energybound to linelen unitspace fontsize etc.
382 - used fixed point fp?
385 - output header info to MIDI too.
387 * a musical dictionary. See Documentation/vocabulary-*, other
397 - guitar chords (fret diagrams)
398 - other chord name styles (american(?) style)
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
413 * add to MIDI output:
415 - ornaments (and trills?)
420 - account for rhythmic position in measure
424 - make separate class for Grace_*_engravers
425 (which is at Voice_gravs level)
426 - make encapsulated spacing problems.
428 * accidentals per Voice_group
430 * Output class, handles : (smallish)
431 - help text /(c) notice?
433 - warning /errors/progress
434 - abort on error/warning; exit status
435 - quiet/ignore-version options
440 * elaborate Staff_side baseclass:
447 - PS lines to .eps files
448 - write custom prolog
451 * Output an output format independent (ofi) typeset file; and
452 make ofi2 TeX, MusiXTex, Display PostScript, PostScript,
453 Ascii... interpreters. (difficult)
456 - Common Music Notation
457 - PostScript output (esp. Beams, Slurs, etc)
458 - Move all Score_elems, into libmutype.a
462 - Doc (C) stuff of sheet music
463 - a better format? SGML? TeX? Info?
466 * more spanners (smallish)
470 * Rewrite Stem, Beam and Rhythmic_grouping (hairy)
472 - doc on Rhythmic_grouping
473 - general shaving on Beam and Stem
475 - separate visual from rhythmic info even more
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)
484 - left/right note balls should be handled by Collision:
485 < \multi 2; { \stem 1; <b c> } { <f as b> } >
488 - merge key{item} & localkey{item}?
489 - spacing, national styles?
492 - redo Notehead to allow digits as heads
493 - add a \tablature {} lexer mode for easy entering
495 * should adjust stemlength for flag number.
498 - caching breakpoints
500 - specify number of lines
506 * c4 4 4 4 for c4 c4 c4 c4?
508 * neatly (and readably) expressing concurrent
523 * relative mode for pitch entering
525 * configure pitch_byte
527 * rest name configurable
531 * limit memory usage; the full coriolan takes up too much resources.
533 * fix confusing naming in Engraver vs Engraver_group_engraver (context)
535 * progress when creating MIDI elts.
537 * A range for context errors (eg. mark both { and }. )
539 * lyric in staff (sharpsharp in staff, text below)
543 * write Dynamic_line (to group dynamics horizontally)
545 * use Real for all y positions.
546 - use translate_axis( .. ,Y_AXIS) iso separate variables.
548 * half-sharps, half-flats
550 * adaptive accidental spacing.
552 * handle EOF graciously in error messages.
554 * centered whole rest
556 * declare notenametab?
558 * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
560 * stafftypes: voice names/ instrument names.
564 * C meter iso 4/4, idem for alla breve, etc.
566 * textspanner: center position
568 * % toe to bheel four to five
574 (where "to" is a tiny bow)
576 * auxilliary file for caching info.
580 * clean solution for staffsize in items.
586 * Output data structures of Mudela in XML/SGML.
588 * create libmudela, or liblily_frontend
590 * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
592 * use an embedded language: Python, Scheme
597 * y -dims in internote? Staff-space? X-dimensions?
599 * Spacing_request for manually adjusting spacing
601 * caching breakpoints
603 * used fixedpoint arithmetic for min. energy.
605 * move towards incremental algorithms.
607 * far fetched language ideas
608 - design meta-language like TeX and Metafont
609 - programming/macros input
611 * versioning stuff (cvt mudela, mudela, etc.)
615 * dynamic loading of engravers?
619 ****************************************
620 Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
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++.
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
633 > And the smob and the C++ class are interlinked? Like
636 > Foo_smob *smob_ptr_;
640 > Foo_class *class_ptr_
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.
649 I typically use code that works like this (untested code ahead):
652 static long *Foo_smob_tag;
653 SCM obj; // representation as a scheme object, description comes later
656 // call this once on startup
657 void init_Foo_class {
658 static scm_smobfuns type_rec;
660 type_rec.mark = foo_mark;
661 type_rec.free = foo_free;
662 type_rec.print = foo_display;
664 Foo_class::Foo_smob_tag = new int(scm_new_smob(type_rec));
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:
675 return(SCM_NIMP(obj) && SCM_CAR(obj) == Foo_class::Foo_smob_tag);
678 // given a Scheme representation, return, a C++ representation
682 return((Foo_class*)SCM_CDR(obj));
685 // the SCM representation of the object is stored inside itself
686 // this will become useful when destructor gets called
688 foo_box(Foo_class *foo)
691 SCM_NEWCELL(foo->obj);
692 SCM_SETCAR(foo->obj, Foo_class::Foo_smob_tag);
693 SCM_SETCDR(foo->obj, (SCM)foo);
698 > C++ determines life time, so what is the strategy?
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).
708 Add another function, foo_live_p:
713 return(foo_p(obj) && SCM_CDR(obj) != NULL);
716 In you destructor, you need to do:
720 SCM_CDR(this->obj, NULL);
723 When writing new primitives, now just check foo_live_p().
725 I hope the above helps,
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)
735 ***************************