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
10 *In a piece such as the Zipoli piece in mutopia/... there is a stray
11 `8' over every bar line when processed by LilyPond 1.1.25.
15 * junk Text_def, use G_text_item in stead.
19 * fix partial measures in meaningful way.
21 * fix AFM for BlueSky AFM files.
23 * working notehead style.
25 * add scripts to bars eg. |^"bla"
27 * relative mode for mi2mu
29 * uniformise recent feta contributions.
30 - use SCM and Molecules for {accordeon stuff, }
31 - bigger and fatter 4/4 C
33 * make a SMOB of Atom and Molecule
35 * use kerning for dynamics.
37 * sort out directory stuff.
39 - -I option per filetype?
43 I also found a few bugs:
45 * The examples in input/test/bar-scripts.ly and score-bar-scripts.ly
46 don't work. The problem seems to be that you can't define a
47 a score identifier and then use it in the \score block.
50 - make separate MF chars for endings of ledger lines, and calc rest of lines.
52 * support_l_arr_ empty in staff-margin's G_staff_side_item
57 How can I specify a chord whose duration is longer than a whole note?
59 \type ChordNames { \chord{ A1*2-min } }
61 gives me a parse error. And \times doesn't work either. I can't use
62 a spacer note. So it seems to be impossible to have long chords of
63 general length. Of course, in the example above I can use \breve.
64 But what if I want a chord that lasts for 3 whole notes? Or what
65 about 2.5 whole notes? Is there a mechanism for getting this kind of
69 Why does my second extender request get junked in the following:
72 < \notes \relative c''{
73 a4()b()c()d c()d()b()a }
74 \type Lyrics \lyrics {
78 It seems that \cr and \decr don't work any more.
83 \paper{linewidth=-1.;}
88 qq.ly:3:9: warning: can't find (de)crescendo to end:
94 Use of semicolons is still rather confusing. They are obligatory
95 after some types of assignments and illegal after others.
97 \property foo=bar illegal
98 foo = 3 at top level illegal
99 foo = 3 inside \paper obligatory
100 foo = \notes{ ...} top level illegal
101 foo = \translator{ } in \paper obligatory
103 As far as I can tell, the sole accomplishment of this syntactic
104 irregularity is to keep the user as confused as possible.
107 I was trying to get interstaff beams to work and did this:
111 \type Staff=one \notes\relative c'{
113 [c8 c \translator Staff=two \stemup c c]
114 \translator Staff=one
116 [ b8 \translator Staff=two a8]
117 \translator Staff=one
120 \type Staff=two \notes{ \clef bass; s1 }
125 minVerticalAlign = 3.0*\staffheight;
126 maxVerticalAlign = 3.0*\staffheight;
132 The beams are at the right angle, but they aren't in the right place.
139 * fractional chord durs.
141 * hang Item on Spanner
143 * remove Interval dim_ from Dimension_cache and rename the struct.
145 * do --safe for PS output?
147 * convert-mudela --output
149 * Staff_margin (with a partial measure.)
151 * fix "I've been drinking too much"
153 * fix pletvisibility properties:
154 - bracket on/off/no-bracket-when-beam
155 - num on/off/no-num-when-beam
161 * junk text{sharp,flat,etc}
163 * fix convert-mudela manpage
165 * decimal point in \paper {}
167 *{ \voiceone <a'4.*2/3 d''4.*2/3 fis''4.*2/3> [g''8 fis'' e''] d''4 |}
169 { \voicetwo d'4 d'2.*2/3 } spacing
171 * tied notes for MIDI
173 * sharp /flat on trills (in MIDI ??)
175 * scm-ify \property values.
177 * move class Lookup {} into scm
181 * collisions/voices \voiceone \voicetwo are broken; see
182 input/praeludium-fuga-E.ly
183 mutopia/J.S.Bach/wtk1-fugue2.ly
185 * fix: text on rests: rediculous dims
188 - bottomnote for ly2dvi
192 - default duration? duration must be not entered
193 explicitely on first note.
195 * turn slope-damping on/off
203 * fix height of / collisions with lyrics (chords),
204 see input/test/vertical-text.ly; input/test/repeat.ly
206 * latex bla.tex broken (titles / \lilyfooter stuff?)
210 * \breathmark TeX macro
212 * catch GUILE errors?
214 * add new glyphs to font.ly
216 * formatting of input stuff.
218 * \notes{ a \< b \cr } vs \notes{ a \< b \! }
220 * if possible, it might be nice for a warning to appear if someone does
221 \translator with no name and without assigning it to an
226 * 'hinterfleisch' before bar (e.g. wtk1-fugue2)?
228 * \type Voice \times 2/3 { [c8 c16 c16 c16 c16] }
230 * fix singleStaffBracket
232 * repeat bars: need distance after ":|" and before "|:"
234 Summary of minor spelling irregularities:
235 - capitalization/use of underscores in property names
237 * fix SkipBars -> skipBars
239 * \shape 1st dim skipped?
241 * fix marks/barnumbers/marginal notes
244 lbheel = \script { "bheel" 0 0 -1 0 0 }
245 rbheel = \script { "bheel" 0 0 1 0 0 }
246 lbtoe = \script { "btoe" 0 0 -1 0 0 }
247 rbtoe = \script { "btoe" 0 0 1 0 0 }
248 lfheel = \script { "fheel" 0 0 -1 0 0 }
249 rfheel = \script { "fheel" 0 0 1 0 0 }
250 lftoe = \script { "ftoe" 0 0 -1 0 0 }
251 rftoe = \script { "ftoe" 0 0 1 0 0 }
255 portato= \script { "portato" 0 -1 0 1 0 }
258 * check out legal/(c) matters for scores.
260 * check out GCC signatures?
262 * Align_element::padding ?
264 * uniformise property names...
265 - ydirection <-> yDirection
266 - rather allow '_' in identifiers first (i.e. junk ^ and _),
268 - typo checks on property names?
270 * use streambufs and iostream
271 to provide IO handling for TeX stream, mudela stream, data-file.
273 * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
275 * strip EXEs before installing
277 * zip target for binary windows dist (JBR)
279 * junking \skip req in lyrics
282 - \type -> \context ?
286 - mix engraver hacking with music ?
287 - \once\property KEY = VAL
288 - \addtranslator, \removetranslator
289 - junk ^ and _ for scripts
293 * percussion note heads
295 * mi2mu empty staffs.
297 * horizontal centering of dynamics
299 * \font\fontA=feta20.afm (.afm?)
303 * stable make/config stuff
305 * $DEPENDENCIES_OUTPUT support
307 * Xdvi zooming ?! Try to understand GS garbage collection.
308 gs: Error: /undefined in draw_beam
311 * fix vertical alignment and stafflines
313 * GrandStaff needs more work -- I want a single word
314 `harpsichord' to the left of the grandstaff, not one on each
315 stave. (Organ staff -- with separate pedal -- but common
316 properties may be something to think about. Of course for
317 organ you want to be able to give stop indications on the way
318 through, so the \property Voice.Instrument would be a stop,
319 and \property GrandStaff.instrument would be PipeOrgan...)
321 * revise the Score_priority_align_engraver concept. It sucks.
323 * make new VoiceOne, VoiceTwo, VoiceThree contexts with
324 ydirection and hshift preset
326 * *.yo: fix pod manpage layout legacy
328 * text-items clash with stems/beams
330 * --include, -I option for ly2dvi (pass on to lily)
332 * fix placement of beam-less abbrev
335 <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
336 {\voicetwo cis,4 r r | r2. | r1 }> |
339 * try to use template<Type> iso MACRO(Type)
341 - NEWS: ... Musical_pitch (analogous to Duration and Rhythmic_req)
342 think about, analogous to pitch:
343 * { a4 a16 } c <-- duration of c?
344 * < a4 b8 > c <-- duration of c?
348 * fix audio-items (don't use (input) requests, but copy data)
350 * make sure all ex's have a mudela-version
352 * do rest-collisions for Multi_measure_rests as well.
354 * split error/warning in error/warning/non_fatal_error
356 * add a Duration_convert member to Duration_iter to set parameters.
357 Junk global duration settings.
359 * minimum length second part broken tie
361 * en-,discouraged linebreaking:
362 - handle DISALLOW < penalty > FORCE
363 - discourage breaking of slurs
365 * fix variable define/lookup parser global<->paper
367 * fix title/instrument placements; see input/test/title.ly
369 * <\voiceone c4. \voicetwo c4>
371 * add full cello suites to web site (kom op, Maarten!)
373 * Rethink Time_description
374 * \cadenza , \meter, \grouping should all be \properties
379 - abbreviation-beam -> (measured/unmeasured) tremolo
380 - partial -> anacrouse
384 * robustify Beam (in case of no stems, 32nd notes)
386 * decentralised spring factory
388 * move paper vars into engraver properties
390 * check for groff / troff/ nroff et
392 * more intelligent file searching
394 * make LilyPond RPM fully relocatable
396 * disable spaces in TeX stuff
398 * handle ^C for tmp/file creation.
400 * dots & rest collisions.
408 * versioning for Feta
410 * the warning about the negative slur/tie length appears twice
413 * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
416 * the bracket is ugly (wings are too parabolic, should be more circular)
418 * better hshift (dots, distance, head dependent)
420 * clefs (AG): The "8" should appear closer to the actual clef,
423 * put errorlevel in Input class
427 * integrate midi-elts from mi2mu and lily?
454 foo.cc: In function `int f()':
455 foo.cc:6: label `b' used but not defined
466 * make GCC warn about ctor that leaves member vars uninitialised.
468 * GNU diff 2.7: diff -rN does not see a new directory with empty file
472 f = fopen ("/dev/null", "r")
478 - 'double-fix' mode: ignore identical fix, rather than suggest
479 to revert patch direction when (more or less? exactly) the same
485 - fix position of bar number
486 - stack scripts in chords:
487 % fingering: footing:
488 < a-4 c-2 g-1 > < c-\ltoe e-\lheel >
490 - slur parts as a script
491 - stack parameterised scripts for fingering and footing:
494 - automatically add a \version if not present.
497 - convert-mudela -e empty.ly
500 - should handle block comments too.
501 - handle lexer modes (\header, \melodic, \lyric) etc.
504 - fontlock: \melodic \melodic
506 * use properties for:
511 - bartypes (get rid of derived Span_bar_engravers)
516 - optimal pagebreaking.
518 * Unicode support? -> man 7 unicode
521 - detect of 16/8 bit files
522 - examples to go with it.
525 - write a faster Spring_spacer (without matrices if possible)
526 - relate energybound to linelen unitspace fontsize etc.
527 - used fixed point fp?
530 - output header info to MIDI too.
532 * a musical dictionary. See Documentation/vocabulary-*, other
542 - guitar chords (fret diagrams)
543 - other chord name styles (american(?) style)
548 - derive lily_stream, Dstream, texstream from ostream?
549 - indentable stream as baseclass for TeX stream, lily stream, Dstream.
550 - use dstream feature in mi2mu
551 - integrate IO checking into stream class
558 * add to MIDI output:
560 - ornaments (and trills?)
565 - account for rhythmic position in measure
569 - make separate class for Grace_*_engravers
570 (which is at Voice_gravs level)
571 - make encapsulated spacing problems.
573 * accidentals per Voice_group
575 * Output class, handles : (smallish)
576 - help text /(c) notice?
578 - warning /errors/progress
579 - abort on error/warning; exit status
580 - quiet/ignore-version options
583 * elaborate Staff_side baseclass:
590 - PS lines to .eps files
591 - write custom prolog
593 * Output an output format independent (ofi) typeset file; and
594 make ofi2 TeX, MusiXTex, Display PostScript, PostScript,
595 Ascii... interpreters. (difficult)
598 - Common Music Notation
599 - PostScript output (esp. Beams, Slurs, etc)
600 - Move all Score_elems, into libmutype.a
604 - Doc (C) stuff of sheet music
605 - a better format? SGML? TeX? Info?
608 * more spanners (smallish)
612 * Rewrite Stem, Beam and Rhythmic_grouping (hairy)
614 - doc on Rhythmic_grouping
615 - general shaving on Beam and Stem
617 - separate visual from rhythmic info even more
621 - Ledger lines, should be separate item: Ledger_lines, Ledger_lines
622 - set different line sizes / thicknesses
623 - beam stem showthrough, inter beam sizes (french vs german style)
626 - left/right note balls should be handled by Collision:
627 < \multi 2; { \stem 1; <b c> } { <f as b> } >
630 - merge key{item} & localkey{item}?
631 - spacing, national styles?
634 - redo Notehead to allow digits as heads
635 - add a \tablature {} lexer mode for easy entering
637 * should adjust stemlength for flag number.
640 - caching breakpoints
642 - specify number of lines
646 * c4 4 4 4 for c4 c4 c4 c4?
648 * neatly (and readably) expressing concurrent
663 * relative mode for pitch entering
665 * configure pitch_byte
667 * rest name configurable
671 * limit memory usage; the full coriolan takes up too much resources.
673 * fix confusing naming in Engraver vs Engraver_group_engraver (context)
675 * progress when creating MIDI elts.
677 * A range for context errors (eg. mark both { and }. )
679 * lyric in staff (sharpsharp in staff, text below)
683 * write Dynamic_line (to group dynamics horizontally)
685 * use Real for all y positions.
686 - use translate_axis( .. ,Y_AXIS) iso separate variables.
688 * half-sharps, half-flats
690 * adaptive accidental spacing.
692 * handle EOF graciously in error messages.
694 * declare notenametab?
696 * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
698 * stafftypes: voice names/ instrument names.
702 * C meter iso 4/4, idem for alla breve, etc.
704 * textspanner: center position
706 * % toe to bheel four to five
712 (where "to" is a tiny bow)
714 * auxilliary file for caching info.
718 * clean solution for staffsize in items.
724 * Output data structures of Mudela in XML/SGML.
726 * create libmudela, or liblily_frontend
728 * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
730 * Spacing_request for manually adjusting spacing
732 * caching breakpoints
734 * used fixedpoint arithmetic for min. energy.
736 * move towards incremental algorithms.
738 * far fetched language ideas
739 - design meta-language like TeX and Metafont
740 - programming/macros input
742 * versioning stuff (cvt mudela, mudela, etc.)
746 * dynamic loading of engravers?
750 ****************************************
751 Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
753 > mcmanus@IDT.NET writes:
754 > > > I want different C++ objects (with scheme embedded) to be linked by
755 > > > C++ pointers. I want to access these other objects from the Scheme
756 > > > code, and I want access to these pointers from C++.
758 > > You can do this with a combination of smob's and primitive functions,
759 > > though it may not be be exactly what you wanted. You would have one
760 > > smob for each class in your application, and then you would write a
761 > > primitive function that would return the objects that are linked to a
764 > And the smob and the C++ class are interlinked? Like
767 > Foo_smob *smob_ptr_;
771 > Foo_class *class_ptr_
774 Usually you can get away without having this interlinked structure.
775 One piece of information you need when exporting objects to scheme is
776 the smob tag for your class. You might store this value (a long) into
777 a class static variable, or a file static variable. I'll use a class
778 static variable in this example.
780 I typically use code that works like this (untested code ahead):
783 static long *Foo_smob_tag;
784 SCM obj; // representation as a scheme object, description comes later
787 // call this once on startup
788 void init_Foo_class {
789 static scm_smobfuns type_rec;
791 type_rec.mark = foo_mark;
792 type_rec.free = foo_free;
793 type_rec.print = foo_display;
795 Foo_class::Foo_smob_tag = new int(scm_new_smob(type_rec));
798 When you want to export an object to scheme, you put a pointer to the
799 object itself in the cdr of the cell, and the tag in the car of the
800 cell. The code looks like this:
806 return(SCM_NIMP(obj) && SCM_CAR(obj) == Foo_class::Foo_smob_tag);
809 // given a Scheme representation, return, a C++ representation
813 return((Foo_class*)SCM_CDR(obj));
816 // the SCM representation of the object is stored inside itself
817 // this will become useful when destructor gets called
819 foo_box(Foo_class *foo)
822 SCM_NEWCELL(foo->obj);
823 SCM_SETCAR(foo->obj, Foo_class::Foo_smob_tag);
824 SCM_SETCDR(foo->obj, (SCM)foo);
829 > C++ determines life time, so what is the strategy?
831 What happens now when the destructor gets called? Lets set the cdr to
832 NULL, and then check for that in all of the primitive functions that
833 use your smob. We'll call this notion 'live'; a scheme object is
834 'live' if the C++ representation still exists, it's dead if the C++
835 object is gone. You can still have references to dead objects in
836 scheme code; it's just an error to use them. This idea is stolen from
837 Emacs's handling of buffers ('buffer-live-p' and friends).
839 Add another function, foo_live_p:
844 return(foo_p(obj) && SCM_CDR(obj) != NULL);
847 In you destructor, you need to do:
851 SCM_CDR(this->obj, NULL);
854 When writing new primitives, now just check foo_live_p().
856 I hope the above helps,
862 "Even if you are on the right track, you'll get run over
863 if you just sit there."
864 --Will Rogers (1879-1935)
866 ***************************
868 > I am still muddling along with integrating GUILE in LilyPond, and I
869 > have a question. I want to replace an existing C++ implementation of
870 > identifier tables by GUILE's code. I've managed to replace
872 > Hash_table<String,Identifier*>
876 > Hash_table<SCM, Identifier*>
878 > and use interning and GUILE symbols for doing the identifier lookup.
879 > But I'd like to use GUILE's hash tables as well, and that's were my
880 > question comes in: is there an interface that allows me to iterate
881 > through the entries of a GUILE hash table?
883 I use the following, which should definitely be provided somewhere
884 in guile, but isn't, AFAIK:
886 (define (hash-table-for-each fn ht)
888 ((= i (vector-length ht)))
889 (do ((alist (vector-ref ht i) (cdr alist)))
891 (fn (car (car alist)) (cdr (car alist))))))
893 (define (hash-table-map fn ht)
896 ((= i (vector-length ht)) (reverse ret-ls))
897 (do ((alist (vector-ref ht i) (cdr alist)))
899 (set! ret-ls (cons (fn (car (car alist)) (cdr (car alist))) ret-ls)))))
901 If you want a C version, you can run the above code through hobbit, or
902 tranlate it to C by hand.
908 "Whenever you find yourself on the side of the majority, it is time to
911 ***********************