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
11 * decimal point in \paper {}
13 > I have changed Mark_engraver to use the G_... classes.
14 > My implementation has the following shortcomings at the
17 > - markScriptPadding is not supported, since G_staff_side_item does not
20 > - markBreakPriority is not supported.
22 > - Mostly, you want the marks aligned with the bar lines. I don't
23 > really understand how to implement that feature.
25 > - You get lots of warnings about missing 'number' and 'Large'
28 *{ \voiceone <a'4.*2/3 d''4.*2/3 fis''4.*2/3> [g''8 fis'' e''] d''4 |}
30 { \voicetwo d'4 d'2.*2/3 } spacing
34 * sharp /flat on trills (in MIDI ??)
36 * scm-ify \property values.
37 - The direction of textual scripts ('^' or '_') is ignored.
38 * move class Lookup {} into scm
42 * update mi2mu for lilypond 1.1
45 * collisions/voices \voiceone \voicetwo are broken; see
46 input/praeludium-fuga-E.ly
47 mutopia/J.S.Bach/wtk1-fugue2.ly
53 * fix: text on rests: rediculous dims
57 * fix fingering 'a-5': font direction broken *again*
61 * multibar rests: SkipBars=0
63 * ly2dvi barfs on linewidth = -1.
67 * turn slope-damping on/off
75 * fix height of / collisions with lyrics (chords),
76 see input/test/vertical-text.ly; input/test/repeat.ly
79 - one volta spanner per score
80 - repeat bars span staffs
81 - placement alternative number
83 * latex bla.tex broken (titles / \lilyfooter stuff?)
85 * check/set minimum slur/tie length
89 * \breathmark TeX macro
93 * add new glyphs to font.ly
95 * formatting of input stuff.
97 * \notes{ a \< b \cr } vs \notes{ a \< b \! }
99 * if possible, it might be nice for a warning to appear if someone does
100 \translator with no name and without assigning it to an
105 * 'hinterfleisch' before bar (e.g. wtk1-fugue2)?
107 * \type Voice \times 2/3 { [c8 c16 c16 c16 c16] }
109 * fix singleStaffBracket
111 * repeat bars: need distance after ":|" and before "|:"
113 Summary of minor spelling irregularities:
114 - capitalization/use of underscores in property names
116 * fix SkipBars -> skipBars
118 * \shape 1st dim skipped?
120 * fix marks/barnumbers/marginal notes
123 lbheel = \script { "bheel" 0 0 -1 0 0 }
124 rbheel = \script { "bheel" 0 0 1 0 0 }
125 lbtoe = \script { "btoe" 0 0 -1 0 0 }
126 rbtoe = \script { "btoe" 0 0 1 0 0 }
127 lfheel = \script { "fheel" 0 0 -1 0 0 }
128 rfheel = \script { "fheel" 0 0 1 0 0 }
129 lftoe = \script { "ftoe" 0 0 -1 0 0 }
130 rftoe = \script { "ftoe" 0 0 1 0 0 }
134 portato= \script { "portato" 0 -1 0 1 0 }
137 * uniformise recent feta contributions.
139 * check out legal/(c) matters for scores.
141 * check out GCC signatures?
143 * Align_element::padding ?
145 * uniformise property names.
147 * ydirection <-> yDirection
149 * typo checks on property names?
151 * use streambufs and iostream
152 to provide IO handling for TeX stream, mudela stream, data-file.
154 * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
156 * strip EXEs before installing
158 * zip target for binary windows dist (JBR)
160 * junking \skip req in lyrics
163 - \type -> \context ?
167 - mix engraver hacking with music ?
168 - \once\property KEY = VAL
169 - \addtranslator, \removetranslator
170 - junk ^ and _ for scripts
174 * percussion note heads
176 * mi2mu empty staffs.
178 * midi_instrument -> midiInstrument
180 * horizontal centering of dynamics
182 * \font\fontA=feta20.afm (.afm?)
186 * stable make/config stuff
188 * $DEPENDENCIES_OUTPUT support
190 * fix weird behaviour when .AFMs/.SCMs not found.
192 * Xdvi zooming ?! Try to understand GS garbage collection.
193 gs: Error: /undefined in draw_beam
196 * fix vertical alignment and stafflines
198 * GrandStaff needs more work -- I want a single word
199 `harpsichord' to the left of the grandstaff, not one on each
200 stave. (Organ staff -- with separate pedal -- but common
201 properties may be something to think about. Of course for
202 organ you want to be able to give stop indications on the way
203 through, so the \property Voice.Instrument would be a stop,
204 and \property GrandStaff.instrument would be PipeOrgan...)
206 * revise the Score_priority_align_engraver concept. It sucks.
208 * make new VoiceOne, VoiceTwo, VoiceThree contexts with
209 ydirection and hshift preset
211 * *.yo: fix pod manpage layout legacy
213 * text-items clash with stems/beams
215 * --include, -I option for ly2dvi (pass on to lily)
217 * fix placement of beam-less abbrev
220 <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
221 {\voicetwo cis,4 r r | r2. | r1 }> |
224 * try to use template<Type> iso MACRO(Type)
226 - NEWS: ... Musical_pitch (analogous to Duration and Rhythmic_req)
227 think about, analogous to pitch:
228 * { a4 a16 } c <-- duration of c?
229 * <a4 b8> c <-- duration of c?
233 * fix audio-items (don't use (input) requests, but copy data)
235 * make sure all ex's have a mudela-version
237 * do rest-collisions for Multi_measure_rests as well.
239 * split error/warning in error/warning/non_fatal_error
241 * add a Duration_convert member to Duration_iter to set parameters.
242 Junk global duration settings.
246 * minimum length second part broken tie
248 * en-,discouraged linebreaking:
249 - handle DISALLOW < penalty > FORCE
250 - discourage breaking of slurs
255 * fix variable define/lookup parser global<->paper
257 * fix title/instrument placements; see input/test/title.ly
259 * <\voiceone c4. \voicetwo c4>
261 * add full cello suites to web site (kom op, Maarten!)
263 * Rethink Time_description
264 * \cadenza , \meter, \grouping should all be \properties
269 - abbreviation-beam -> (measured/unmeasured) tremolo
270 - partial -> anacrouse
274 * robustify Beam (in case of no stems, 32nd notes)
276 * decentralised spring factory
278 * move paper vars into engraver properties
280 * check for groff / troff/ nroff et
282 * more intelligent file searching
283 - make LilyPond RPM fully relocatable
286 - break-up heavily-nested score blocks
288 * disable spaces in TeX stuff
290 * handle ^C for tmp/file creation.
293 * dots & rest collisions.
301 * versioning for Feta
303 * the warning about the negative slur/tie length appears twice
306 * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
309 * the bracket is ugly (wings are too parabolic, should be more circular)
311 * better hshift (dots, distance, head dependent)
313 * clefs (AG): The "8" should appear closer to the actual clef,
316 * put errorlevel in Input class
320 * integrate midi-elts from mi2mu and lily?
323 FMR: Free memory read:
324 * This is occurring while in:
325 Bar_column::do_substitute_dependency(Score_element*,Score_element*) [bar
327 Score_element::unlink() [score-elem.cc:383]
328 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
330 Paper_score::calc_breaking() [p-score.cc:189]
331 Paper_score::process() [p-score.cc:203]
332 Score::run_translator(Music_output_def*) [score.cc:117]
333 * Reading 4 bytes from 0x65d3a0 in the heap.
334 * Address 0x65d3a0 is 160 bytes into a freed block at 0x65d300 of 208 bytes.
335 * This block was allocated from:
337 __builtin_new [libgcc.a]
338 Span_score_bar::clone()const [span-score-bar.hh:20]
339 Item::copy_breakable_items() [item.cc:69]
340 Item::do_breakable_col_processing() [item.cc:89]
341 Score_element::calcalute_dependencies(int,int,void(Score_element::*)()*)
343 * There have been 22 frees since this block was freed from:
345 __builtin_delete [libgcc.a]
346 Span_score_bar::~Span_score_bar() [span-score-bar.hh:18]
347 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
349 Paper_score::calc_breaking() [p-score.cc:189]
350 Paper_score::process() [p-score.cc:203]
351 Postprocessing elements...
352 TeX output to score-bar-scripts.tex...
357 * make GCC warn about ctor that leaves member vars uninitialised.
359 * redhat (v?) graphical install bomb-out?
361 * GNU diff 2.7: diff -rN does not see a new directory with empty file
363 * GNU patch 2.1: <must find simple example> if patch chokes on a
364 hunk, or on allegedly unsorted hunks in a diff, it may stop
365 without a trace of failure (create .rej file, print error or
366 dump core) and just ignore any further diffs.
370 f = fopen ("/dev/null", "r")
375 * GNU indent: handle C++
378 - 'double-fix' mode: ignore identical fix, rather than suggest
379 to revert patch direction when (more or less? exactly) the same
385 - fix position of bar number
386 - stack scripts in chords:
387 % fingering: footing:
388 < a-4 c-2 g-1 > < c-\ltoe e-\lheel >
390 - slur parts as a script
391 - stack parameterised scripts for fingering and footing:
394 - automatically add a \version if not present.
397 - convert-mudela -e empty.ly
400 - should handle block comments too.
401 - handle lexer modes (\header, \melodic, \lyric) etc.
404 - fontlock: \melodic \melodic
406 * use properties for:
411 - bartypes (get rid of derived Span_bar_engravers)
416 - optimal pagebreaking.
418 * Unicode support? -> man 7 unicode
421 - detect of 16/8 bit files
422 - examples to go with it.
425 - write a faster Spring_spacer (without matrices if possible)
426 - relate energybound to linelen unitspace fontsize etc.
427 - used fixed point fp?
430 - output header info to MIDI too.
432 * a musical dictionary. See Documentation/vocabulary-*, other
442 - guitar chords (fret diagrams)
443 - other chord name styles (american(?) style)
448 - derive lily_stream, Dstream, texstream from ostream?
449 - indentable stream as baseclass for TeX stream, lily stream, Dstream.
450 - use dstream feature in mi2mu
451 - integrate IO checking into stream class
458 * add to MIDI output:
460 - ornaments (and trills?)
465 - account for rhythmic position in measure
469 - make separate class for Grace_*_engravers
470 (which is at Voice_gravs level)
471 - make encapsulated spacing problems.
473 * accidentals per Voice_group
475 * Output class, handles : (smallish)
476 - help text /(c) notice?
478 - warning /errors/progress
479 - abort on error/warning; exit status
480 - quiet/ignore-version options
485 * elaborate Staff_side baseclass:
492 - PS lines to .eps files
493 - write custom prolog
496 * Output an output format independent (ofi) typeset file; and
497 make ofi2 TeX, MusiXTex, Display PostScript, PostScript,
498 Ascii... interpreters. (difficult)
501 - Common Music Notation
502 - PostScript output (esp. Beams, Slurs, etc)
503 - Move all Score_elems, into libmutype.a
507 - Doc (C) stuff of sheet music
508 - a better format? SGML? TeX? Info?
511 * more spanners (smallish)
515 * Rewrite Stem, Beam and Rhythmic_grouping (hairy)
517 - doc on Rhythmic_grouping
518 - general shaving on Beam and Stem
520 - separate visual from rhythmic info even more
524 - Ledger lines, should be separate item: Ledger_lines, Ledger_lines
525 - set different line sizes / thicknesses
526 - beam stem showthrough, inter beam sizes (french vs german style)
529 - left/right note balls should be handled by Collision:
530 < \multi 2; { \stem 1; <b c> } { <f as b> } >
533 - merge key{item} & localkey{item}?
534 - spacing, national styles?
537 - redo Notehead to allow digits as heads
538 - add a \tablature {} lexer mode for easy entering
540 * should adjust stemlength for flag number.
543 - caching breakpoints
545 - specify number of lines
551 * c4 4 4 4 for c4 c4 c4 c4?
553 * neatly (and readably) expressing concurrent
568 * relative mode for pitch entering
570 * configure pitch_byte
572 * rest name configurable
576 * limit memory usage; the full coriolan takes up too much resources.
578 * fix confusing naming in Engraver vs Engraver_group_engraver (context)
580 * progress when creating MIDI elts.
582 * A range for context errors (eg. mark both { and }. )
584 * lyric in staff (sharpsharp in staff, text below)
588 * write Dynamic_line (to group dynamics horizontally)
590 * use Real for all y positions.
591 - use translate_axis( .. ,Y_AXIS) iso separate variables.
593 * half-sharps, half-flats
595 * adaptive accidental spacing.
597 * handle EOF graciously in error messages.
599 * declare notenametab?
601 * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
603 * stafftypes: voice names/ instrument names.
607 * C meter iso 4/4, idem for alla breve, etc.
609 * textspanner: center position
611 * % toe to bheel four to five
617 (where "to" is a tiny bow)
619 * auxilliary file for caching info.
623 * clean solution for staffsize in items.
629 * Output data structures of Mudela in XML/SGML.
631 * create libmudela, or liblily_frontend
633 * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
635 * use an embedded language: Python, Scheme
640 * y -dims in internote? Staff-space? X-dimensions?
642 * Spacing_request for manually adjusting spacing
644 * caching breakpoints
646 * used fixedpoint arithmetic for min. energy.
648 * move towards incremental algorithms.
650 * far fetched language ideas
651 - design meta-language like TeX and Metafont
652 - programming/macros input
654 * versioning stuff (cvt mudela, mudela, etc.)
658 * dynamic loading of engravers?
662 ****************************************
663 Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
665 > mcmanus@IDT.NET writes:
666 > > > I want different C++ objects (with scheme embedded) to be linked by
667 > > > C++ pointers. I want to access these other objects from the Scheme
668 > > > code, and I want access to these pointers from C++.
670 > > You can do this with a combination of smob's and primitive functions,
671 > > though it may not be be exactly what you wanted. You would have one
672 > > smob for each class in your application, and then you would write a
673 > > primitive function that would return the objects that are linked to a
676 > And the smob and the C++ class are interlinked? Like
679 > Foo_smob *smob_ptr_;
683 > Foo_class *class_ptr_
686 Usually you can get away without having this interlinked structure.
687 One piece of information you need when exporting objects to scheme is
688 the smob tag for your class. You might store this value (a long) into
689 a class static variable, or a file static variable. I'll use a class
690 static variable in this example.
692 I typically use code that works like this (untested code ahead):
695 static long *Foo_smob_tag;
696 SCM obj; // representation as a scheme object, description comes later
699 // call this once on startup
700 void init_Foo_class {
701 static scm_smobfuns type_rec;
703 type_rec.mark = foo_mark;
704 type_rec.free = foo_free;
705 type_rec.print = foo_display;
707 Foo_class::Foo_smob_tag = new int(scm_new_smob(type_rec));
710 When you want to export an object to scheme, you put a pointer to the
711 object itself in the cdr of the cell, and the tag in the car of the
712 cell. The code looks like this:
718 return(SCM_NIMP(obj) && SCM_CAR(obj) == Foo_class::Foo_smob_tag);
721 // given a Scheme representation, return, a C++ representation
725 return((Foo_class*)SCM_CDR(obj));
728 // the SCM representation of the object is stored inside itself
729 // this will become useful when destructor gets called
731 foo_box(Foo_class *foo)
734 SCM_NEWCELL(foo->obj);
735 SCM_SETCAR(foo->obj, Foo_class::Foo_smob_tag);
736 SCM_SETCDR(foo->obj, (SCM)foo);
741 > C++ determines life time, so what is the strategy?
743 What happens now when the destructor gets called? Lets set the cdr to
744 NULL, and then check for that in all of the primitive functions that
745 use your smob. We'll call this notion 'live'; a scheme object is
746 'live' if the C++ representation still exists, it's dead if the C++
747 object is gone. You can still have references to dead objects in
748 scheme code; it's just an error to use them. This idea is stolen from
749 Emacs's handling of buffers ('buffer-live-p' and friends).
751 Add another function, foo_live_p:
756 return(foo_p(obj) && SCM_CDR(obj) != NULL);
759 In you destructor, you need to do:
763 SCM_CDR(this->obj, NULL);
766 When writing new primitives, now just check foo_live_p().
768 I hope the above helps,
774 "Even if you are on the right track, you'll get run over
775 if you just sit there."
776 --Will Rogers (1879-1935)
778 ***************************