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 * who is trying to print too (small/big) piano braces all the time?
25 warning: piano brace too small (16.000pt)
27 * latex bla.tex broken (titles / \lilyfooter stuff?)
31 * \breathmark TeX macro
33 * configure error if GUILE 1.3 not found
35 * configure error if no rtti (gcc 2.8 or egcs-1.1)
39 * add new glyphs to font.ly
41 * formatting of input stuff.
43 * \notes{ a \< b \cr } vs \notes{ a \< b \! }
45 * if possible, it might be nice for a warning to appear if someone does
46 \translator with no name and without assigning it to an
51 * \type Voice \times 2/3 { [c8 c16 c16 c16 c16] }
53 * fix singleStaffBracket
55 * repeat bars: need distance after ":|" and before "|:"
57 * The time signature warnings still remain, will be fixed later.
59 Summary of minor spelling irregularities:
60 - capitalization/use of underscores in property names
62 * fix SkipBars -> skipBars
64 * \shape 1st dim skipped?
66 * fix marks/barnumbers/marginal notes
69 lbheel = \script { "bheel" 0 0 -1 0 0 }
70 rbheel = \script { "bheel" 0 0 1 0 0 }
71 lbtoe = \script { "btoe" 0 0 -1 0 0 }
72 rbtoe = \script { "btoe" 0 0 1 0 0 }
73 lfheel = \script { "fheel" 0 0 -1 0 0 }
74 rfheel = \script { "fheel" 0 0 1 0 0 }
75 lftoe = \script { "ftoe" 0 0 -1 0 0 }
76 rftoe = \script { "ftoe" 0 0 1 0 0 }
80 portato= \script { "portato" 0 -1 0 1 0 }
83 * uniformise recent feta contributions.
85 * check out legal/(c) matters for scores.
87 * check out GCC signatures?
89 * Align_element::padding ?
91 * uniformise property names.
93 * ydirection <-> yDirection
95 * typo checks on property names?
97 * use streambufs and iostream
98 to provide IO handling for TeX stream, mudela stream, data-file.
100 * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
102 * strip EXEs before installing
104 * zip target for binary windows dist (JBR)
106 * junking \skip req in lyrics
109 - \type -> \context ?
113 - mix engraver hacking with music ?
114 - \once\property KEY = VAL
115 - \addtranslator, \removetranslator
116 - junk ^ and _ for scripts
120 * percussion note heads
122 * mi2mu empty staffs.
124 * midi_instrument -> midiInstrument
126 * horizontal centering of dynamics
128 * \font\fontA=feta20.afm (.afm?)
132 * stable make/config stuff
134 * $DEPENDENCIES_OUTPUT support
138 * fix weird behaviour when .AFMs/.SCMs not found.
140 * Xdvi zooming ?! Try to understand GS garbage collection.
141 gs: Error: /undefined in draw_beam
144 * run texhash after installing .tex
146 * fix vertical alignment and stafflines
148 * GrandStaff needs more work -- I want a single word
149 `harpsichord' to the left of the grandstaff, not one on each
150 stave. (Organ staff -- with separate pedal -- but common
151 properties may be something to think about. Of course for
152 organ you want to be able to give stop indications on the way
153 through, so the \property Voice.Instrument would be a stop,
154 and \property GrandStaff.instrument would be PipeOrgan...)
156 * make Tie_req a "command" { <c g> ~ <c g> }
158 * revise the Score_priority_align_engraver concept. It sucks.
160 * make new VoiceOne, VoiceTwo, VoiceThree contexts with
161 ydirection and hshift preset
163 * *.yo: fix pod manpage layout legacy
165 * text-items clash with stems/beams
167 * --include, -I option for ly2dvi (pass on to lily)
169 * fix placement of beam-less abbrev
172 <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
173 {\voicetwo cis,4 r r | r2. | r1 }> |
176 * try to use template<Type> iso MACRO(Type)
178 - NEWS: ... Musical_pitch (analogous to Duration and Rhythmic_req)
179 think about, analogous to pitch:
180 * { a4 a16 } c <-- duration of c?
181 * <a4 b8> c <-- duration of c?
185 * fix audio-items (don't use (input) requests, but copy data)
187 * junk My_lily_parser::abbrev_beam_type_i_
189 * make sure all ex's have a mudela-version
191 * do rest-collisions for Multi_measure_rests as well.
193 * split error/warning in error/warning/non_fatal_error
195 * add a Duration_convert member to Duration_iter to set parameters.
196 Junk global duration settings.
200 * clean up abbrev/plet/beam/abbrevbeam/duration mess in parser.
202 * minimum length second part broken tie
204 * en-,discouraged linebreaking:
205 - handle DISALLOW < penalty > FORCE
206 - discourage breaking of slurs
211 * fix variable define/lookup parser global<->paper
213 * fix title/instrument placements; see input/test/title.ly
215 * <\voiceone c4. \voicetwo c4>
217 * add full cello suites to web site (kom op, Maarten!)
219 * Rethink Time_description
220 * \cadenza , \meter, \grouping should all be \properties
225 - abbreviation-beam -> (measured/unmeasured) tremolo
226 - partial -> anacrouse
230 * robustify Beam (in case of no stems, 32nd notes)
232 * decentralised spring factory
234 * move paper vars into engraver properties
236 * check for groff / troff/ nroff et
238 * more intelligent file searching
239 - make LilyPond RPM fully relocatable
242 - break-up heavily-nested score blocks
244 * disable spaces in TeX stuff
246 * handle ^C for tmp/file creation.
249 * dots & rest collisions.
257 * versioning for Feta
259 * the warning about the negative slur/tie length appears twice
262 * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
265 * the bracket is ugly (wings are too parabolic, should be more circular)
267 * better hshift (dots, distance, head dependent)
269 * clefs (AG): The "8" should appear closer to the actual clef,
272 * put errorlevel in Input class
276 * integrate midi-elts from mi2mu and lily?
279 FMR: Free memory read:
280 * This is occurring while in:
281 Bar_column::do_substitute_dependency(Score_element*,Score_element*) [bar
283 Score_element::unlink() [score-elem.cc:383]
284 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
286 Paper_score::calc_breaking() [p-score.cc:189]
287 Paper_score::process() [p-score.cc:203]
288 Score::run_translator(Music_output_def*) [score.cc:117]
289 * Reading 4 bytes from 0x65d3a0 in the heap.
290 * Address 0x65d3a0 is 160 bytes into a freed block at 0x65d300 of 208 bytes.
291 * This block was allocated from:
293 __builtin_new [libgcc.a]
294 Span_score_bar::clone()const [span-score-bar.hh:20]
295 Item::copy_breakable_items() [item.cc:69]
296 Item::do_breakable_col_processing() [item.cc:89]
297 Score_element::calcalute_dependencies(int,int,void(Score_element::*)()*)
299 * There have been 22 frees since this block was freed from:
301 __builtin_delete [libgcc.a]
302 Span_score_bar::~Span_score_bar() [span-score-bar.hh:18]
303 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
305 Paper_score::calc_breaking() [p-score.cc:189]
306 Paper_score::process() [p-score.cc:203]
307 Postprocessing elements...
308 TeX output to score-bar-scripts.tex...
313 * make GCC warn about ctor that leaves member vars uninitialised.
315 * redhat (v?) graphical install bomb-out?
317 * GNU diff 2.7: diff -rN does not see a new directory with empty file
319 * GNU patch 2.1: <must find simple example> if patch chokes on a
320 hunk, or on allegedly unsorted hunks in a diff, it may stop
321 without a trace of failure (create .rej file, print error or
322 dump core) and just ignore any further diffs.
326 f = fopen ("/dev/null", "r")
331 * GNU indent: handle C++
334 - 'double-fix' mode: ignore identical fix, rather than suggest
335 to revert patch direction when (more or less? exactly) the same
341 - fix position of bar number
342 - stack scripts in chords:
343 % fingering: footing:
344 < a-4 c-2 g-1 > < c-\ltoe e-\lheel >
346 - slur parts as a script
347 - stack parameterised scripts for fingering and footing:
350 - automatically add a \version if not present.
353 - convert-mudela -e empty.ly
356 - should handle block comments too.
357 - handle lexer modes (\header, \melodic, \lyric) etc.
360 - fontlock: \melodic \melodic
362 * use properties for:
367 - bartypes (get rid of derived Span_bar_engravers)
372 - optimal pagebreaking.
374 * Unicode support? -> man 7 unicode
377 - detect of 16/8 bit files
378 - examples to go with it.
381 - write a faster Spring_spacer (without matrices if possible)
382 - relate energybound to linelen unitspace fontsize etc.
383 - used fixed point fp?
386 - output header info to MIDI too.
388 * a musical dictionary. See Documentation/vocabulary-*, other
398 - jazz style inversions C/E => <e g c>
399 - guitar chords (fret diagrams)
400 - other chord name styles (american(?) style)
405 - derive lily_stream, Dstream, texstream from ostream?
406 - indentable stream as baseclass for TeX stream, lily stream, Dstream.
407 - use dstream feature in mi2mu
408 - integrate IO checking into stream class
415 * add to MIDI output:
417 - ornaments (and trills?)
422 - account for rhythmic position in measure
426 - make separate class for Grace_*_engravers
427 (which is at Voice_gravs level)
428 - make encapsulated spacing problems.
430 * accidentals per Voice_group
432 * Output class, handles : (smallish)
433 - help text /(c) notice?
435 - warning /errors/progress
436 - abort on error/warning; exit status
437 - quiet/ignore-version options
442 * elaborate Staff_side baseclass:
449 - PS lines to .eps files
450 - write custom prolog
453 * Output an output format independent (ofi) typeset file; and
454 make ofi2 TeX, MusiXTex, Display PostScript, PostScript,
455 Ascii... interpreters. (difficult)
458 - Common Music Notation
459 - PostScript output (esp. Beams, Slurs, etc)
460 - Move all Score_elems, into libmutype.a
464 - Doc (C) stuff of sheet music
465 - a better format? SGML? TeX? Info?
468 * more spanners (smallish)
472 * Rewrite Stem, Beam and Rhythmic_grouping (hairy)
474 - doc on Rhythmic_grouping
475 - general shaving on Beam and Stem
477 - separate visual from rhythmic info even more
481 - Ledger lines, should be separate item: Ledger_lines, Ledger_lines
482 - set different line sizes / thicknesses
483 - beam stem showthrough, inter beam sizes (french vs german style)
486 - left/right note balls should be handled by Collision:
487 < \multi 2; { \stem 1; <b c> } { <f as b> } >
490 - merge key{item} & localkey{item}?
491 - spacing, national styles?
494 - redo Notehead to allow digits as heads
495 - add a \tablature {} lexer mode for easy entering
497 * should adjust stemlength for flag number.
500 - caching breakpoints
502 - specify number of lines
508 * c4 4 4 4 for c4 c4 c4 c4?
510 * neatly (and readably) expressing concurrent
525 * relative mode for pitch entering
527 * configure pitch_byte
529 * rest name configurable
533 * limit memory usage; the full coriolan takes up too much resources.
535 * fix confusing naming in Engraver vs Engraver_group_engraver (context)
537 * progress when creating MIDI elts.
539 * A range for context errors (eg. mark both { and }. )
541 * lyric in staff (sharpsharp in staff, text below)
545 * write Dynamic_line (to group dynamics horizontally)
547 * use Real for all y positions.
548 - use translate_axis( .. ,Y_AXIS) iso separate variables.
550 * half-sharps, half-flats
552 * adaptive accidental spacing.
554 * handle EOF graciously in error messages.
556 * centered whole rest
558 * declare notenametab?
560 * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
563 - A decent scalar type
565 * stafftypes: voice names/ instrument names.
569 * C meter iso 4/4, idem for alla breve, etc.
571 * textspanner: center position
573 * % toe to bheel four to five
579 (where "to" is a tiny bow)
581 * auxilliary file for caching info.
585 * clean solution for staffsize in items.
591 * Output data structures of Mudela in XML/SGML.
593 * create libmudela, or liblily_frontend
595 * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
597 * use an embedded language: Python, Scheme
602 * y -dims in internote? Staff-space? X-dimensions?
604 * Spacing_request for manually adjusting spacing
606 * caching breakpoints
608 * used fixedpoint arithmetic for min. energy.
610 * move towards incremental algorithms.
612 * far fetched language ideas
613 - design meta-language like TeX and Metafont
614 - programming/macros input
616 * versioning stuff (cvt mudela, mudela, etc.)
620 * dynamic loading of engravers?
624 ****************************************
625 Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
627 > mcmanus@IDT.NET writes:
628 > > > I want different C++ objects (with scheme embedded) to be linked by
629 > > > C++ pointers. I want to access these other objects from the Scheme
630 > > > code, and I want access to these pointers from C++.
632 > > You can do this with a combination of smob's and primitive functions,
633 > > though it may not be be exactly what you wanted. You would have one
634 > > smob for each class in your application, and then you would write a
635 > > primitive function that would return the objects that are linked to a
638 > And the smob and the C++ class are interlinked? Like
641 > Foo_smob *smob_ptr_;
645 > Foo_class *class_ptr_
648 Usually you can get away without having this interlinked structure.
649 One piece of information you need when exporting objects to scheme is
650 the smob tag for your class. You might store this value (a long) into
651 a class static variable, or a file static variable. I'll use a class
652 static variable in this example.
654 I typically use code that works like this (untested code ahead):
657 static long *Foo_smob_tag;
658 SCM obj; // representation as a scheme object, description comes later
661 // call this once on startup
662 void init_Foo_class {
663 static scm_smobfuns type_rec;
665 type_rec.mark = foo_mark;
666 type_rec.free = foo_free;
667 type_rec.print = foo_display;
669 Foo_class::Foo_smob_tag = new int(scm_new_smob(type_rec));
672 When you want to export an object to scheme, you put a pointer to the
673 object itself in the cdr of the cell, and the tag in the car of the
674 cell. The code looks like this:
680 return(SCM_NIMP(obj) && SCM_CAR(obj) == Foo_class::Foo_smob_tag);
683 // given a Scheme representation, return, a C++ representation
687 return((Foo_class*)SCM_CDR(obj));
690 // the SCM representation of the object is stored inside itself
691 // this will become useful when destructor gets called
693 foo_box(Foo_class *foo)
696 SCM_NEWCELL(foo->obj);
697 SCM_SETCAR(foo->obj, Foo_class::Foo_smob_tag);
698 SCM_SETCDR(foo->obj, (SCM)foo);
703 > C++ determines life time, so what is the strategy?
705 What happens now when the destructor gets called? Lets set the cdr to
706 NULL, and then check for that in all of the primitive functions that
707 use your smob. We'll call this notion 'live'; a scheme object is
708 'live' if the C++ representation still exists, it's dead if the C++
709 object is gone. You can still have references to dead objects in
710 scheme code; it's just an error to use them. This idea is stolen from
711 Emacs's handling of buffers ('buffer-live-p' and friends).
713 Add another function, foo_live_p:
718 return(foo_p(obj) && SCM_CDR(obj) != NULL);
721 In you destructor, you need to do:
725 SCM_CDR(this->obj, NULL);
728 When writing new primitives, now just check foo_live_p().
730 I hope the above helps,
736 "Even if you are on the right track, you'll get run over
737 if you just sit there."
738 --Will Rogers (1879-1935)
740 ***************************