1 -*-outline-layout:(2 (-1 -1 0 :) 0);outline-stylish-prefixes:nil -*-
4 Features you cannot find in the doco as working, should be
5 mentioned here. This is an assorted collection of stuff that will be
6 done, might be done, or is an idea that I want to think about
8 Most of the items are marked in the code as well, with full explanation.
9 grep for TODO and ugh/ugr/urg
13 . * mutopia/J.S.Bach/wtk1-fugue2.ly
15 . * fix: text on rests: rediculous dims
17 . * default duration? d
18 duration must be not entered explicitely on first note.
19 . * fix singleStaffBracket
20 . * \shape 1st dim skipped?
21 . * turn slope-damping on/off
24 . * fix height of / collisions with lyrics (chords),
25 see input/test/vertical-text.ly; input/test/repeat.ly
26 . * We need feta-din*.mf files for more sizes than 10.
27 . * latex bla.tex broken (titles / \lilyfooter stuff?)
28 . * fix dynamics decently, ie. use kerning & ligatures.
29 . * fix "I've been drinking too much"
30 . * support_l_arr_ empty in staff-margin's G_staff_side_item
31 . * remove old preformats in RPM
32 . * minVerticalAlign for StaffGroups.
33 . * I have tried the barAuto property to get barlines when
34 typesetting rhythms. Lily prints all barlines except
35 between first and second bar. Where is my mistake??
39 \property RhythmicStaff.barAuto=1
42 c4 c c | c c c | c c c
47 . * is \break broken? input/test/hara-kiri.ly
48 . * fix OrchestralScore and Hara-kiri (i.e., fix Coriolan)
49 . * Phrasing: Indicating the textual underlay of a piece, or
50 otherwise dividing a piece into phrases.
52 There are distinct ways of specifying the first two (although at
53 present, they're not properly distinguished) but no distinct way to
54 specify the third. Should there be?
57 . * Check gcc 2.8.1 compatibility
58 . * use Drul_array for Interval.
59 . * ties to tie only notes of the same pitch, so that
61 > works as you'd expect it to.
62 . * 1. Can Lily be told where to start numbering?
63 . * The timpani part has rests the full first line. Is it possible
64 to force lilypond to print all parts on the first page of the score
65 but use the hara-kiri mechanism on the remaining pages?
67 . * profile atom smobs
68 . * Try to use Killing_cons iso. Pointer_list
69 . * make dependencies () a virtual function.
70 . * fix Repeated_music_iterator::ok() (constness.)
71 . * one big ly2dvi input that includes *all* tests.
72 . * Don't use boolean properties (0,1), instead check existence
74 . * store req -> element, element -> element causes for warnings
75 . * junk Text_def, use G_text_item in stead.
77 . * fix partial measures in meaningful way.
78 . * fix AFM for BlueSky AFM files.
79 . * working notehead style.
80 . * add scripts to bars eg. |^"bla"
81 . * relative mode for mi2mu
82 . * uniformise recent feta contributions.
83 . * use SCM and Molecules for {accordeon stuff, }
84 . * bigger and fatter 4/4 C
85 . * sort out directory stuff.
87 . * -I option per filetype?
89 . * todo doc left/rightbeamcount
90 . * doc Single_malt_grouping_item
91 . * ly2dvi/lilypond logfile.
92 . * How can I specify a chord whose duration is longer than a whole note?
93 \type ChordNames { \chord{ A1*2-min } }
95 gives me a parse error. And \times doesn't work either. I can't use
96 a spacer note. So it seems to be impossible to have long chords of
97 general length. Of course, in the example above I can use \breve.
98 But what if I want a chord that lasts for 3 whole notes? Or what
99 about 2.5 whole notes? Is there a mechanism for getting this kind of
103 Why does my second extender request get junked in the following:
106 < \notes \relative c''{
107 a4()b()c()d c()d()b()a }
108 \type Lyrics \lyrics {
109 foo1 __ bar2. __ _4 }
112 It seems that \cr and \decr don't work any more.
117 \paper{linewidth=-1.;}
122 qq.ly:3:9: warning: can't find (de)crescendo to end:
128 Use of semicolons is still rather confusing. They are obligatory
129 after some types of assignments and illegal after others.
131 \property foo=bar illegal
132 foo = 3 at top level illegal
133 foo = 3 inside \paper obligatory
134 foo = \notes{ ...} top level illegal
135 foo = \translator{ } in \paper obligatory
137 As far as I can tell, the sole accomplishment of this syntactic
138 irregularity is to keep the user as confused as possible.
141 I was trying to get interstaff beams to work and did this:
145 \type Staff=one \notes\relative c'{
147 [c8 c \translator Staff=two \stemup c c]
148 \translator Staff=one
150 [ b8 \translator Staff=two a8]
151 \translator Staff=one
154 \type Staff=two \notes{ \clef bass; s1 }
159 minVerticalAlign = 3.0*\staffheight;
160 maxVerticalAlign = 3.0*\staffheight;
166 The beams are at the right angle, but they aren't in the right place.
167 . * fractional chord durs.
168 . * hang Item on Spanner
169 . * remove Interval dim_ from Dimension_cache and rename the struct.
170 . * do --safe for PS output?
171 . * convert-mudela --output
172 . * Staff_margin (with a partial measure.)
173 . * fix "I've been drinking too much"
174 . * fix pletvisibility properties:
175 . * bracket on/off/no-bracket-when-beam
176 . * num on/off/no-num-when-beam
179 . * junk text{sharp,flat,etc}
180 . * fix convert-mudela manpage
181 . * decimal point in \paper {}
182 . * { \voiceone <a'4.*2/3 d''4.*2/3 fis''4.*2/3> [g''8 fis'' e''] d''4 |}
184 { \voicetwo d'4 d'2.*2/3 } spacing
185 . * tied notes for MIDI
186 . * sharp /flat on trills (in MIDI ??)
187 . * scm-ify \property values.
188 . * move class Lookup {} into scm
189 . * collisions/voices \voiceone \voicetwo are broken; see
191 . * \breathmark TeX macro
192 . * catch GUILE errors?
193 . * add new glyphs to font.ly
194 . * formatting of input stuff.
195 . * \notes{ a \< b \cr } vs \notes{ a \< b \! }
196 . * if possible, it might be nice for a warning to appear if someone does
197 \translator with no name and without assigning it to an
199 . * space after bars?
200 . * 'hinterfleisch' before bar (e.g. wtk1-fugue2)?
201 . * \type Voice \times 2/3 { [c8 c16 c16 c16 c16] }
202 . * repeat bars: need distance after ":|" and before "|:"
203 . * Summary of minor spelling irregularities:
204 . * capitalization/use of underscores in property names
205 . * fix SkipBars -> skipBars
207 . * fix marks/barnumbers/marginal notes
209 lbheel = \script { "bheel" 0 0 -1 0 0 }
210 rbheel = \script { "bheel" 0 0 1 0 0 }
211 lbtoe = \script { "btoe" 0 0 -1 0 0 }
212 rbtoe = \script { "btoe" 0 0 1 0 0 }
213 lfheel = \script { "fheel" 0 0 -1 0 0 }
214 rfheel = \script { "fheel" 0 0 1 0 0 }
215 lftoe = \script { "ftoe" 0 0 -1 0 0 }
216 rftoe = \script { "ftoe" 0 0 1 0 0 }
218 portato= \script { "portato" 0 -1 0 1 0 }
220 . * bottomnote for ly2dvi
221 . * cf'able ly2dvi tagline.
224 . * check out legal/(c) matters for scores.
225 . * check out GCC signatures?
226 . * Align_element::padding ?
227 . * uniformise property names...
228 . * ydirection <-> yDirection
229 . * rather allow '_' in identifiers first (i.e. junk ^ and _),
231 . * typo checks on property names?
232 . * use streambufs and iostream
233 to provide IO handling for TeX stream, mudela stream, data-file.
234 . * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
235 . * strip EXEs before installing
236 . * zip target for binary windows dist (JBR)
237 . * junking \skip req in lyrics
239 . * \type -> \context ?
242 . * \bla {} vs \bla ;
243 . * mix engraver hacking with music ?
244 . * \once\property KEY = VAL
245 . * \addtranslator, \removetranslator
246 . * junk ^ and _ for scripts
247 . * junk _ for lyrics.
248 . * abstract grammar.
249 . * percussion note heads
250 . * mi2mu empty staffs.
251 . * horizontal centering of dynamics
253 . * stable make/config stuff
254 . * $DEPENDENCIES_OUTPUT support
255 . * Xdvi zooming ?! Try to understand GS garbage collection.
256 gs: Error: /undefined in draw_beam
258 . * fix vertical alignment and stafflines
259 . * GrandStaff needs more work -- I want a single word
260 `harpsichord' to the left of the grandstaff, not one on each
261 stave. (Organ staff -- with separate pedal -- but common
262 properties may be something to think about. Of course for
263 organ you want to be able to give stop indications on the way
264 through, so the \property Voice.Instrument would be a stop,
265 and \property GrandStaff.instrument would be PipeOrgan...)
266 . * revise the Score_priority_align_engraver concept. It sucks.
267 . * make new VoiceOne, VoiceTwo, VoiceThree contexts with
268 ydirection and hshift preset
269 . * *.yo: fix pod manpage layout legacy
270 . * text-items clash with stems/beams
271 . * --include, -I option for ly2dvi (pass on to lily)
272 . * fix placement of beam-less abbrev
274 <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
275 {\voicetwo cis,4 r r | r2. | r1 }> |
277 . * try to use template<Type> iso MACRO(Type)
278 . * NEWS: ... Musical_pitch (analogous to Duration and Rhythmic_req)
279 think about, analogous to pitch:
280 * { a4 a16 } c <-- duration of c?
281 * < a4 b8 > c <-- duration of c?
283 . * fix audio-items (don't use (input) requests, but copy data)
284 . * make sure all ex's have a mudela-version
285 . * do rest-collisions for Multi_measure_rests as well.
286 . * split error/warning in error/warning/non_fatal_error
287 . * add a Duration_convert member to Duration_iter to set parameters.
288 Junk global duration settings.
289 . * minimum length second part broken tie
290 . * en-,discouraged linebreaking:
291 . * handle DISALLOW < penalty > FORCE
292 . * discourage breaking of slurs
293 . * fix variable define/lookup parser global<->paper
294 . * fix title/instrument placements; see input/test/title.ly
295 . * <\voiceone c4. \voicetwo c4>
296 . * add full cello suites to web site (kom op, Maarten!)
297 . * Rethink Time_description
298 * \cadenza , \meter, \grouping should all be \properties
301 . * abbrev -> tremolo
302 . * abbreviation-beam -> (measured/unmeasured) tremolo
303 . * partial -> anacrouse
305 . * robustify Beam (in case of no stems, 32nd notes)
306 . * decentralised spring factory
307 . * move paper vars into engraver properties
308 . * check for groff / troff/ nroff et
309 . * more intelligent file searching
310 . * make LilyPond RPM fully relocatable
311 . * disable spaces in TeX stuff
312 . * handle ^C for tmp/file creation.
313 . * dots & rest collisions.
319 . * versioning for Feta
320 . * the warning about the negative slur/tie length appears twice
322 . * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
324 . * the bracket is ugly (wings are too parabolic, should be more circular)
325 . * better hshift (dots, distance, head dependent)
326 * clefs (AG): The "8" should appear closer to the actual clef,
328 . * put errorlevel in Input class
329 . * junk nesting slurs
330 . * integrate midi-elts from mi2mu and lily?
332 . * GNU diff 2.7: diff -rN does not see a new directory with empty file
334 f = fopen ("/dev/null", "r")
336 .* 3RD PARTY PROJECTS:
337 . * make GCC warn about ctor that leaves member vars uninitialised.
339 . * 'double-fix' mode: ignore identical fix, rather than suggest
340 to revert patch direction when (more or less? exactly) the same
344 . * fix position of bar number
345 . * stack scripts in chords:
346 % fingering: footing:
347 < a-4 c-2 g-1 > < c-\ltoe e-\lheel >
349 . * slur parts as a script
350 . * stack parameterised scripts for fingering and footing:
353 . * automatically add a \version if not present.
356 . * convert-mudela -e empty.ly
358 . * emacs mudela-mode
359 . * should handle block comments too.
360 . * handle lexer modes (\header, \melodic, \lyric) etc.
363 . * fontlock: \melodic \melodic
365 . * use properties for:
370 . * bartypes (get rid of derived Span_bar_engravers)
375 . * optimal pagebreaking.
377 . * Unicode support? -> man 7 unicode
380 . * detect of 16/8 bit files
381 . * examples to go with it.
384 . * write a faster Spring_spacer (without matrices if possible)
385 . * relate energybound to linelen unitspace fontsize etc.
386 . * used fixed point fp?
389 . * output header info to MIDI too.
391 . * a musical dictionary. See Documentation/vocabulary-*, other
401 . * guitar chords (fret diagrams)
402 . * other chord name styles (american(?) style)
407 . * derive lily_stream, Dstream, texstream from ostream?
408 . * indentable stream as baseclass for TeX stream, lily stream, Dstream.
409 . * use dstream feature in mi2mu
410 . * integrate IO checking into stream class
417 . * add to MIDI output:
419 . * ornaments (and trills?)
424 . * account for rhythmic position in measure
428 . * make separate class for Grace_*_engravers
429 (which is at Voice_gravs level)
430 . * make encapsulated spacing problems.
432 . * accidentals per Voice_group
434 . * Output class, handles : (smallish)
435 . * help text /(c) notice?
437 . * warning /errors/progress
438 . * abort on error/warning; exit status
439 . * quiet/ignore-version options
442 . * elaborate Staff_side baseclass:
448 . * speed up PS code.
449 . * PS lines to .eps files
450 . * write custom prolog
452 . * Output an output format independent (ofi) typeset file; and
453 make ofi2 TeX, MusiXTex, Display PostScript, PostScript,
454 Ascii... interpreters. (difficult)
457 . * Common Music Notation
458 . * PostScript output (esp. Beams, Slurs, etc)
459 . * Move all Score_elems, into libmutype.a
463 . * Doc (C) stuff of sheet music
464 . * a better format? SGML? TeX? Info?
465 . * a better tutorial
467 . * more spanners (smallish)
471 . * Rewrite Stem, Beam and Rhythmic_grouping (hairy)
473 **** doc on Rhythmic_grouping
474 . * general shaving on Beam and Stem
475 . * use plet grouping
476 . * separate visual from rhythmic info even more
480 . * Ledger lines, should be separate item: Ledger_lines, Ledger_lines
481 . * set different line sizes / thicknesses
482 . * beam stem showthrough, inter beam sizes (french vs german style)
485 . * left/right note balls should be handled by Collision:
486 < \multi 2; { \stem 1; <b c> } { <f as b> } >
489 . * merge key{item} & localkey{item}?
490 . * spacing, national styles?
493 . * redo Notehead to allow digits as heads
494 . * add a \tablature {} lexer mode for easy entering
496 . * should adjust stemlength for flag number.
499 . * caching breakpoints
501 . * specify number of lines
504 . * c4 4 4 4 for c4 c4 c4 c4?
505 . * neatly (and readably) expressing concurrent
517 . * relative mode for pitch entering
518 . * configure pitch_byte
519 . * rest name configurable
524 . * limit memory usage; the full coriolan takes up too much resources.
526 . * fix confusing naming in Engraver vs Engraver_group_engraver (context)
528 . * progress when creating MIDI elts.
530 . * A range for context errors (eg. mark both { and }. )
532 . * lyric in staff (sharpsharp in staff, text below)
534 . * half sharps/flats
536 . * write Dynamic_line (to group dynamics horizontally)
538 . * use Real for all y positions.
540 . * half-sharps, half-flats
542 . * adaptive accidental spacing.
544 . * handle EOF graciously in error messages.
546 . * declare notenametab?
548 . * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
550 . * stafftypes: voice names/ instrument names.
554 . * C meter iso 4/4, idem for alla breve, etc.
556 . * textspanner: center position
558 * % toe to bheel four to five
564 (where "to" is a tiny bow)
566 . * auxilliary file for caching info.
570 . * clean solution for staffsize in items.
574 . * Output data structures of Mudela in XML/SGML.
575 . * create libmudela, or liblily_frontend
576 . * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
577 . * Spacing_request for manually adjusting spacing
578 . * caching breakpoints
579 . * used fixedpoint arithmetic for min. energy.
580 . * move towards incremental algorithms.
581 . * far fetched language ideas
582 . * design meta-language like TeX and Metafont
583 . * programming/macros input
584 . * versioning stuff (cvt mudela, mudela, etc.)
586 . * dynamic loading of engravers?
588 Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
590 > mcmanus@IDT.NET writes:
591 > > > I want different C++ objects (with scheme embedded) to be linked by
592 > > > C++ pointers. I want to access these other objects from the Scheme
593 > > > code, and I want access to these pointers from C++.
595 > > You can do this with a combination of smob's and primitive functions,
596 > > though it may not be be exactly what you wanted. You would have one
597 > > smob for each class in your application, and then you would write a
598 > > primitive function that would return the objects that are linked to a
601 > And the smob and the C++ class are interlinked? Like
604 > Foo_smob *smob_ptr_;
608 > Foo_class *class_ptr_
611 Usually you can get away without having this interlinked structure.
612 One piece of information you need when exporting objects to scheme is
613 the smob tag for your class. You might store this value (a long) into
614 a class static variable, or a file static variable. I'll use a class
615 static variable in this example.
617 I typically use code that works like this (untested code ahead):
620 static long *Foo_smob_tag;
621 SCM obj; // representation as a scheme object, description comes later
624 // call this once on startup
625 void init_Foo_class {
626 static scm_smobfuns type_rec;
628 type_rec.mark = foo_mark;
629 type_rec.free = foo_free;
630 type_rec.print = foo_display;
632 Foo_class::Foo_smob_tag = new int(scm_new_smob(type_rec));
635 When you want to export an object to scheme, you put a pointer to the
636 object itself in the cdr of the cell, and the tag in the car of the
637 cell. The code looks like this:
643 return(SCM_NIMP(obj) && SCM_CAR(obj) == Foo_class::Foo_smob_tag);
646 // given a Scheme representation, return, a C++ representation
650 return((Foo_class*)SCM_CDR(obj));
653 // the SCM representation of the object is stored inside itself
654 // this will become useful when destructor gets called
656 foo_box(Foo_class *foo)
659 SCM_NEWCELL(foo->obj);
660 SCM_SETCAR(foo->obj, Foo_class::Foo_smob_tag);
661 SCM_SETCDR(foo->obj, (SCM)foo);
666 > C++ determines life time, so what is the strategy?
668 What happens now when the destructor gets called? Lets set the cdr to
669 NULL, and then check for that in all of the primitive functions that
670 use your smob. We'll call this notion 'live'; a scheme object is
671 'live' if the C++ representation still exists, it's dead if the C++
672 object is gone. You can still have references to dead objects in
673 scheme code; it's just an error to use them. This idea is stolen from
674 Emacs's handling of buffers ('buffer-live-p' and friends).
676 Add another function, foo_live_p:
681 return(foo_p(obj) && SCM_CDR(obj) != NULL);
684 In you destructor, you need to do:
688 SCM_CDR(this->obj, NULL);
691 When writing new primitives, now just check foo_live_p().
693 I hope the above helps,
699 "Even if you are on the right track, you'll get run over
700 if you just sit there."
701 --Will Rogers (1879-1935)
706 (defvar outline-font-lock-keywords
707 '(;; Highlight headings according to the level.
708 ;; must change this to allout node layout
709 ;;("^\\(\\*+\\)[ \t]*\\(.+\\)?[ \t]*$"
710 ("^\\([.]*[ ]*[*]\\)[ \t]*\\(.*\\)$"
711 (1 font-lock-string-face)
712 (2 (let ((len (- (match-end 1) (match-beginning 1))))
713 (or (cdr (assq len '((1 . font-lock-function-name-face)
714 (2 . font-lock-keyword-face)
715 (3 . font-lock-comment-face))))
716 font-lock-variable-name-face))
718 ;; Highlight citations of the form [1] and [Mar94].
719 ("\\[\\([A-Z][A-Za-z]+\\)*[0-9]+\\]" . font-lock-type-face))
720 "Additional expressions to highlight in Outline mode.")
722 (add-hook 'outline-mode-hook
724 (setq font-lock-maximum-decoration t)
725 (setq font-lock-maximum-decoration t)
726 (make-local-variable 'font-lock-defaults)
727 (setq font-lock-defaults '(outline-font-lock-keywords t))
728 (font-lock-mode global-font-lock-mode)