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?)
208 * check/set minimum slur/tie length
212 * \breathmark TeX macro
214 * catch GUILE errors?
216 * add new glyphs to font.ly
218 * formatting of input stuff.
220 * \notes{ a \< b \cr } vs \notes{ a \< b \! }
222 * if possible, it might be nice for a warning to appear if someone does
223 \translator with no name and without assigning it to an
228 * 'hinterfleisch' before bar (e.g. wtk1-fugue2)?
230 * \type Voice \times 2/3 { [c8 c16 c16 c16 c16] }
232 * fix singleStaffBracket
234 * repeat bars: need distance after ":|" and before "|:"
236 Summary of minor spelling irregularities:
237 - capitalization/use of underscores in property names
239 * fix SkipBars -> skipBars
241 * \shape 1st dim skipped?
243 * fix marks/barnumbers/marginal notes
246 lbheel = \script { "bheel" 0 0 -1 0 0 }
247 rbheel = \script { "bheel" 0 0 1 0 0 }
248 lbtoe = \script { "btoe" 0 0 -1 0 0 }
249 rbtoe = \script { "btoe" 0 0 1 0 0 }
250 lfheel = \script { "fheel" 0 0 -1 0 0 }
251 rfheel = \script { "fheel" 0 0 1 0 0 }
252 lftoe = \script { "ftoe" 0 0 -1 0 0 }
253 rftoe = \script { "ftoe" 0 0 1 0 0 }
257 portato= \script { "portato" 0 -1 0 1 0 }
260 * check out legal/(c) matters for scores.
262 * check out GCC signatures?
264 * Align_element::padding ?
266 * uniformise property names...
267 - ydirection <-> yDirection
268 - rather allow '_' in identifiers first (i.e. junk ^ and _),
270 - typo checks on property names?
272 * use streambufs and iostream
273 to provide IO handling for TeX stream, mudela stream, data-file.
275 * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
277 * strip EXEs before installing
279 * zip target for binary windows dist (JBR)
281 * junking \skip req in lyrics
284 - \type -> \context ?
288 - mix engraver hacking with music ?
289 - \once\property KEY = VAL
290 - \addtranslator, \removetranslator
291 - junk ^ and _ for scripts
295 * percussion note heads
297 * mi2mu empty staffs.
299 * horizontal centering of dynamics
301 * \font\fontA=feta20.afm (.afm?)
305 * stable make/config stuff
307 * $DEPENDENCIES_OUTPUT support
309 * Xdvi zooming ?! Try to understand GS garbage collection.
310 gs: Error: /undefined in draw_beam
313 * fix vertical alignment and stafflines
315 * GrandStaff needs more work -- I want a single word
316 `harpsichord' to the left of the grandstaff, not one on each
317 stave. (Organ staff -- with separate pedal -- but common
318 properties may be something to think about. Of course for
319 organ you want to be able to give stop indications on the way
320 through, so the \property Voice.Instrument would be a stop,
321 and \property GrandStaff.instrument would be PipeOrgan...)
323 * revise the Score_priority_align_engraver concept. It sucks.
325 * make new VoiceOne, VoiceTwo, VoiceThree contexts with
326 ydirection and hshift preset
328 * *.yo: fix pod manpage layout legacy
330 * text-items clash with stems/beams
332 * --include, -I option for ly2dvi (pass on to lily)
334 * fix placement of beam-less abbrev
337 <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
338 {\voicetwo cis,4 r r | r2. | r1 }> |
341 * try to use template<Type> iso MACRO(Type)
343 - NEWS: ... Musical_pitch (analogous to Duration and Rhythmic_req)
344 think about, analogous to pitch:
345 * { a4 a16 } c <-- duration of c?
346 * < a4 b8 > c <-- duration of c?
350 * fix audio-items (don't use (input) requests, but copy data)
352 * make sure all ex's have a mudela-version
354 * do rest-collisions for Multi_measure_rests as well.
356 * split error/warning in error/warning/non_fatal_error
358 * add a Duration_convert member to Duration_iter to set parameters.
359 Junk global duration settings.
361 * minimum length second part broken tie
363 * en-,discouraged linebreaking:
364 - handle DISALLOW < penalty > FORCE
365 - discourage breaking of slurs
367 * fix variable define/lookup parser global<->paper
369 * fix title/instrument placements; see input/test/title.ly
371 * <\voiceone c4. \voicetwo c4>
373 * add full cello suites to web site (kom op, Maarten!)
375 * Rethink Time_description
376 * \cadenza , \meter, \grouping should all be \properties
381 - abbreviation-beam -> (measured/unmeasured) tremolo
382 - partial -> anacrouse
386 * robustify Beam (in case of no stems, 32nd notes)
388 * decentralised spring factory
390 * move paper vars into engraver properties
392 * check for groff / troff/ nroff et
394 * more intelligent file searching
396 * make LilyPond RPM fully relocatable
398 * disable spaces in TeX stuff
400 * handle ^C for tmp/file creation.
402 * dots & rest collisions.
410 * versioning for Feta
412 * the warning about the negative slur/tie length appears twice
415 * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
418 * the bracket is ugly (wings are too parabolic, should be more circular)
420 * better hshift (dots, distance, head dependent)
422 * clefs (AG): The "8" should appear closer to the actual clef,
425 * put errorlevel in Input class
429 * integrate midi-elts from mi2mu and lily?
456 foo.cc: In function `int f()':
457 foo.cc:6: label `b' used but not defined
468 * make GCC warn about ctor that leaves member vars uninitialised.
470 * GNU diff 2.7: diff -rN does not see a new directory with empty file
474 f = fopen ("/dev/null", "r")
480 - 'double-fix' mode: ignore identical fix, rather than suggest
481 to revert patch direction when (more or less? exactly) the same
487 - fix position of bar number
488 - stack scripts in chords:
489 % fingering: footing:
490 < a-4 c-2 g-1 > < c-\ltoe e-\lheel >
492 - slur parts as a script
493 - stack parameterised scripts for fingering and footing:
496 - automatically add a \version if not present.
499 - convert-mudela -e empty.ly
502 - should handle block comments too.
503 - handle lexer modes (\header, \melodic, \lyric) etc.
506 - fontlock: \melodic \melodic
508 * use properties for:
513 - bartypes (get rid of derived Span_bar_engravers)
518 - optimal pagebreaking.
520 * Unicode support? -> man 7 unicode
523 - detect of 16/8 bit files
524 - examples to go with it.
527 - write a faster Spring_spacer (without matrices if possible)
528 - relate energybound to linelen unitspace fontsize etc.
529 - used fixed point fp?
532 - output header info to MIDI too.
534 * a musical dictionary. See Documentation/vocabulary-*, other
544 - guitar chords (fret diagrams)
545 - other chord name styles (american(?) style)
550 - derive lily_stream, Dstream, texstream from ostream?
551 - indentable stream as baseclass for TeX stream, lily stream, Dstream.
552 - use dstream feature in mi2mu
553 - integrate IO checking into stream class
560 * add to MIDI output:
562 - ornaments (and trills?)
567 - account for rhythmic position in measure
571 - make separate class for Grace_*_engravers
572 (which is at Voice_gravs level)
573 - make encapsulated spacing problems.
575 * accidentals per Voice_group
577 * Output class, handles : (smallish)
578 - help text /(c) notice?
580 - warning /errors/progress
581 - abort on error/warning; exit status
582 - quiet/ignore-version options
585 * elaborate Staff_side baseclass:
592 - PS lines to .eps files
593 - write custom prolog
595 * Output an output format independent (ofi) typeset file; and
596 make ofi2 TeX, MusiXTex, Display PostScript, PostScript,
597 Ascii... interpreters. (difficult)
600 - Common Music Notation
601 - PostScript output (esp. Beams, Slurs, etc)
602 - Move all Score_elems, into libmutype.a
606 - Doc (C) stuff of sheet music
607 - a better format? SGML? TeX? Info?
610 * more spanners (smallish)
614 * Rewrite Stem, Beam and Rhythmic_grouping (hairy)
616 - doc on Rhythmic_grouping
617 - general shaving on Beam and Stem
619 - separate visual from rhythmic info even more
623 - Ledger lines, should be separate item: Ledger_lines, Ledger_lines
624 - set different line sizes / thicknesses
625 - beam stem showthrough, inter beam sizes (french vs german style)
628 - left/right note balls should be handled by Collision:
629 < \multi 2; { \stem 1; <b c> } { <f as b> } >
632 - merge key{item} & localkey{item}?
633 - spacing, national styles?
636 - redo Notehead to allow digits as heads
637 - add a \tablature {} lexer mode for easy entering
639 * should adjust stemlength for flag number.
642 - caching breakpoints
644 - specify number of lines
648 * c4 4 4 4 for c4 c4 c4 c4?
650 * neatly (and readably) expressing concurrent
665 * relative mode for pitch entering
667 * configure pitch_byte
669 * rest name configurable
673 * limit memory usage; the full coriolan takes up too much resources.
675 * fix confusing naming in Engraver vs Engraver_group_engraver (context)
677 * progress when creating MIDI elts.
679 * A range for context errors (eg. mark both { and }. )
681 * lyric in staff (sharpsharp in staff, text below)
685 * write Dynamic_line (to group dynamics horizontally)
687 * use Real for all y positions.
688 - use translate_axis( .. ,Y_AXIS) iso separate variables.
690 * half-sharps, half-flats
692 * adaptive accidental spacing.
694 * handle EOF graciously in error messages.
696 * declare notenametab?
698 * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
700 * stafftypes: voice names/ instrument names.
704 * C meter iso 4/4, idem for alla breve, etc.
706 * textspanner: center position
708 * % toe to bheel four to five
714 (where "to" is a tiny bow)
716 * auxilliary file for caching info.
720 * clean solution for staffsize in items.
726 * Output data structures of Mudela in XML/SGML.
728 * create libmudela, or liblily_frontend
730 * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
732 * Spacing_request for manually adjusting spacing
734 * caching breakpoints
736 * used fixedpoint arithmetic for min. energy.
738 * move towards incremental algorithms.
740 * far fetched language ideas
741 - design meta-language like TeX and Metafont
742 - programming/macros input
744 * versioning stuff (cvt mudela, mudela, etc.)
748 * dynamic loading of engravers?
752 ****************************************
753 Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
755 > mcmanus@IDT.NET writes:
756 > > > I want different C++ objects (with scheme embedded) to be linked by
757 > > > C++ pointers. I want to access these other objects from the Scheme
758 > > > code, and I want access to these pointers from C++.
760 > > You can do this with a combination of smob's and primitive functions,
761 > > though it may not be be exactly what you wanted. You would have one
762 > > smob for each class in your application, and then you would write a
763 > > primitive function that would return the objects that are linked to a
766 > And the smob and the C++ class are interlinked? Like
769 > Foo_smob *smob_ptr_;
773 > Foo_class *class_ptr_
776 Usually you can get away without having this interlinked structure.
777 One piece of information you need when exporting objects to scheme is
778 the smob tag for your class. You might store this value (a long) into
779 a class static variable, or a file static variable. I'll use a class
780 static variable in this example.
782 I typically use code that works like this (untested code ahead):
785 static long *Foo_smob_tag;
786 SCM obj; // representation as a scheme object, description comes later
789 // call this once on startup
790 void init_Foo_class {
791 static scm_smobfuns type_rec;
793 type_rec.mark = foo_mark;
794 type_rec.free = foo_free;
795 type_rec.print = foo_display;
797 Foo_class::Foo_smob_tag = new int(scm_new_smob(type_rec));
800 When you want to export an object to scheme, you put a pointer to the
801 object itself in the cdr of the cell, and the tag in the car of the
802 cell. The code looks like this:
808 return(SCM_NIMP(obj) && SCM_CAR(obj) == Foo_class::Foo_smob_tag);
811 // given a Scheme representation, return, a C++ representation
815 return((Foo_class*)SCM_CDR(obj));
818 // the SCM representation of the object is stored inside itself
819 // this will become useful when destructor gets called
821 foo_box(Foo_class *foo)
824 SCM_NEWCELL(foo->obj);
825 SCM_SETCAR(foo->obj, Foo_class::Foo_smob_tag);
826 SCM_SETCDR(foo->obj, (SCM)foo);
831 > C++ determines life time, so what is the strategy?
833 What happens now when the destructor gets called? Lets set the cdr to
834 NULL, and then check for that in all of the primitive functions that
835 use your smob. We'll call this notion 'live'; a scheme object is
836 'live' if the C++ representation still exists, it's dead if the C++
837 object is gone. You can still have references to dead objects in
838 scheme code; it's just an error to use them. This idea is stolen from
839 Emacs's handling of buffers ('buffer-live-p' and friends).
841 Add another function, foo_live_p:
846 return(foo_p(obj) && SCM_CDR(obj) != NULL);
849 In you destructor, you need to do:
853 SCM_CDR(this->obj, NULL);
856 When writing new primitives, now just check foo_live_p().
858 I hope the above helps,
864 "Even if you are on the right track, you'll get run over
865 if you just sit there."
866 --Will Rogers (1879-1935)
868 ***************************
870 > I am still muddling along with integrating GUILE in LilyPond, and I
871 > have a question. I want to replace an existing C++ implementation of
872 > identifier tables by GUILE's code. I've managed to replace
874 > Hash_table<String,Identifier*>
878 > Hash_table<SCM, Identifier*>
880 > and use interning and GUILE symbols for doing the identifier lookup.
881 > But I'd like to use GUILE's hash tables as well, and that's were my
882 > question comes in: is there an interface that allows me to iterate
883 > through the entries of a GUILE hash table?
885 I use the following, which should definitely be provided somewhere
886 in guile, but isn't, AFAIK:
888 (define (hash-table-for-each fn ht)
890 ((= i (vector-length ht)))
891 (do ((alist (vector-ref ht i) (cdr alist)))
893 (fn (car (car alist)) (cdr (car alist))))))
895 (define (hash-table-map fn ht)
898 ((= i (vector-length ht)) (reverse ret-ls))
899 (do ((alist (vector-ref ht i) (cdr alist)))
901 (set! ret-ls (cons (fn (car (car alist)) (cdr (car alist))) ret-ls)))))
903 If you want a C version, you can run the above code through hobbit, or
904 tranlate it to C by hand.
910 "Whenever you find yourself on the side of the majority, it is time to
913 ***********************