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 I also found a few bugs:
13 * The examples in input/test/bar-scripts.ly and score-bar-scripts.ly
14 don't work. The problem seems to be that you can't define a
15 a score identifier and then use it in the \score block.
17 * Instrument names in the margin. Example:
18 input/test/hara-kiri.ly. The text should of course
19 be to the left of the staff lines.
22 * check widths of TFM, something's wrong here.
24 * hang Item on Spanner
26 * junk Text_def, use G_text_item in stead.
28 * remove Interval dim_ from Dimension_cache and rename the struct.
30 * do --safe for PS output?
32 * staff_margin (with a partial measure.)
34 * fix "I've been drinking too much"
36 * add scripts to bars eg. |^"bla"
38 * fix Staff_margin_engraver.
40 * fix pletvisibility properties:
41 - bracket on/off/no-bracket-when-beam
42 - num on/off/no-num-when-beam
48 * junk text{sharp,flat,etc}
50 * fix convert-mudela manpage
52 * automatic staff selection.
54 * decimal point in \paper {}
56 *{ \voiceone <a'4.*2/3 d''4.*2/3 fis''4.*2/3> [g''8 fis'' e''] d''4 |}
58 { \voicetwo d'4 d'2.*2/3 } spacing
62 * sharp /flat on trills (in MIDI ??)
64 * scm-ify \property values.
66 * move class Lookup {} into scm
70 * fix: text on rests: rediculous dims
76 - default duration? duration must be not entered
77 explicitely on first note.
79 * turn slope-damping on/off
87 * fix height of / collisions with lyrics (chords),
88 see input/test/vertical-text.ly; input/test/repeat.ly
90 * latex bla.tex broken (titles / \lilyfooter stuff?)
92 * check/set minimum slur/tie length
96 * \breathmark TeX macro
100 * add new glyphs to font.ly
102 * formatting of input stuff.
104 * \notes{ a \< b \cr } vs \notes{ a \< b \! }
106 * if possible, it might be nice for a warning to appear if someone does
107 \translator with no name and without assigning it to an
112 * 'hinterfleisch' before bar (e.g. wtk1-fugue2)?
114 * \type Voice \times 2/3 { [c8 c16 c16 c16 c16] }
116 * fix singleStaffBracket
118 * repeat bars: need distance after ":|" and before "|:"
120 Summary of minor spelling irregularities:
121 - capitalization/use of underscores in property names
123 * fix SkipBars -> skipBars
125 * \shape 1st dim skipped?
127 * fix marks/barnumbers/marginal notes
130 lbheel = \script { "bheel" 0 0 -1 0 0 }
131 rbheel = \script { "bheel" 0 0 1 0 0 }
132 lbtoe = \script { "btoe" 0 0 -1 0 0 }
133 rbtoe = \script { "btoe" 0 0 1 0 0 }
134 lfheel = \script { "fheel" 0 0 -1 0 0 }
135 rfheel = \script { "fheel" 0 0 1 0 0 }
136 lftoe = \script { "ftoe" 0 0 -1 0 0 }
137 rftoe = \script { "ftoe" 0 0 1 0 0 }
141 portato= \script { "portato" 0 -1 0 1 0 }
144 * uniformise recent feta contributions.
146 * check out legal/(c) matters for scores.
148 * check out GCC signatures?
150 * Align_element::padding ?
152 * uniformise property names...
153 - ydirection <-> yDirection
154 - rather allow '_' in identifiers first (i.e. junk ^ and _),
156 - typo checks on property names?
158 * use streambufs and iostream
159 to provide IO handling for TeX stream, mudela stream, data-file.
161 * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
163 * strip EXEs before installing
165 * zip target for binary windows dist (JBR)
167 * junking \skip req in lyrics
170 - \type -> \context ?
174 - mix engraver hacking with music ?
175 - \once\property KEY = VAL
176 - \addtranslator, \removetranslator
177 - junk ^ and _ for scripts
181 * percussion note heads
183 * mi2mu empty staffs.
185 * horizontal centering of dynamics
187 * \font\fontA=feta20.afm (.afm?)
191 * stable make/config stuff
193 * $DEPENDENCIES_OUTPUT support
195 * fix weird behaviour when .AFMs/.SCMs not found.
197 * Xdvi zooming ?! Try to understand GS garbage collection.
198 gs: Error: /undefined in draw_beam
201 * fix vertical alignment and stafflines
203 * GrandStaff needs more work -- I want a single word
204 `harpsichord' to the left of the grandstaff, not one on each
205 stave. (Organ staff -- with separate pedal -- but common
206 properties may be something to think about. Of course for
207 organ you want to be able to give stop indications on the way
208 through, so the \property Voice.Instrument would be a stop,
209 and \property GrandStaff.instrument would be PipeOrgan...)
211 * revise the Score_priority_align_engraver concept. It sucks.
213 * make new VoiceOne, VoiceTwo, VoiceThree contexts with
214 ydirection and hshift preset
216 * *.yo: fix pod manpage layout legacy
218 * text-items clash with stems/beams
220 * --include, -I option for ly2dvi (pass on to lily)
222 * fix placement of beam-less abbrev
225 <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
226 {\voicetwo cis,4 r r | r2. | r1 }> |
229 * try to use template<Type> iso MACRO(Type)
231 - NEWS: ... Musical_pitch (analogous to Duration and Rhythmic_req)
232 think about, analogous to pitch:
233 * { a4 a16 } c <-- duration of c?
234 * < a4 b8 > c <-- duration of c?
238 * fix audio-items (don't use (input) requests, but copy data)
240 * make sure all ex's have a mudela-version
242 * do rest-collisions for Multi_measure_rests as well.
244 * split error/warning in error/warning/non_fatal_error
246 * add a Duration_convert member to Duration_iter to set parameters.
247 Junk global duration settings.
249 * minimum length second part broken tie
251 * en-,discouraged linebreaking:
252 - handle DISALLOW < penalty > FORCE
253 - 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
284 * make LilyPond RPM fully relocatable
286 * disable spaces in TeX stuff
288 * handle ^C for tmp/file creation.
290 * dots & rest collisions.
298 * versioning for Feta
300 * the warning about the negative slur/tie length appears twice
303 * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
306 * the bracket is ugly (wings are too parabolic, should be more circular)
308 * better hshift (dots, distance, head dependent)
310 * clefs (AG): The "8" should appear closer to the actual clef,
313 * put errorlevel in Input class
317 * integrate midi-elts from mi2mu and lily?
344 foo.cc: In function `int f()':
345 foo.cc:6: label `b' used but not defined
356 * make GCC warn about ctor that leaves member vars uninitialised.
358 * GNU diff 2.7: diff -rN does not see a new directory with empty file
362 f = fopen ("/dev/null", "r")
368 - 'double-fix' mode: ignore identical fix, rather than suggest
369 to revert patch direction when (more or less? exactly) the same
375 - fix position of bar number
376 - stack scripts in chords:
377 % fingering: footing:
378 < a-4 c-2 g-1 > < c-\ltoe e-\lheel >
380 - slur parts as a script
381 - stack parameterised scripts for fingering and footing:
384 - automatically add a \version if not present.
387 - convert-mudela -e empty.ly
390 - should handle block comments too.
391 - handle lexer modes (\header, \melodic, \lyric) etc.
394 - fontlock: \melodic \melodic
396 * use properties for:
401 - bartypes (get rid of derived Span_bar_engravers)
406 - optimal pagebreaking.
408 * Unicode support? -> man 7 unicode
411 - detect of 16/8 bit files
412 - examples to go with it.
415 - write a faster Spring_spacer (without matrices if possible)
416 - relate energybound to linelen unitspace fontsize etc.
417 - used fixed point fp?
420 - output header info to MIDI too.
422 * a musical dictionary. See Documentation/vocabulary-*, other
432 - guitar chords (fret diagrams)
433 - other chord name styles (american(?) style)
438 - derive lily_stream, Dstream, texstream from ostream?
439 - indentable stream as baseclass for TeX stream, lily stream, Dstream.
440 - use dstream feature in mi2mu
441 - integrate IO checking into stream class
448 * add to MIDI output:
450 - ornaments (and trills?)
455 - account for rhythmic position in measure
459 - make separate class for Grace_*_engravers
460 (which is at Voice_gravs level)
461 - make encapsulated spacing problems.
463 * accidentals per Voice_group
465 * Output class, handles : (smallish)
466 - help text /(c) notice?
468 - warning /errors/progress
469 - abort on error/warning; exit status
470 - quiet/ignore-version options
473 * elaborate Staff_side baseclass:
480 - PS lines to .eps files
481 - write custom prolog
483 * Output an output format independent (ofi) typeset file; and
484 make ofi2 TeX, MusiXTex, Display PostScript, PostScript,
485 Ascii... interpreters. (difficult)
488 - Common Music Notation
489 - PostScript output (esp. Beams, Slurs, etc)
490 - Move all Score_elems, into libmutype.a
494 - Doc (C) stuff of sheet music
495 - a better format? SGML? TeX? Info?
498 * more spanners (smallish)
502 * Rewrite Stem, Beam and Rhythmic_grouping (hairy)
504 - doc on Rhythmic_grouping
505 - general shaving on Beam and Stem
507 - separate visual from rhythmic info even more
511 - Ledger lines, should be separate item: Ledger_lines, Ledger_lines
512 - set different line sizes / thicknesses
513 - beam stem showthrough, inter beam sizes (french vs german style)
516 - left/right note balls should be handled by Collision:
517 < \multi 2; { \stem 1; <b c> } { <f as b> } >
520 - merge key{item} & localkey{item}?
521 - spacing, national styles?
524 - redo Notehead to allow digits as heads
525 - add a \tablature {} lexer mode for easy entering
527 * should adjust stemlength for flag number.
530 - caching breakpoints
532 - specify number of lines
536 * c4 4 4 4 for c4 c4 c4 c4?
538 * neatly (and readably) expressing concurrent
553 * relative mode for pitch entering
555 * configure pitch_byte
557 * rest name configurable
561 * limit memory usage; the full coriolan takes up too much resources.
563 * fix confusing naming in Engraver vs Engraver_group_engraver (context)
565 * progress when creating MIDI elts.
567 * A range for context errors (eg. mark both { and }. )
569 * lyric in staff (sharpsharp in staff, text below)
573 * write Dynamic_line (to group dynamics horizontally)
575 * use Real for all y positions.
576 - use translate_axis( .. ,Y_AXIS) iso separate variables.
578 * half-sharps, half-flats
580 * adaptive accidental spacing.
582 * handle EOF graciously in error messages.
584 * declare notenametab?
586 * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
588 * stafftypes: voice names/ instrument names.
592 * C meter iso 4/4, idem for alla breve, etc.
594 * textspanner: center position
596 * % toe to bheel four to five
602 (where "to" is a tiny bow)
604 * auxilliary file for caching info.
608 * clean solution for staffsize in items.
614 * Output data structures of Mudela in XML/SGML.
616 * create libmudela, or liblily_frontend
618 * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
620 * Spacing_request for manually adjusting spacing
622 * caching breakpoints
624 * used fixedpoint arithmetic for min. energy.
626 * move towards incremental algorithms.
628 * far fetched language ideas
629 - design meta-language like TeX and Metafont
630 - programming/macros input
632 * versioning stuff (cvt mudela, mudela, etc.)
636 * dynamic loading of engravers?
640 ****************************************
641 Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
643 > mcmanus@IDT.NET writes:
644 > > > I want different C++ objects (with scheme embedded) to be linked by
645 > > > C++ pointers. I want to access these other objects from the Scheme
646 > > > code, and I want access to these pointers from C++.
648 > > You can do this with a combination of smob's and primitive functions,
649 > > though it may not be be exactly what you wanted. You would have one
650 > > smob for each class in your application, and then you would write a
651 > > primitive function that would return the objects that are linked to a
654 > And the smob and the C++ class are interlinked? Like
657 > Foo_smob *smob_ptr_;
661 > Foo_class *class_ptr_
664 Usually you can get away without having this interlinked structure.
665 One piece of information you need when exporting objects to scheme is
666 the smob tag for your class. You might store this value (a long) into
667 a class static variable, or a file static variable. I'll use a class
668 static variable in this example.
670 I typically use code that works like this (untested code ahead):
673 static long *Foo_smob_tag;
674 SCM obj; // representation as a scheme object, description comes later
677 // call this once on startup
678 void init_Foo_class {
679 static scm_smobfuns type_rec;
681 type_rec.mark = foo_mark;
682 type_rec.free = foo_free;
683 type_rec.print = foo_display;
685 Foo_class::Foo_smob_tag = new int(scm_new_smob(type_rec));
688 When you want to export an object to scheme, you put a pointer to the
689 object itself in the cdr of the cell, and the tag in the car of the
690 cell. The code looks like this:
696 return(SCM_NIMP(obj) && SCM_CAR(obj) == Foo_class::Foo_smob_tag);
699 // given a Scheme representation, return, a C++ representation
703 return((Foo_class*)SCM_CDR(obj));
706 // the SCM representation of the object is stored inside itself
707 // this will become useful when destructor gets called
709 foo_box(Foo_class *foo)
712 SCM_NEWCELL(foo->obj);
713 SCM_SETCAR(foo->obj, Foo_class::Foo_smob_tag);
714 SCM_SETCDR(foo->obj, (SCM)foo);
719 > C++ determines life time, so what is the strategy?
721 What happens now when the destructor gets called? Lets set the cdr to
722 NULL, and then check for that in all of the primitive functions that
723 use your smob. We'll call this notion 'live'; a scheme object is
724 'live' if the C++ representation still exists, it's dead if the C++
725 object is gone. You can still have references to dead objects in
726 scheme code; it's just an error to use them. This idea is stolen from
727 Emacs's handling of buffers ('buffer-live-p' and friends).
729 Add another function, foo_live_p:
734 return(foo_p(obj) && SCM_CDR(obj) != NULL);
737 In you destructor, you need to do:
741 SCM_CDR(this->obj, NULL);
744 When writing new primitives, now just check foo_live_p().
746 I hope the above helps,
752 "Even if you are on the right track, you'll get run over
753 if you just sit there."
754 --Will Rogers (1879-1935)
756 ***************************