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 * check out PS points vs. LilyPond points (PS = 1/72 inch, LilyPond=1/72.27)
13 * Instrument names in the margin. Example:
14 input/test/hara-kiri.ly. The text should of course
15 be to the left of the staff lines.
17 * There is a bug in pl 22. Try /input/test/slurs.ly and
18 you will find '#.#' instead of real numbers at some
19 places in the empedded ps code.
21 * (Annoying but not a bug:) Slurs that are broken at line
22 breaks often extend too far into the margin, both to the
23 left and to the right. How do you adjust it?
25 * SkipBars=0 doesn't work. My score contains lots of
26 multibar rests, which should be written out bar by bar
27 in the score (where the 'harakiri' mechanism doesn't
28 remove full staff lines that only contain rests).
29 In the parts, the multibar rests should be split
30 by the rehearsal marks I've included every here and
32 In short, I want the multibar rests to work as they
33 used to do before pl 20 but preferably with a nice
37 * junk text{sharp,flat,etc}
39 * fix convert-mudela manpage
41 * automatic staff selection.
43 * decimal point in \paper {}
45 > I have changed Mark_engraver to use the G_... classes.
46 > My implementation has the following shortcomings at the
49 > - markScriptPadding is not supported, since G_staff_side_item does not
52 > - markBreakPriority is not supported.
54 > - Mostly, you want the marks aligned with the bar lines. I don't
55 > really understand how to implement that feature.
57 > - You get lots of warnings about missing 'number' and 'Large'
60 *{ \voiceone <a'4.*2/3 d''4.*2/3 fis''4.*2/3> [g''8 fis'' e''] d''4 |}
62 { \voicetwo d'4 d'2.*2/3 } spacing
66 * sharp /flat on trills (in MIDI ??)
68 * scm-ify \property values.
69 - The direction of textual scripts ('^' or '_') is ignored.
70 * move class Lookup {} into scm
74 * update mi2mu for lilypond 1.1
77 * collisions/voices \voiceone \voicetwo are broken; see
78 input/praeludium-fuga-E.ly
79 mutopia/J.S.Bach/wtk1-fugue2.ly
85 * fix: text on rests: rediculous dims
89 * fix fingering 'a-5': font direction broken *again*
93 * ly2dvi barfs on linewidth = -1.
96 - default duration? duration must be not entered
97 explicitely on first note.
99 * turn slope-damping on/off
107 * fix height of / collisions with lyrics (chords),
108 see input/test/vertical-text.ly; input/test/repeat.ly
111 - one volta spanner per score
113 * latex bla.tex broken (titles / \lilyfooter stuff?)
115 * check/set minimum slur/tie length
119 * \breathmark TeX macro
121 * catch GUILE errors?
123 * add new glyphs to font.ly
125 * formatting of input stuff.
127 * \notes{ a \< b \cr } vs \notes{ a \< b \! }
129 * if possible, it might be nice for a warning to appear if someone does
130 \translator with no name and without assigning it to an
135 * 'hinterfleisch' before bar (e.g. wtk1-fugue2)?
137 * \type Voice \times 2/3 { [c8 c16 c16 c16 c16] }
139 * fix singleStaffBracket
141 * repeat bars: need distance after ":|" and before "|:"
143 Summary of minor spelling irregularities:
144 - capitalization/use of underscores in property names
146 * fix SkipBars -> skipBars
148 * \shape 1st dim skipped?
150 * fix marks/barnumbers/marginal notes
153 lbheel = \script { "bheel" 0 0 -1 0 0 }
154 rbheel = \script { "bheel" 0 0 1 0 0 }
155 lbtoe = \script { "btoe" 0 0 -1 0 0 }
156 rbtoe = \script { "btoe" 0 0 1 0 0 }
157 lfheel = \script { "fheel" 0 0 -1 0 0 }
158 rfheel = \script { "fheel" 0 0 1 0 0 }
159 lftoe = \script { "ftoe" 0 0 -1 0 0 }
160 rftoe = \script { "ftoe" 0 0 1 0 0 }
164 portato= \script { "portato" 0 -1 0 1 0 }
167 * uniformise recent feta contributions.
169 * check out legal/(c) matters for scores.
171 * check out GCC signatures?
173 * Align_element::padding ?
175 * uniformise property names.
177 * ydirection <-> yDirection
179 * typo checks on property names?
181 * use streambufs and iostream
182 to provide IO handling for TeX stream, mudela stream, data-file.
184 * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
186 * strip EXEs before installing
188 * zip target for binary windows dist (JBR)
190 * junking \skip req in lyrics
193 - \type -> \context ?
197 - mix engraver hacking with music ?
198 - \once\property KEY = VAL
199 - \addtranslator, \removetranslator
200 - junk ^ and _ for scripts
204 * percussion note heads
206 * mi2mu empty staffs.
208 * midi_instrument -> midiInstrument
210 * horizontal centering of dynamics
212 * \font\fontA=feta20.afm (.afm?)
216 * stable make/config stuff
218 * $DEPENDENCIES_OUTPUT support
220 * fix weird behaviour when .AFMs/.SCMs not found.
222 * Xdvi zooming ?! Try to understand GS garbage collection.
223 gs: Error: /undefined in draw_beam
226 * fix vertical alignment and stafflines
228 * GrandStaff needs more work -- I want a single word
229 `harpsichord' to the left of the grandstaff, not one on each
230 stave. (Organ staff -- with separate pedal -- but common
231 properties may be something to think about. Of course for
232 organ you want to be able to give stop indications on the way
233 through, so the \property Voice.Instrument would be a stop,
234 and \property GrandStaff.instrument would be PipeOrgan...)
236 * revise the Score_priority_align_engraver concept. It sucks.
238 * make new VoiceOne, VoiceTwo, VoiceThree contexts with
239 ydirection and hshift preset
241 * *.yo: fix pod manpage layout legacy
243 * text-items clash with stems/beams
245 * --include, -I option for ly2dvi (pass on to lily)
247 * fix placement of beam-less abbrev
250 <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
251 {\voicetwo cis,4 r r | r2. | r1 }> |
254 * try to use template<Type> iso MACRO(Type)
256 - NEWS: ... Musical_pitch (analogous to Duration and Rhythmic_req)
257 think about, analogous to pitch:
258 * { a4 a16 } c <-- duration of c?
259 * <a4 b8> c <-- duration of c?
263 * fix audio-items (don't use (input) requests, but copy data)
265 * make sure all ex's have a mudela-version
267 * do rest-collisions for Multi_measure_rests as well.
269 * split error/warning in error/warning/non_fatal_error
271 * add a Duration_convert member to Duration_iter to set parameters.
272 Junk global duration settings.
276 * minimum length second part broken tie
278 * en-,discouraged linebreaking:
279 - handle DISALLOW < penalty > FORCE
280 - discourage breaking of slurs
282 * fix variable define/lookup parser global<->paper
284 * fix title/instrument placements; see input/test/title.ly
286 * <\voiceone c4. \voicetwo c4>
288 * add full cello suites to web site (kom op, Maarten!)
290 * Rethink Time_description
291 * \cadenza , \meter, \grouping should all be \properties
296 - abbreviation-beam -> (measured/unmeasured) tremolo
297 - partial -> anacrouse
301 * robustify Beam (in case of no stems, 32nd notes)
303 * decentralised spring factory
305 * move paper vars into engraver properties
307 * check for groff / troff/ nroff et
309 * more intelligent file searching
310 - make LilyPond RPM fully relocatable
313 - break-up heavily-nested score blocks
315 * disable spaces in TeX stuff
317 * handle ^C for tmp/file creation.
320 * dots & rest collisions.
328 * versioning for Feta
330 * the warning about the negative slur/tie length appears twice
333 * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
336 * the bracket is ugly (wings are too parabolic, should be more circular)
338 * better hshift (dots, distance, head dependent)
340 * clefs (AG): The "8" should appear closer to the actual clef,
343 * put errorlevel in Input class
347 * integrate midi-elts from mi2mu and lily?
350 FMR: Free memory read:
351 * This is occurring while in:
352 Bar_column::do_substitute_dependency(Score_element*,Score_element*) [bar
354 Score_element::unlink() [score-elem.cc:383]
355 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
357 Paper_score::calc_breaking() [p-score.cc:189]
358 Paper_score::process() [p-score.cc:203]
359 Score::run_translator(Music_output_def*) [score.cc:117]
360 * Reading 4 bytes from 0x65d3a0 in the heap.
361 * Address 0x65d3a0 is 160 bytes into a freed block at 0x65d300 of 208 bytes.
362 * This block was allocated from:
364 __builtin_new [libgcc.a]
365 Span_score_bar::clone()const [span-score-bar.hh:20]
366 Item::copy_breakable_items() [item.cc:69]
367 Item::do_breakable_col_processing() [item.cc:89]
368 Score_element::calcalute_dependencies(int,int,void(Score_element::*)()*)
370 * There have been 22 frees since this block was freed from:
372 __builtin_delete [libgcc.a]
373 Span_score_bar::~Span_score_bar() [span-score-bar.hh:18]
374 Paper_score::set_breaking(const Array<Column_x_positions>&) [p-score.cc:
376 Paper_score::calc_breaking() [p-score.cc:189]
377 Paper_score::process() [p-score.cc:203]
378 Postprocessing elements...
379 TeX output to score-bar-scripts.tex...
384 * make GCC warn about ctor that leaves member vars uninitialised.
386 * redhat (v?) graphical install bomb-out?
388 * GNU diff 2.7: diff -rN does not see a new directory with empty file
390 * GNU patch 2.1: <must find simple example> if patch chokes on a
391 hunk, or on allegedly unsorted hunks in a diff, it may stop
392 without a trace of failure (create .rej file, print error or
393 dump core) and just ignore any further diffs.
397 f = fopen ("/dev/null", "r")
402 * GNU indent: handle C++
405 - 'double-fix' mode: ignore identical fix, rather than suggest
406 to revert patch direction when (more or less? exactly) the same
412 - fix position of bar number
413 - stack scripts in chords:
414 % fingering: footing:
415 < a-4 c-2 g-1 > < c-\ltoe e-\lheel >
417 - slur parts as a script
418 - stack parameterised scripts for fingering and footing:
421 - automatically add a \version if not present.
424 - convert-mudela -e empty.ly
427 - should handle block comments too.
428 - handle lexer modes (\header, \melodic, \lyric) etc.
431 - fontlock: \melodic \melodic
433 * use properties for:
438 - bartypes (get rid of derived Span_bar_engravers)
443 - optimal pagebreaking.
445 * Unicode support? -> man 7 unicode
448 - detect of 16/8 bit files
449 - examples to go with it.
452 - write a faster Spring_spacer (without matrices if possible)
453 - relate energybound to linelen unitspace fontsize etc.
454 - used fixed point fp?
457 - output header info to MIDI too.
459 * a musical dictionary. See Documentation/vocabulary-*, other
469 - guitar chords (fret diagrams)
470 - other chord name styles (american(?) style)
475 - derive lily_stream, Dstream, texstream from ostream?
476 - indentable stream as baseclass for TeX stream, lily stream, Dstream.
477 - use dstream feature in mi2mu
478 - integrate IO checking into stream class
485 * add to MIDI output:
487 - ornaments (and trills?)
492 - account for rhythmic position in measure
496 - make separate class for Grace_*_engravers
497 (which is at Voice_gravs level)
498 - make encapsulated spacing problems.
500 * accidentals per Voice_group
502 * Output class, handles : (smallish)
503 - help text /(c) notice?
505 - warning /errors/progress
506 - abort on error/warning; exit status
507 - quiet/ignore-version options
512 * elaborate Staff_side baseclass:
519 - PS lines to .eps files
520 - write custom prolog
523 * Output an output format independent (ofi) typeset file; and
524 make ofi2 TeX, MusiXTex, Display PostScript, PostScript,
525 Ascii... interpreters. (difficult)
528 - Common Music Notation
529 - PostScript output (esp. Beams, Slurs, etc)
530 - Move all Score_elems, into libmutype.a
534 - Doc (C) stuff of sheet music
535 - a better format? SGML? TeX? Info?
538 * more spanners (smallish)
542 * Rewrite Stem, Beam and Rhythmic_grouping (hairy)
544 - doc on Rhythmic_grouping
545 - general shaving on Beam and Stem
547 - separate visual from rhythmic info even more
551 - Ledger lines, should be separate item: Ledger_lines, Ledger_lines
552 - set different line sizes / thicknesses
553 - beam stem showthrough, inter beam sizes (french vs german style)
556 - left/right note balls should be handled by Collision:
557 < \multi 2; { \stem 1; <b c> } { <f as b> } >
560 - merge key{item} & localkey{item}?
561 - spacing, national styles?
564 - redo Notehead to allow digits as heads
565 - add a \tablature {} lexer mode for easy entering
567 * should adjust stemlength for flag number.
570 - caching breakpoints
572 - specify number of lines
578 * c4 4 4 4 for c4 c4 c4 c4?
580 * neatly (and readably) expressing concurrent
595 * relative mode for pitch entering
597 * configure pitch_byte
599 * rest name configurable
603 * limit memory usage; the full coriolan takes up too much resources.
605 * fix confusing naming in Engraver vs Engraver_group_engraver (context)
607 * progress when creating MIDI elts.
609 * A range for context errors (eg. mark both { and }. )
611 * lyric in staff (sharpsharp in staff, text below)
615 * write Dynamic_line (to group dynamics horizontally)
617 * use Real for all y positions.
618 - use translate_axis( .. ,Y_AXIS) iso separate variables.
620 * half-sharps, half-flats
622 * adaptive accidental spacing.
624 * handle EOF graciously in error messages.
626 * declare notenametab?
628 * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
630 * stafftypes: voice names/ instrument names.
634 * C meter iso 4/4, idem for alla breve, etc.
636 * textspanner: center position
638 * % toe to bheel four to five
644 (where "to" is a tiny bow)
646 * auxilliary file for caching info.
650 * clean solution for staffsize in items.
656 * Output data structures of Mudela in XML/SGML.
658 * create libmudela, or liblily_frontend
660 * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
662 * use an embedded language: Python, Scheme
667 * y -dims in internote? Staff-space? X-dimensions?
669 * Spacing_request for manually adjusting spacing
671 * caching breakpoints
673 * used fixedpoint arithmetic for min. energy.
675 * move towards incremental algorithms.
677 * far fetched language ideas
678 - design meta-language like TeX and Metafont
679 - programming/macros input
681 * versioning stuff (cvt mudela, mudela, etc.)
685 * dynamic loading of engravers?
689 ****************************************
690 Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
692 > mcmanus@IDT.NET writes:
693 > > > I want different C++ objects (with scheme embedded) to be linked by
694 > > > C++ pointers. I want to access these other objects from the Scheme
695 > > > code, and I want access to these pointers from C++.
697 > > You can do this with a combination of smob's and primitive functions,
698 > > though it may not be be exactly what you wanted. You would have one
699 > > smob for each class in your application, and then you would write a
700 > > primitive function that would return the objects that are linked to a
703 > And the smob and the C++ class are interlinked? Like
706 > Foo_smob *smob_ptr_;
710 > Foo_class *class_ptr_
713 Usually you can get away without having this interlinked structure.
714 One piece of information you need when exporting objects to scheme is
715 the smob tag for your class. You might store this value (a long) into
716 a class static variable, or a file static variable. I'll use a class
717 static variable in this example.
719 I typically use code that works like this (untested code ahead):
722 static long *Foo_smob_tag;
723 SCM obj; // representation as a scheme object, description comes later
726 // call this once on startup
727 void init_Foo_class {
728 static scm_smobfuns type_rec;
730 type_rec.mark = foo_mark;
731 type_rec.free = foo_free;
732 type_rec.print = foo_display;
734 Foo_class::Foo_smob_tag = new int(scm_new_smob(type_rec));
737 When you want to export an object to scheme, you put a pointer to the
738 object itself in the cdr of the cell, and the tag in the car of the
739 cell. The code looks like this:
745 return(SCM_NIMP(obj) && SCM_CAR(obj) == Foo_class::Foo_smob_tag);
748 // given a Scheme representation, return, a C++ representation
752 return((Foo_class*)SCM_CDR(obj));
755 // the SCM representation of the object is stored inside itself
756 // this will become useful when destructor gets called
758 foo_box(Foo_class *foo)
761 SCM_NEWCELL(foo->obj);
762 SCM_SETCAR(foo->obj, Foo_class::Foo_smob_tag);
763 SCM_SETCDR(foo->obj, (SCM)foo);
768 > C++ determines life time, so what is the strategy?
770 What happens now when the destructor gets called? Lets set the cdr to
771 NULL, and then check for that in all of the primitive functions that
772 use your smob. We'll call this notion 'live'; a scheme object is
773 'live' if the C++ representation still exists, it's dead if the C++
774 object is gone. You can still have references to dead objects in
775 scheme code; it's just an error to use them. This idea is stolen from
776 Emacs's handling of buffers ('buffer-live-p' and friends).
778 Add another function, foo_live_p:
783 return(foo_p(obj) && SCM_CDR(obj) != NULL);
786 In you destructor, you need to do:
790 SCM_CDR(this->obj, NULL);
793 When writing new primitives, now just check foo_live_p().
795 I hope the above helps,
801 "Even if you are on the right track, you'll get run over
802 if you just sit there."
803 --Will Rogers (1879-1935)
805 ***************************