1 -*-outline-layout:(2 (-1 -1 0 :) 0);outline-stylish-prefixes:nil-*-
5 Features you cannot find in the doco as working, should be
6 mentioned here. This is an assorted collection of stuff that will be
7 done, might be done, or is an idea that I want to think about
9 Most of the items are marked in the code as well, with full
11 grep for TODO and ugh/ugr/urg
15 . * input/praeludium-fuga-E.ly
16 . * mutopia/J.S.Bach/wtk1-fugue2.ly
17 . * fix: text on rests: rediculous dims
20 duration must be not entered explicitely on first note.
21 . * fix singleStaffBracket
22 . * \shape 1st dim skipped?
23 . * turn slope-damping on/off
27 . * fix height of / collisions with lyrics (chords),
28 see input/test/vertical-text.ly; input/test/repeat.ly
29 . * latex bla.tex broken (titles / \lilyfooter stuff?)
30 . * fix dynamics decently, ie. use kerning & ligatures.
31 . * fix "I've been drinking too much"
32 . * support_l_arr_ empty in staff-margin's G_staff_side_item
33 . * remove old preformats in RPM
35 . * is \break broken? input/test/hara-kiri.ly
36 . * fix OrchestralScore and Hara-kiri (i.e., fix Coriolan)
39 . * profile atom smobs
40 . * make ly2dvi test page.
41 . * Try to use Killing_cons iso. Pointer_list
42 . * make dependencies () a virtual function.
43 . * fix Repeated_music_iterator::ok() (constness.)
44 . * one big ly2dvi input that includes *all* tests.
45 . * Don't use boolean properties (0,1), instead check existence
47 . * store req -> element, element -> element causes for warnings
48 . * junk Text_def, use G_text_item instead.
50 . * fix partial measures in meaningful way.
51 . * fix AFM for BlueSky AFM files.
52 . * working notehead style.
53 . * add scripts to bars eg. |^"bla"
54 . * relative mode for mi2mu
55 . * uniformise recent feta contributions.
56 . * use SCM and Molecules for {accordeon stuff, }
57 . * bigger and fatter 4/4 C
58 . * sort out directory stuff.
60 . * -I option per filetype?
62 . * todo doc left/rightbeamcount
63 . * doc Single_malt_grouping_item
64 . * ly2dvi/lilypond logfile.
65 . * How can I specify a chord whose duration is longer than a whole note?
66 \type ChordNames { \chord{ A1*2-min } }
68 gives me a parse error. And \times doesn't work either. I can't use
69 a spacer note. So it seems to be impossible to have long chords of
70 general length. Of course, in the example above I can use \breve.
71 But what if I want a chord that lasts for 3 whole notes? Or what
72 about 2.5 whole notes? Is there a mechanism for getting this kind of
76 Why does my second extender request get junked in the following:
79 < \notes \relative c''{
80 a4()b()c()d c()d()b()a }
81 \type Lyrics \lyrics {
85 It seems that \cr and \decr don't work any more.
90 \paper{linewidth=-1.;}
95 qq.ly:3:9: warning: can't find (de)crescendo to end:
101 Use of semicolons is still rather confusing. They are obligatory
102 after some types of assignments and illegal after others.
104 \property foo=bar illegal
105 foo = 3 at top level illegal
106 foo = 3 inside \paper obligatory
107 foo = \notes{ ...} top level illegal
108 foo = \translator{ } in \paper obligatory
110 As far as I can tell, the sole accomplishment of this syntactic
111 irregularity is to keep the user as confused as possible.
114 I was trying to get interstaff beams to work and did this:
118 \type Staff=one \notes\relative c'{
120 [c8 c \translator Staff=two \stemup c c]
121 \translator Staff=one
123 [ b8 \translator Staff=two a8]
124 \translator Staff=one
127 \type Staff=two \notes{ \clef bass; s1 }
132 minVerticalAlign = 3.0*\staffheight;
133 maxVerticalAlign = 3.0*\staffheight;
139 The beams are at the right angle, but they aren't in the right place.
140 . * fractional chord durs.
141 . * hang Item on Spanner
142 . * remove Interval dim_ from Dimension_cache and rename the struct.
143 . * do --safe for PS output?
144 . * convert-mudela --output
145 . * Staff_margin (with a partial measure.)
146 . * fix "I've been drinking too much"
147 r * fix pletvisibility properties:
148 . * bracket on/off/no-bracket-when-beam
149 . * num on/off/no-num-when-beam
152 . * junk text{sharp,flat,etc}
153 . * fix convert-mudela manpage
154 . * decimal point in \paper {}
155 . * { \voiceone <a'4.*2/3 d''4.*2/3 fis''4.*2/3> [g''8 fis'' e''] d''4 |}
157 { \voicetwo d'4 d'2.*2/3 } spacing
158 . * tied notes for MIDI
159 . * sharp /flat on trills (in MIDI ??)
160 . * scm-ify \property values.
161 . * move class Lookup {} into scm
162 . * collisions/voices \voiceone \voicetwo are broken; see
164 . * \breathmark TeX macro
165 . * catch GUILE errors?
166 . * add new glyphs to font.ly
167 . * formatting of input stuff.
168 . * \notes{ a \< b \cr } vs \notes{ a \< b \! }
169 . * if possible, it might be nice for a warning to appear if someone does
170 \translator with no name and without assigning it to an
172 . * space after bars?
173 . * 'hinterfleisch' before bar (e.g. wtk1-fugue2)?
174 . * \type Voice \times 2/3 { [c8 c16 c16 c16 c16] }
175 . * repeat bars: need distance after ":|" and before "|:"
176 .* SPELLING IRREGULARITIES
177 . * capitalization/use of underscores in property names
178 . * fix SkipBars -> skipBars
179 . * fix marks/barnumbers/marginal notes
181 lbheel = \script { "bheel" 0 0 -1 0 0 }
182 rbheel = \script { "bheel" 0 0 1 0 0 }
183 lbtoe = \script { "btoe" 0 0 -1 0 0 }
184 rbtoe = \script { "btoe" 0 0 1 0 0 }
185 lfheel = \script { "fheel" 0 0 -1 0 0 }
186 rfheel = \script { "fheel" 0 0 1 0 0 }
187 lftoe = \script { "ftoe" 0 0 -1 0 0 }
188 rftoe = \script { "ftoe" 0 0 1 0 0 }
190 portato= \script { "portato" 0 -1 0 1 0 }
192 . * bottomnote for ly2dvi
193 . * cf'able ly2dvi tagline.
196 . * check out legal/(c) matters for scores.
197 . * check out GCC signatures?
198 . * Align_element::padding ?
199 . * uniformise property names...
200 . * ydirection <-> yDirection
201 . * rather allow '_' in identifiers first (i.e. junk ^ and _),
203 . * typo checks on property names?
204 . * use streambufs and iostream
205 to provide IO handling for TeX stream, mudela stream, data-file.
206 . * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
207 . * strip EXEs before installing
208 . * zip target for binary windows dist (JBR)
209 . * junking \skip req in lyrics
211 . * \type -> \context ?
214 . * \bla {} vs \bla ;
215 . * mix engraver hacking with music ?
216 . * \once\property KEY = VAL
217 . * \addtranslator, \removetranslator
218 . * junk ^ and _ for scripts
219 . * junk _ for lyrics.
220 . * abstract grammar.
221 . * percussion note heads
222 . * mi2mu empty staffs.
223 . * horizontal centering of dynamics
225 . * stable make/config stuff
226 . * $DEPENDENCIES_OUTPUT support
227 . * Xdvi zooming ?! Try to understand GS garbage collection.
228 gs: Error: /undefined in draw_beam
230 . * fix vertical alignment and stafflines
231 . * GrandStaff needs more work -- I want a single word
232 `harpsichord' to the left of the grandstaff, not one on each
233 stave. (Organ staff -- with separate pedal -- but common
234 properties may be something to think about. Of course for
235 organ you want to be able to give stop indications on the way
236 through, so the \property Voice.Instrument would be a stop,
237 and \property GrandStaff.instrument would be PipeOrgan...)
238 . * revise the Score_priority_align_engraver concept. It sucks.
239 . * make new VoiceOne, VoiceTwo, VoiceThree contexts with
240 ydirection and hshift preset
241 . * *.yo: fix pod manpage layout legacy
242 . * text-items clash with stems/beams
243 . * --include, -I option for ly2dvi (pass on to lily)
244 . * fix placement of beam-less abbrev
246 <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
247 {\voicetwo cis,4 r r | r2. | r1 }> |
249 . * try to use template<Type> iso MACRO(Type)
250 . * NEWS: ... Musical_pitch (analogous to Duration and Rhythmic_req)
251 think about, analogous to pitch:
252 * { a4 a16 } c <-- duration of c?
253 * < a4 b8 > c <-- duration of c?
255 . * fix audio-items (don't use (input) requests, but copy data)
256 . * make sure all ex's have a mudela-version
257 . * do rest-collisions for Multi_measure_rests as well.
258 . * split error/warning in error/warning/non_fatal_error
259 . * add a Duration_convert member to Duration_iter to set parameters.
260 Junk global duration settings.
261 . * minimum length second part broken tie
262 . * en-,discouraged linebreaking:
263 . * handle DISALLOW < penalty > FORCE
264 . * discourage breaking of slurs
265 . * fix variable define/lookup parser global<->paper
266 . * fix title/instrument placements; see input/test/title.ly
267 . * <\voiceone c4. \voicetwo c4>
268 . * add full cello suites to web site (kom op, Maarten!)
269 . * Rethink Time_description
270 * \cadenza , \meter, \grouping should all be \properties
273 . * abbrev -> tremolo
274 . * abbreviation-beam -> (measured/unmeasured) tremolo
275 . * partial -> anacrouse
277 . * robustify Beam (in case of no stems, 32nd notes)
278 . * decentralised spring factory
279 . * move paper vars into engraver properties
280 . * check for groff / troff/ nroff et
281 . * more intelligent file searching
282 . * make LilyPond RPM fully relocatable
283 . * disable spaces in TeX stuff
284 . * handle ^C for tmp/file creation.
285 . * dots & rest collisions.
291 . * versioning for Feta
292 . * the warning about the negative slur/tie length appears twice
294 . * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
296 . * the bracket is ugly (wings are too parabolic, should be more circular)
297 . * better hshift (dots, distance, head dependent)
298 * clefs (AG): The "8" should appear closer to the actual clef,
300 . * put errorlevel in Input class
301 . * junk nesting slurs
302 . * integrate midi-elts from mi2mu and lily?
304 . * GNU diff 2.7: diff -rN does not see a new directory with empty file
306 f = fopen ("/dev/null", "r")
308 .* 3RD PARTY PROJECTS:
309 . * make GCC warn about ctor that leaves member vars uninitialised.
311 . * 'double-fix' mode: ignore identical fix, rather than suggest
312 to revert patch direction when (more or less? exactly) the same
316 . * fix position of bar number
317 . * stack scripts in chords:
318 % fingering: footing:
319 < a-4 c-2 g-1 > < c-\ltoe e-\lheel >
321 . * slur parts as a script
322 . * stack parameterised scripts for fingering and footing:
324 . * automatically add a \version if not present.
327 . * convert-mudela -e empty.ly
328 . * emacs mudela-mode
329 . * should handle block comments too.
330 . * handle lexer modes (\header, \melodic, \lyric) etc.
333 . * fontlock: \melodic \melodic
334 . * use properties for:
339 . * bartypes (get rid of derived Span_bar_engravers)
343 . * optimal pagebreaking.
344 . * Unicode support? -> man 7 unicode
347 . * detect of 16/8 bit files
348 . * examples to go with it.
350 . * write a faster Spring_spacer (without matrices if possible)
351 . * relate energybound to linelen unitspace fontsize etc.
352 . * used fixed point fp?
354 . * output header info to MIDI too.
355 . * a musical dictionary. See Documentation/vocabulary-*, other
364 . * guitar chords (fret diagrams)
365 . * other chord name styles (american(?) style)
369 . * derive lily_stream, Dstream, texstream from ostream?
370 . * indentable stream as baseclass for TeX stream, lily stream, Dstream.
371 . * use dstream feature in mi2mu
372 . * integrate IO checking into stream class
377 . * add to MIDI output:
379 . * ornaments (and trills?)
384 . * account for rhythmic position in measure
387 . * make separate class for Grace_*_engravers
388 (which is at Voice_gravs level)
389 . * make encapsulated spacing problems.
390 . * accidentals per Voice_group
391 . * Output class, handles : (smallish)
392 . * help text /(c) notice?
394 . * warning /errors/progress
395 . * abort on error/warning; exit status
396 . * quiet/ignore-version options
398 . * elaborate Staff_side baseclass:
403 . * speed up PS code.
404 . * PS lines to .eps files
405 . * write custom prolog
406 . * Output an output format independent (ofi) typeset file; and
407 make ofi2 TeX, MusiXTex, Display PostScript, PostScript,
408 Ascii... interpreters. (difficult)
411 . * Common Music Notation
412 . * PostScript output (esp. Beams, Slurs, etc)
413 . * Move all Score_elems, into libmutype.a
416 . * Doc (C) stuff of sheet music
417 . * a better format? SGML? TeX? Info?
418 . * a better tutorial
419 . * more spanners (smallish)
422 . * Rewrite Stem, Beam and Rhythmic_grouping (hairy)
424 * * doc on Rhythmic_grouping
425 . * general shaving on Beam and Stem
426 . * use plet grouping
427 . * separate visual from rhythmic info even more
430 . * Ledger lines, should be separate item: Ledger_lines, Ledger_lines
431 . * set different line sizes / thicknesses
432 . * beam stem showthrough, inter beam sizes (french vs german style)
434 . * left/right note balls should be handled by Collision:
435 < \multi 2; { \stem 1; <b c> } { <f as b> } >
437 . * merge key{item} & localkey{item}?
438 . * spacing, national styles?
440 . * redo Notehead to allow digits as heads
441 . * add a \tablature {} lexer mode for easy entering
442 . * should adjust stemlength for flag number.
444 . * caching breakpoints
446 . * specify number of lines
449 . * c4 4 4 4 for c4 c4 c4 c4?
450 . * neatly (and readably) expressing concurrent
460 . * relative mode for pitch entering
461 . * configure pitch_byte
462 . * rest name configurable
464 . * limit memory usage; the full coriolan takes up too much resources.
465 . * fix confusing naming in Engraver vs Engraver_group_engraver (context)
466 . * progress when creating MIDI elts.
467 . * A range for context errors (eg. mark both { and }. )
468 . * lyric in staff (sharpsharp in staff, text below)
469 . * half sharps/flats
470 . * write Dynamic_line (to group dynamics horizontally)
471 . * use Real for all y positions.
472 . * half-sharps, half-flats
473 . * adaptive accidental spacing.
474 . * handle EOF graciously in error messages.
475 . * declare notenametab?
476 . * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
477 . * stafftypes: voice names/ instrument names.
479 . * C meter iso 4/4, idem for alla breve, etc.
480 . * textspanner: center position
482 * % toe to bheel four to five
488 (where "to" is a tiny bow)
489 . * auxilliary file for caching info.
491 . * clean solution for staffsize in items.
494 . * Output data structures of Mudela in XML/SGML.
495 . * create libmudela, or liblily_frontend
496 . * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
497 . * Spacing_request for manually adjusting spacing
498 . * caching breakpoints
499 . * used fixedpoint arithmetic for min. energy.
500 . * move towards incremental algorithms.
501 . * far fetched language ideas
502 . * design meta-language like TeX and Metafont
503 . * programming/macros input
504 . * versioning stuff (cvt mudela, mudela, etc.)
506 . * dynamic loading of engravers?
508 . * Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
509 > mcmanus@IDT.NET writes:
510 > > > I want different C++ objects (with scheme embedded) to be linked by
511 > > > C++ pointers. I want to access these other objects from the Scheme
512 > > > code, and I want access to these pointers from C++.
514 > > You can do this with a combination of smob's and primitive functions,
515 > > though it may not be be exactly what you wanted. You would have one
516 > > smob for each class in your application, and then you would write a
517 > > primitive function that would return the objects that are linked to a
520 > And the smob and the C++ class are interlinked? Like
523 > Foo_smob *smob_ptr_;
527 > Foo_class *class_ptr_
529 Usually you can get away without having this interlinked structure.
530 One piece of information you need when exporting objects to scheme is
531 the smob tag for your class. You might store this value (a long) into
532 a class static variable, or a file static variable. I'll use a class
533 static variable in this example.
534 I typically use code that works like this (untested code ahead):
536 static long *Foo_smob_tag;
537 SCM obj; // representation as a scheme object, description comes later
539 // call this once on startup
540 void init_Foo_class {
541 static scm_smobfuns type_rec;
542 type_rec.mark = foo_mark;
543 type_rec.free = foo_free;
544 type_rec.print = foo_display;
546 Foo_class::Foo_smob_tag = new int(scm_new_smob(type_rec));
548 When you want to export an object to scheme, you put a pointer to the
549 object itself in the cdr of the cell, and the tag in the car of the
550 cell. The code looks like this:
555 return(SCM_NIMP(obj) && SCM_CAR(obj) == Foo_class::Foo_smob_tag);
557 // given a Scheme representation, return, a C++ representation
561 return((Foo_class*)SCM_CDR(obj));
563 // the SCM representation of the object is stored inside itself
564 // this will become useful when destructor gets called
566 foo_box(Foo_class *foo)
569 SCM_NEWCELL(foo->obj);
570 SCM_SETCAR(foo->obj, Foo_class::Foo_smob_tag);
571 SCM_SETCDR(foo->obj, (SCM)foo);
575 > C++ determines life time, so what is the strategy?
576 What happens now when the destructor gets called? Lets set the cdr to
577 NULL, and then check for that in all of the primitive functions that
578 use your smob. We'll call this notion 'live'; a scheme object is
579 'live' if the C++ representation still exists, it's dead if the C++
580 object is gone. You can still have references to dead objects in
581 scheme code; it's just an error to use them. This idea is stolen from
582 Emacs's handling of buffers ('buffer-live-p' and friends).
583 Add another function, foo_live_p:
587 return(foo_p(obj) && SCM_CDR(obj) != NULL);
589 In you destructor, you need to do:
592 SCM_CDR(this->obj, NULL);
594 When writing new primitives, now just check foo_live_p().
595 I hope the above helps,
598 "Even if you are on the right track, you'll get run over
599 if you just sit there."
600 --Will Rogers (1879-1935)
601 . * I am still muddling along with integrating GUILE in LilyPond, and I
602 > have a question. I want to replace an existing C++ implementation of
603 > identifier tables by GUILE's code. I've managed to replace
605 > Hash_table<String,Identifier*>
609 > Hash_table<SCM, Identifier*>
611 > and use interning and GUILE symbols for doing the identifier lookup.
612 > But I'd like to use GUILE's hash tables as well, and that's were my
613 > question comes in: is there an interface that allows me to iterate
614 > through the entries of a GUILE hash table?
615 I use the following, which should definitely be provided somewhere
616 in guile, but isn't, AFAIK:
617 (define (hash-table-for-each fn ht)
619 ((= i (vector-length ht)))
620 (do ((alist (vector-ref ht i) (cdr alist)))
622 (fn (car (car alist)) (cdr (car alist))))))
623 (define (hash-table-map fn ht)
626 ((= i (vector-length ht)) (reverse ret-ls))
627 (do ((alist (vector-ref ht i) (cdr alist)))
629 (set! ret-ls (cons (fn (car (car alist)) (cdr (car alist))) ret-ls)))))
630 If you want a C version, you can run the above code through hobbit, or
631 tranlate it to C by hand.
634 "Whenever you find yourself on the side of the majority, it is time to
640 (defvar outline-font-lock-keywords
641 '(;; Highlight headings according to the level.
642 ;; must change this to allout node layout
643 ;;("^\\(\\*+\\)[ \t]*\\(.+\\)?[ \t]*$"
644 ("^\\([.]*[ ]*[*]\\)[ \t]*\\(.*\\)$"
645 (1 font-lock-string-face)
646 (2 (let ((len (- (match-end 1) (match-beginning 1))))
647 (or (cdr (assq len '((1 . font-lock-function-name-face)
648 (2 . font-lock-keyword-face)
649 (3 . font-lock-comment-face))))
650 font-lock-variable-name-face))
652 ;; Highlight citations of the form [1] and [Mar94].
653 ("\\[\\([A-Z][A-Za-z]+\\)*[0-9]+\\]" . font-lock-type-face))
654 "Additional expressions to highlight in Outline mode.")
656 (add-hook 'outline-mode-hook
658 (setq font-lock-maximum-decoration t)
659 (setq font-lock-maximum-decoration t)
660 (make-local-variable 'font-lock-defaults)
661 (setq font-lock-defaults '(outline-font-lock-keywords t))
662 (font-lock-mode (global-font-lock-mode))))