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.
73 * fix height of / collisions with lyrics (chords),
74 see input/test/vertical-text.ly; input/test/repeat.ly
77 - one volta spanner per score
78 - repeat bars span staffs
79 - placement alternative number
81 * latex bla.tex broken (titles / \lilyfooter stuff?)
83 * check/set minimum slur/tie length
87 * \breathmark TeX macro
91 * add new glyphs to font.ly
93 * formatting of input stuff.
95 * \notes{ a \< b \cr } vs \notes{ a \< b \! }
97 * if possible, it might be nice for a warning to appear if someone does
98 \translator with no name and without assigning it to an
103 * 'hinterfleisch' before bar (e.g. wtk1-fugue2)?
105 * \type Voice \times 2/3 { [c8 c16 c16 c16 c16] }
107 * fix singleStaffBracket
109 * repeat bars: need distance after ":|" and before "|:"
111 Summary of minor spelling irregularities:
112 - capitalization/use of underscores in property names
114 * fix SkipBars -> skipBars
116 * \shape 1st dim skipped?
118 * fix marks/barnumbers/marginal notes
121 lbheel = \script { "bheel" 0 0 -1 0 0 }
122 rbheel = \script { "bheel" 0 0 1 0 0 }
123 lbtoe = \script { "btoe" 0 0 -1 0 0 }
124 rbtoe = \script { "btoe" 0 0 1 0 0 }
125 lfheel = \script { "fheel" 0 0 -1 0 0 }
126 rfheel = \script { "fheel" 0 0 1 0 0 }
127 lftoe = \script { "ftoe" 0 0 -1 0 0 }
128 rftoe = \script { "ftoe" 0 0 1 0 0 }
132 portato= \script { "portato" 0 -1 0 1 0 }
135 * uniformise recent feta contributions.
137 * check out legal/(c) matters for scores.
139 * check out GCC signatures?
141 * Align_element::padding ?
143 * uniformise property names.
145 * ydirection <-> yDirection
147 * typo checks on property names?
149 * use streambufs and iostream
150 to provide IO handling for TeX stream, mudela stream, data-file.
152 * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
154 * strip EXEs before installing
156 * zip target for binary windows dist (JBR)
158 * junking \skip req in lyrics
161 - \type -> \context ?
165 - mix engraver hacking with music ?
166 - \once\property KEY = VAL
167 - \addtranslator, \removetranslator
168 - junk ^ and _ for scripts
172 * percussion note heads
174 * mi2mu empty staffs.
176 * midi_instrument -> midiInstrument
178 * horizontal centering of dynamics
180 * \font\fontA=feta20.afm (.afm?)
184 * stable make/config stuff
186 * $DEPENDENCIES_OUTPUT support
188 * fix weird behaviour when .AFMs/.SCMs not found.
190 * Xdvi zooming ?! Try to understand GS garbage collection.
191 gs: Error: /undefined in draw_beam
194 * fix vertical alignment and stafflines
196 * GrandStaff needs more work -- I want a single word
197 `harpsichord' to the left of the grandstaff, not one on each
198 stave. (Organ staff -- with separate pedal -- but common
199 properties may be something to think about. Of course for
200 organ you want to be able to give stop indications on the way
201 through, so the \property Voice.Instrument would be a stop,
202 and \property GrandStaff.instrument would be PipeOrgan...)
204 * revise the Score_priority_align_engraver concept. It sucks.
206 * make new VoiceOne, VoiceTwo, VoiceThree contexts with
207 ydirection and hshift preset
209 * *.yo: fix pod manpage layout legacy
211 * text-items clash with stems/beams
213 * --include, -I option for ly2dvi (pass on to lily)
215 * fix placement of beam-less abbrev
218 <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
219 {\voicetwo cis,4 r r | r2. | r1 }> |
222 * try to use template<Type> iso MACRO(Type)
224 - NEWS: ... Musical_pitch (analogous to Duration and Rhythmic_req)
225 think about, analogous to pitch:
226 * { a4 a16 } c <-- duration of c?
227 * <a4 b8> c <-- duration of c?
231 * fix audio-items (don't use (input) requests, but copy data)
233 * make sure all ex's have a mudela-version
235 * do rest-collisions for Multi_measure_rests as well.
237 * split error/warning in error/warning/non_fatal_error
239 * add a Duration_convert member to Duration_iter to set parameters.
240 Junk global duration settings.
244 * minimum length second part broken tie
246 * en-,discouraged linebreaking:
247 - handle DISALLOW < penalty > FORCE
248 - discourage breaking of slurs
253 * fix variable define/lookup parser global<->paper
255 * fix title/instrument placements; see input/test/title.ly
257 * <\voiceone c4. \voicetwo c4>
259 * add full cello suites to web site (kom op, Maarten!)
261 * Rethink Time_description
262 * \cadenza , \meter, \grouping should all be \properties
267 - abbreviation-beam -> (measured/unmeasured) tremolo
268 - partial -> anacrouse
272 * robustify Beam (in case of no stems, 32nd notes)
274 * decentralised spring factory
276 * move paper vars into engraver properties
278 * check for groff / troff/ nroff et
280 * more intelligent file searching
281 - make LilyPond RPM fully relocatable
284 - break-up heavily-nested score blocks
286 * disable spaces in TeX stuff
288 * handle ^C for tmp/file creation.
291 * dots & rest collisions.
299 * versioning for Feta
301 * the warning about the negative slur/tie length appears twice
304 * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
307 * the bracket is ugly (wings are too parabolic, should be more circular)
309 * better hshift (dots, distance, head dependent)
311 * clefs (AG): The "8" should appear closer to the actual clef,
314 * put errorlevel in Input class
318 * integrate midi-elts from mi2mu and lily?
321 FMR: Free memory read:
322 * This is occurring while in:
323 Bar_column::do_substitute_dependency(Score_element*,Score_element*) [bar
325 Score_element::unlink() [score-elem.cc:383]
326 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
328 Paper_score::calc_breaking() [p-score.cc:189]
329 Paper_score::process() [p-score.cc:203]
330 Score::run_translator(Music_output_def*) [score.cc:117]
331 * Reading 4 bytes from 0x65d3a0 in the heap.
332 * Address 0x65d3a0 is 160 bytes into a freed block at 0x65d300 of 208 bytes.
333 * This block was allocated from:
335 __builtin_new [libgcc.a]
336 Span_score_bar::clone()const [span-score-bar.hh:20]
337 Item::copy_breakable_items() [item.cc:69]
338 Item::do_breakable_col_processing() [item.cc:89]
339 Score_element::calcalute_dependencies(int,int,void(Score_element::*)()*)
341 * There have been 22 frees since this block was freed from:
343 __builtin_delete [libgcc.a]
344 Span_score_bar::~Span_score_bar() [span-score-bar.hh:18]
345 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
347 Paper_score::calc_breaking() [p-score.cc:189]
348 Paper_score::process() [p-score.cc:203]
349 Postprocessing elements...
350 TeX output to score-bar-scripts.tex...
355 * make GCC warn about ctor that leaves member vars uninitialised.
357 * redhat (v?) graphical install bomb-out?
359 * GNU diff 2.7: diff -rN does not see a new directory with empty file
361 * GNU patch 2.1: <must find simple example> if patch chokes on a
362 hunk, or on allegedly unsorted hunks in a diff, it may stop
363 without a trace of failure (create .rej file, print error or
364 dump core) and just ignore any further diffs.
368 f = fopen ("/dev/null", "r")
373 * GNU indent: handle C++
376 - 'double-fix' mode: ignore identical fix, rather than suggest
377 to revert patch direction when (more or less? exactly) the same
383 - fix position of bar number
384 - stack scripts in chords:
385 % fingering: footing:
386 < a-4 c-2 g-1 > < c-\ltoe e-\lheel >
388 - slur parts as a script
389 - stack parameterised scripts for fingering and footing:
392 - automatically add a \version if not present.
395 - convert-mudela -e empty.ly
398 - should handle block comments too.
399 - handle lexer modes (\header, \melodic, \lyric) etc.
402 - fontlock: \melodic \melodic
404 * use properties for:
409 - bartypes (get rid of derived Span_bar_engravers)
414 - optimal pagebreaking.
416 * Unicode support? -> man 7 unicode
419 - detect of 16/8 bit files
420 - examples to go with it.
423 - write a faster Spring_spacer (without matrices if possible)
424 - relate energybound to linelen unitspace fontsize etc.
425 - used fixed point fp?
428 - output header info to MIDI too.
430 * a musical dictionary. See Documentation/vocabulary-*, other
440 - guitar chords (fret diagrams)
441 - other chord name styles (american(?) style)
446 - derive lily_stream, Dstream, texstream from ostream?
447 - indentable stream as baseclass for TeX stream, lily stream, Dstream.
448 - use dstream feature in mi2mu
449 - integrate IO checking into stream class
456 * add to MIDI output:
458 - ornaments (and trills?)
463 - account for rhythmic position in measure
467 - make separate class for Grace_*_engravers
468 (which is at Voice_gravs level)
469 - make encapsulated spacing problems.
471 * accidentals per Voice_group
473 * Output class, handles : (smallish)
474 - help text /(c) notice?
476 - warning /errors/progress
477 - abort on error/warning; exit status
478 - quiet/ignore-version options
483 * elaborate Staff_side baseclass:
490 - PS lines to .eps files
491 - write custom prolog
494 * Output an output format independent (ofi) typeset file; and
495 make ofi2 TeX, MusiXTex, Display PostScript, PostScript,
496 Ascii... interpreters. (difficult)
499 - Common Music Notation
500 - PostScript output (esp. Beams, Slurs, etc)
501 - Move all Score_elems, into libmutype.a
505 - Doc (C) stuff of sheet music
506 - a better format? SGML? TeX? Info?
509 * more spanners (smallish)
513 * Rewrite Stem, Beam and Rhythmic_grouping (hairy)
515 - doc on Rhythmic_grouping
516 - general shaving on Beam and Stem
518 - separate visual from rhythmic info even more
522 - Ledger lines, should be separate item: Ledger_lines, Ledger_lines
523 - set different line sizes / thicknesses
524 - beam stem showthrough, inter beam sizes (french vs german style)
527 - left/right note balls should be handled by Collision:
528 < \multi 2; { \stem 1; <b c> } { <f as b> } >
531 - merge key{item} & localkey{item}?
532 - spacing, national styles?
535 - redo Notehead to allow digits as heads
536 - add a \tablature {} lexer mode for easy entering
538 * should adjust stemlength for flag number.
541 - caching breakpoints
543 - specify number of lines
549 * c4 4 4 4 for c4 c4 c4 c4?
551 * neatly (and readably) expressing concurrent
566 * relative mode for pitch entering
568 * configure pitch_byte
570 * rest name configurable
574 * limit memory usage; the full coriolan takes up too much resources.
576 * fix confusing naming in Engraver vs Engraver_group_engraver (context)
578 * progress when creating MIDI elts.
580 * A range for context errors (eg. mark both { and }. )
582 * lyric in staff (sharpsharp in staff, text below)
586 * write Dynamic_line (to group dynamics horizontally)
588 * use Real for all y positions.
589 - use translate_axis( .. ,Y_AXIS) iso separate variables.
591 * half-sharps, half-flats
593 * adaptive accidental spacing.
595 * handle EOF graciously in error messages.
597 * declare notenametab?
599 * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
601 * stafftypes: voice names/ instrument names.
605 * C meter iso 4/4, idem for alla breve, etc.
607 * textspanner: center position
609 * % toe to bheel four to five
615 (where "to" is a tiny bow)
617 * auxilliary file for caching info.
621 * clean solution for staffsize in items.
627 * Output data structures of Mudela in XML/SGML.
629 * create libmudela, or liblily_frontend
631 * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
633 * use an embedded language: Python, Scheme
638 * y -dims in internote? Staff-space? X-dimensions?
640 * Spacing_request for manually adjusting spacing
642 * caching breakpoints
644 * used fixedpoint arithmetic for min. energy.
646 * move towards incremental algorithms.
648 * far fetched language ideas
649 - design meta-language like TeX and Metafont
650 - programming/macros input
652 * versioning stuff (cvt mudela, mudela, etc.)
656 * dynamic loading of engravers?
660 ****************************************
661 Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
663 > mcmanus@IDT.NET writes:
664 > > > I want different C++ objects (with scheme embedded) to be linked by
665 > > > C++ pointers. I want to access these other objects from the Scheme
666 > > > code, and I want access to these pointers from C++.
668 > > You can do this with a combination of smob's and primitive functions,
669 > > though it may not be be exactly what you wanted. You would have one
670 > > smob for each class in your application, and then you would write a
671 > > primitive function that would return the objects that are linked to a
674 > And the smob and the C++ class are interlinked? Like
677 > Foo_smob *smob_ptr_;
681 > Foo_class *class_ptr_
684 Usually you can get away without having this interlinked structure.
685 One piece of information you need when exporting objects to scheme is
686 the smob tag for your class. You might store this value (a long) into
687 a class static variable, or a file static variable. I'll use a class
688 static variable in this example.
690 I typically use code that works like this (untested code ahead):
693 static long *Foo_smob_tag;
694 SCM obj; // representation as a scheme object, description comes later
697 // call this once on startup
698 void init_Foo_class {
699 static scm_smobfuns type_rec;
701 type_rec.mark = foo_mark;
702 type_rec.free = foo_free;
703 type_rec.print = foo_display;
705 Foo_class::Foo_smob_tag = new int(scm_new_smob(type_rec));
708 When you want to export an object to scheme, you put a pointer to the
709 object itself in the cdr of the cell, and the tag in the car of the
710 cell. The code looks like this:
716 return(SCM_NIMP(obj) && SCM_CAR(obj) == Foo_class::Foo_smob_tag);
719 // given a Scheme representation, return, a C++ representation
723 return((Foo_class*)SCM_CDR(obj));
726 // the SCM representation of the object is stored inside itself
727 // this will become useful when destructor gets called
729 foo_box(Foo_class *foo)
732 SCM_NEWCELL(foo->obj);
733 SCM_SETCAR(foo->obj, Foo_class::Foo_smob_tag);
734 SCM_SETCDR(foo->obj, (SCM)foo);
739 > C++ determines life time, so what is the strategy?
741 What happens now when the destructor gets called? Lets set the cdr to
742 NULL, and then check for that in all of the primitive functions that
743 use your smob. We'll call this notion 'live'; a scheme object is
744 'live' if the C++ representation still exists, it's dead if the C++
745 object is gone. You can still have references to dead objects in
746 scheme code; it's just an error to use them. This idea is stolen from
747 Emacs's handling of buffers ('buffer-live-p' and friends).
749 Add another function, foo_live_p:
754 return(foo_p(obj) && SCM_CDR(obj) != NULL);
757 In you destructor, you need to do:
761 SCM_CDR(this->obj, NULL);
764 When writing new primitives, now just check foo_live_p().
766 I hope the above helps,
772 "Even if you are on the right track, you'll get run over
773 if you just sit there."
774 --Will Rogers (1879-1935)
776 ***************************