1 Features you cannot find in the doco as working, should be mentioned here.
3 This is an assorted collection of stuff that will be done, might be
4 done, or is an idea that I want to think about
6 Most of the items are marked in the code as well, with full explanation.
7 grep for TODO and ugh/ugr/urg
16 * fix height of / collisions with lyrics (chords),
17 see input/test/vertical-text.ly
20 - one volta spanner per score
21 - repeat bars span staffs
22 - placement alternative number
24 * latex bla.tex broken (titles / \lilyfooter stuff?)
28 * \breathmark TeX macro
30 * configure error if GUILE 1.3 not found
32 * configure error if no rtti (gcc 2.8 or egcs-1.1)
36 * add new glyphs to font.ly
38 * formatting of input stuff.
40 * \notes{ a \< b \cr } vs \notes{ a \< b \! }
42 * if possible, it might be nice for a warning to appear if someone does
43 \translator with no name and without assigning it to an
48 * \type Voice \times 2/3 { [c8 c16 c16 c16 c16] }
50 * fix singleStaffBracket
52 * repeat bars: need distance after ":|" and before "|:"
54 Summary of minor spelling irregularities:
55 - capitalization/use of underscores in property names
57 * fix SkipBars -> skipBars
59 * \shape 1st dim skipped?
61 * fix marks/barnumbers/marginal notes
64 lbheel = \script { "bheel" 0 0 -1 0 0 }
65 rbheel = \script { "bheel" 0 0 1 0 0 }
66 lbtoe = \script { "btoe" 0 0 -1 0 0 }
67 rbtoe = \script { "btoe" 0 0 1 0 0 }
68 lfheel = \script { "fheel" 0 0 -1 0 0 }
69 rfheel = \script { "fheel" 0 0 1 0 0 }
70 lftoe = \script { "ftoe" 0 0 -1 0 0 }
71 rftoe = \script { "ftoe" 0 0 1 0 0 }
75 portato= \script { "portato" 0 -1 0 1 0 }
78 * uniformise recent feta contributions.
80 * check out legal/(c) matters for scores.
82 * check out GCC signatures?
84 * Align_element::padding ?
86 * uniformise property names.
88 * ydirection <-> yDirection
90 * typo checks on property names?
92 * use streambufs and iostream
93 to provide IO handling for TeX stream, mudela stream, data-file.
95 * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
97 * strip EXEs before installing
99 * zip target for binary windows dist (JBR)
101 * junking \skip req in lyrics
104 - \type -> \context ?
108 - mix engraver hacking with music ?
109 - \once\property KEY = VAL
110 - \addtranslator, \removetranslator
111 - junk ^ and _ for scripts
115 * percussion note heads
117 * mi2mu empty staffs.
119 * midi_instrument -> midiInstrument
121 * horizontal centering of dynamics
123 * \font\fontA=feta20.afm (.afm?)
127 * stable make/config stuff
129 * $DEPENDENCIES_OUTPUT support
133 * fix weird behaviour when .AFMs/.SCMs not found.
135 * Xdvi zooming ?! Try to understand GS garbage collection.
136 gs: Error: /undefined in draw_beam
139 * fix vertical alignment and stafflines
141 * GrandStaff needs more work -- I want a single word
142 `harpsichord' to the left of the grandstaff, not one on each
143 stave. (Organ staff -- with separate pedal -- but common
144 properties may be something to think about. Of course for
145 organ you want to be able to give stop indications on the way
146 through, so the \property Voice.Instrument would be a stop,
147 and \property GrandStaff.instrument would be PipeOrgan...)
149 * revise the Score_priority_align_engraver concept. It sucks.
151 * make new VoiceOne, VoiceTwo, VoiceThree contexts with
152 ydirection and hshift preset
154 * *.yo: fix pod manpage layout legacy
156 * text-items clash with stems/beams
158 * --include, -I option for ly2dvi (pass on to lily)
160 * fix placement of beam-less abbrev
163 <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
164 {\voicetwo cis,4 r r | r2. | r1 }> |
167 * try to use template<Type> iso MACRO(Type)
169 - NEWS: ... Musical_pitch (analogous to Duration and Rhythmic_req)
170 think about, analogous to pitch:
171 * { a4 a16 } c <-- duration of c?
172 * <a4 b8> c <-- duration of c?
176 * fix audio-items (don't use (input) requests, but copy data)
178 * make sure all ex's have a mudela-version
180 * do rest-collisions for Multi_measure_rests as well.
182 * split error/warning in error/warning/non_fatal_error
184 * add a Duration_convert member to Duration_iter to set parameters.
185 Junk global duration settings.
189 * minimum length second part broken tie
191 * en-,discouraged linebreaking:
192 - handle DISALLOW < penalty > FORCE
193 - discourage breaking of slurs
198 * fix variable define/lookup parser global<->paper
200 * fix title/instrument placements; see input/test/title.ly
202 * <\voiceone c4. \voicetwo c4>
204 * add full cello suites to web site (kom op, Maarten!)
206 * Rethink Time_description
207 * \cadenza , \meter, \grouping should all be \properties
212 - abbreviation-beam -> (measured/unmeasured) tremolo
213 - partial -> anacrouse
217 * robustify Beam (in case of no stems, 32nd notes)
219 * decentralised spring factory
221 * move paper vars into engraver properties
223 * check for groff / troff/ nroff et
225 * more intelligent file searching
226 - make LilyPond RPM fully relocatable
229 - break-up heavily-nested score blocks
231 * disable spaces in TeX stuff
233 * handle ^C for tmp/file creation.
236 * dots & rest collisions.
244 * versioning for Feta
246 * the warning about the negative slur/tie length appears twice
249 * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
252 * the bracket is ugly (wings are too parabolic, should be more circular)
254 * better hshift (dots, distance, head dependent)
256 * clefs (AG): The "8" should appear closer to the actual clef,
259 * put errorlevel in Input class
263 * integrate midi-elts from mi2mu and lily?
266 FMR: Free memory read:
267 * This is occurring while in:
268 Bar_column::do_substitute_dependency(Score_element*,Score_element*) [bar
270 Score_element::unlink() [score-elem.cc:383]
271 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
273 Paper_score::calc_breaking() [p-score.cc:189]
274 Paper_score::process() [p-score.cc:203]
275 Score::run_translator(Music_output_def*) [score.cc:117]
276 * Reading 4 bytes from 0x65d3a0 in the heap.
277 * Address 0x65d3a0 is 160 bytes into a freed block at 0x65d300 of 208 bytes.
278 * This block was allocated from:
280 __builtin_new [libgcc.a]
281 Span_score_bar::clone()const [span-score-bar.hh:20]
282 Item::copy_breakable_items() [item.cc:69]
283 Item::do_breakable_col_processing() [item.cc:89]
284 Score_element::calcalute_dependencies(int,int,void(Score_element::*)()*)
286 * There have been 22 frees since this block was freed from:
288 __builtin_delete [libgcc.a]
289 Span_score_bar::~Span_score_bar() [span-score-bar.hh:18]
290 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
292 Paper_score::calc_breaking() [p-score.cc:189]
293 Paper_score::process() [p-score.cc:203]
294 Postprocessing elements...
295 TeX output to score-bar-scripts.tex...
300 * make GCC warn about ctor that leaves member vars uninitialised.
302 * redhat (v?) graphical install bomb-out?
304 * GNU diff 2.7: diff -rN does not see a new directory with empty file
306 * GNU patch 2.1: <must find simple example> if patch chokes on a
307 hunk, or on allegedly unsorted hunks in a diff, it may stop
308 without a trace of failure (create .rej file, print error or
309 dump core) and just ignore any further diffs.
313 f = fopen ("/dev/null", "r")
318 * GNU indent: handle C++
321 - 'double-fix' mode: ignore identical fix, rather than suggest
322 to revert patch direction when (more or less? exactly) the same
328 - fix position of bar number
329 - stack scripts in chords:
330 % fingering: footing:
331 < a-4 c-2 g-1 > < c-\ltoe e-\lheel >
333 - slur parts as a script
334 - stack parameterised scripts for fingering and footing:
337 - automatically add a \version if not present.
340 - convert-mudela -e empty.ly
343 - should handle block comments too.
344 - handle lexer modes (\header, \melodic, \lyric) etc.
347 - fontlock: \melodic \melodic
349 * use properties for:
354 - bartypes (get rid of derived Span_bar_engravers)
359 - optimal pagebreaking.
361 * Unicode support? -> man 7 unicode
364 - detect of 16/8 bit files
365 - examples to go with it.
368 - write a faster Spring_spacer (without matrices if possible)
369 - relate energybound to linelen unitspace fontsize etc.
370 - used fixed point fp?
373 - output header info to MIDI too.
375 * a musical dictionary. See Documentation/vocabulary-*, other
385 - guitar chords (fret diagrams)
386 - other chord name styles (american(?) style)
391 - derive lily_stream, Dstream, texstream from ostream?
392 - indentable stream as baseclass for TeX stream, lily stream, Dstream.
393 - use dstream feature in mi2mu
394 - integrate IO checking into stream class
401 * add to MIDI output:
403 - ornaments (and trills?)
408 - account for rhythmic position in measure
412 - make separate class for Grace_*_engravers
413 (which is at Voice_gravs level)
414 - make encapsulated spacing problems.
416 * accidentals per Voice_group
418 * Output class, handles : (smallish)
419 - help text /(c) notice?
421 - warning /errors/progress
422 - abort on error/warning; exit status
423 - quiet/ignore-version options
428 * elaborate Staff_side baseclass:
435 - PS lines to .eps files
436 - write custom prolog
439 * Output an output format independent (ofi) typeset file; and
440 make ofi2 TeX, MusiXTex, Display PostScript, PostScript,
441 Ascii... interpreters. (difficult)
444 - Common Music Notation
445 - PostScript output (esp. Beams, Slurs, etc)
446 - Move all Score_elems, into libmutype.a
450 - Doc (C) stuff of sheet music
451 - a better format? SGML? TeX? Info?
454 * more spanners (smallish)
458 * Rewrite Stem, Beam and Rhythmic_grouping (hairy)
460 - doc on Rhythmic_grouping
461 - general shaving on Beam and Stem
463 - separate visual from rhythmic info even more
467 - Ledger lines, should be separate item: Ledger_lines, Ledger_lines
468 - set different line sizes / thicknesses
469 - beam stem showthrough, inter beam sizes (french vs german style)
472 - left/right note balls should be handled by Collision:
473 < \multi 2; { \stem 1; <b c> } { <f as b> } >
476 - merge key{item} & localkey{item}?
477 - spacing, national styles?
480 - redo Notehead to allow digits as heads
481 - add a \tablature {} lexer mode for easy entering
483 * should adjust stemlength for flag number.
486 - caching breakpoints
488 - specify number of lines
494 * c4 4 4 4 for c4 c4 c4 c4?
496 * neatly (and readably) expressing concurrent
511 * relative mode for pitch entering
513 * configure pitch_byte
515 * rest name configurable
519 * limit memory usage; the full coriolan takes up too much resources.
521 * fix confusing naming in Engraver vs Engraver_group_engraver (context)
523 * progress when creating MIDI elts.
525 * A range for context errors (eg. mark both { and }. )
527 * lyric in staff (sharpsharp in staff, text below)
531 * write Dynamic_line (to group dynamics horizontally)
533 * use Real for all y positions.
534 - use translate_axis( .. ,Y_AXIS) iso separate variables.
536 * half-sharps, half-flats
538 * adaptive accidental spacing.
540 * handle EOF graciously in error messages.
542 * centered whole rest
544 * declare notenametab?
546 * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
549 - A decent scalar type
551 * stafftypes: voice names/ instrument names.
555 * C meter iso 4/4, idem for alla breve, etc.
557 * textspanner: center position
559 * % toe to bheel four to five
565 (where "to" is a tiny bow)
567 * auxilliary file for caching info.
571 * clean solution for staffsize in items.
577 * Output data structures of Mudela in XML/SGML.
579 * create libmudela, or liblily_frontend
581 * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
583 * use an embedded language: Python, Scheme
588 * y -dims in internote? Staff-space? X-dimensions?
590 * Spacing_request for manually adjusting spacing
592 * caching breakpoints
594 * used fixedpoint arithmetic for min. energy.
596 * move towards incremental algorithms.
598 * far fetched language ideas
599 - design meta-language like TeX and Metafont
600 - programming/macros input
602 * versioning stuff (cvt mudela, mudela, etc.)
606 * dynamic loading of engravers?
610 ****************************************
611 Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
613 > mcmanus@IDT.NET writes:
614 > > > I want different C++ objects (with scheme embedded) to be linked by
615 > > > C++ pointers. I want to access these other objects from the Scheme
616 > > > code, and I want access to these pointers from C++.
618 > > You can do this with a combination of smob's and primitive functions,
619 > > though it may not be be exactly what you wanted. You would have one
620 > > smob for each class in your application, and then you would write a
621 > > primitive function that would return the objects that are linked to a
624 > And the smob and the C++ class are interlinked? Like
627 > Foo_smob *smob_ptr_;
631 > Foo_class *class_ptr_
634 Usually you can get away without having this interlinked structure.
635 One piece of information you need when exporting objects to scheme is
636 the smob tag for your class. You might store this value (a long) into
637 a class static variable, or a file static variable. I'll use a class
638 static variable in this example.
640 I typically use code that works like this (untested code ahead):
643 static long *Foo_smob_tag;
644 SCM obj; // representation as a scheme object, description comes later
647 // call this once on startup
648 void init_Foo_class {
649 static scm_smobfuns type_rec;
651 type_rec.mark = foo_mark;
652 type_rec.free = foo_free;
653 type_rec.print = foo_display;
655 Foo_class::Foo_smob_tag = new int(scm_new_smob(type_rec));
658 When you want to export an object to scheme, you put a pointer to the
659 object itself in the cdr of the cell, and the tag in the car of the
660 cell. The code looks like this:
666 return(SCM_NIMP(obj) && SCM_CAR(obj) == Foo_class::Foo_smob_tag);
669 // given a Scheme representation, return, a C++ representation
673 return((Foo_class*)SCM_CDR(obj));
676 // the SCM representation of the object is stored inside itself
677 // this will become useful when destructor gets called
679 foo_box(Foo_class *foo)
682 SCM_NEWCELL(foo->obj);
683 SCM_SETCAR(foo->obj, Foo_class::Foo_smob_tag);
684 SCM_SETCDR(foo->obj, (SCM)foo);
689 > C++ determines life time, so what is the strategy?
691 What happens now when the destructor gets called? Lets set the cdr to
692 NULL, and then check for that in all of the primitive functions that
693 use your smob. We'll call this notion 'live'; a scheme object is
694 'live' if the C++ representation still exists, it's dead if the C++
695 object is gone. You can still have references to dead objects in
696 scheme code; it's just an error to use them. This idea is stolen from
697 Emacs's handling of buffers ('buffer-live-p' and friends).
699 Add another function, foo_live_p:
704 return(foo_p(obj) && SCM_CDR(obj) != NULL);
707 In you destructor, you need to do:
711 SCM_CDR(this->obj, NULL);
714 When writing new primitives, now just check foo_live_p().
716 I hope the above helps,
722 "Even if you are on the right track, you'll get run over
723 if you just sit there."
724 --Will Rogers (1879-1935)
726 ***************************