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
9 Grep for TODO and ugh/ugr/urg.
13 . * input/star-spangled-banner
14 . * mutopia/J.S.Bach/wtk1-fugue2.ly
16 . * fix: text on rests: ridiculous dims
17 . * m=\notes\relative c''{
21 r2 r4 \bar "||"; \break r |
27 \type Staff = staffi {\m}
28 \type Staff = staffii {\m}
31 . * m=\notes\relative c'''{
34 R2*4 | c2 | c2 | c2 | c2 | c2 | c2 | c2 | c2 | c2 | \break
35 <{R2*10}{s2 \mark "A"; }> | % Too narrow space for the first rest in
38 [ ) g8-. fis16 ( g ][ ) fis8-. f16 ( g ] |
39 [ ) f8-. e16 ( f ][ ) e8-. es16 ( f ] |
40 [ ) es8 \f c16 ( d][es8 d16 c ] |
41 ) d4 r8 [g16 \p ( a ] |
42 [ ) g8-. fis16 ( g ][ ) fis8-. f16 ( g ] | \break
43 ) c2 | c2 | c2 | c2 | c2 | c2 | c2 | c2 | c2 |
54 \OrchestralPartStaffContext
58 . * - Look at input/test/span-bars.ly. The staff lines extend too far
59 to the left on the note systems including the GrandStaff.
61 . * default duration? d
62 duration must be not entered explicitely on first note.
63 . * fix singleStaffBracket
64 . * \shape 1st dim skipped?
65 . * turn slope-damping on/off
67 . * fix height of / collisions with lyrics (chords),
68 see input/test/vertical-text.ly; input/test/repeat.ly
69 . * We need feta-din*.mf files for more sizes than 10.
70 . * latex bla.tex broken (titles / \lilyfooter stuff?)
71 . * fix dynamics decently, ie. use kerning & ligatures.
72 . * support_l_arr_ empty in staff-margin's G_staff_side_item
73 . * minVerticalAlign for StaffGroups.
75 . * fix OrchestralScore and Hara-kiri (i.e., fix Coriolan)
76 . * Phrasing: Indicating the textual underlay of a piece, or
77 otherwise dividing a piece into phrases.
79 There are distinct ways of specifying the first two (although at
80 present, they're not properly distinguished) but no distinct way to
81 specify the third. Should there be?
84 . * Check gcc 2.8.1 compatibility
85 . * make "in-between" engraver (Tie, Extender)
86 . * use Drul_array for Interval.
88 . * ties to tie only notes of the same pitch, so that
90 works as you'd expect it to.
91 . * 1. Can Lily be told where to start numbering?
93 . * profile atom smobs
94 . * Try to use Killing_cons iso. Pointer_list
95 . * make dependencies () a virtual function.
96 . * fix Repeated_music design
97 . * one big ly2dvi input that includes *all* tests.
98 . * Don't use boolean properties (0,1), instead check existence
100 . * store req -> element, element -> element causes for warnings
101 . * junk Text_def, use G_text_item in stead.
103 . * fix partial measures in meaningful way.
104 . * fix AFM for BlueSky AFM files.
105 . * working notehead style.
106 . * add scripts to bars eg. |^"bla"
107 . * relative mode for mi2mu
108 . * uniformise recent feta contributions.
109 . * use SCM and Molecules for {accordeon stuff, }
110 . * bigger and fatter 4/4 C
111 . * sort out directory stuff.
113 . * -I option per filetype?
115 . * todo doc left/rightbeamcount
116 . * doc Single_malt_grouping_item
117 . * ly2dvi/lilypond logfile.
118 . * How can I specify a chord whose duration is longer than a whole note?
119 \type ChordNames { \chord{ A1*2-min } }
121 gives me a parse error. And \times doesn't work either. I can't use
122 a spacer note. So it seems to be impossible to have long chords of
123 general length. Of course, in the example above I can use \breve.
124 But what if I want a chord that lasts for 3 whole notes? Or what
125 about 2.5 whole notes? Is there a mechanism for getting this kind of
130 Use of semicolons is still rather confusing. They are obligatory
131 after some types of assignments and illegal after others.
133 \property foo=bar illegal
134 foo = 3 at top level illegal
135 foo = 3 inside \paper obligatory
136 foo = \notes{ ...} top level illegal
137 foo = \translator{ } in \paper obligatory
139 As far as I can tell, the sole accomplishment of this syntactic
140 irregularity is to keep the user as confused as possible.
143 I was trying to get interstaff beams to work and did this:
147 \type Staff=one \notes\relative c'{
149 [c8 c \translator Staff=two \stemup c c]
150 \translator Staff=one
152 [ b8 \translator Staff=two a8]
153 \translator Staff=one
156 \type Staff=two \notes{ \clef bass; s1 }
161 minVerticalAlign = 3.0*\staffheight;
162 maxVerticalAlign = 3.0*\staffheight;
168 The beams are at the right angle, but they aren't in the right place.
169 . * fractional chord durs.
170 . * hang Item on Spanner
171 . * remove Interval dim_ from Dimension_cache and rename the struct.
172 . * do --safe for PS output?
173 . * convert-mudela --output
174 . * Staff_margin (with a partial measure.)
175 . * fix pletvisibility properties:
176 . * bracket on/off/no-bracket-when-beam
177 . * num on/off/no-num-when-beam
180 . * junk text{sharp,flat,etc}
181 . * fix convert-mudela manpage
182 . * decimal point in \paper {}
183 . * { \voiceone <a'4.*2/3 d''4.*2/3 fis''4.*2/3> [g''8 fis'' e''] d''4 |}
185 { \voicetwo d'4 d'2.*2/3 } spacing
186 . * tied notes for MIDI
187 . * sharp /flat on trills (in MIDI ??)
188 . * scm-ify \property values.
189 . * move class Lookup {} into scm
190 . * collisions/voices \voiceone \voicetwo are broken; see
192 . * \breathmark TeX macro
193 . * catch GUILE errors?
194 . * add new glyphs to font.ly
195 . * formatting of input stuff.
196 . * \notes{ a \< b \cr } vs \notes{ a \< b \! }
197 . * if possible, it might be nice for a warning to appear if someone does
198 \translator with no name and without assigning it to an
200 . * space after bars?
201 . * 'hinterfleisch' before bar (e.g. wtk1-fugue2)?
202 . * \type Voice \times 2/3 { [c8 c16 c16 c16 c16] }
203 . * repeat bars: need distance after ":|" and before "|:"
204 . * Summary of minor spelling irregularities:
205 . * capitalization/use of underscores in property names
206 . * fix SkipBars -> skipBars
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 . * Align_element::padding ?
226 . * uniformise property names...
227 . * ydirection <-> yDirection
228 . * rather allow '_' in identifiers first (i.e. junk ^ and _),
230 . * typo checks on property names?
231 . * use streambufs and iostream
232 to provide IO handling for TeX stream, mudela stream, data-file.
233 . * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
234 . * strip EXEs before installing
235 . * zip target for binary windows dist (JBR)
236 . * junking \skip req in lyrics
238 . * \type -> \context ?
241 . * \bla {} vs \bla ;
242 . * mix engraver hacking with music ?
243 . * \once\property KEY = VAL
244 . * \addtranslator, \removetranslator
245 . * junk ^ and _ for scripts
246 . * junk _ for lyrics.
247 . * abstract grammar.
248 . * percussion note heads
249 . * mi2mu empty staffs.
250 . * horizontal centering of dynamics
252 . * stable make/config stuff
253 . * $DEPENDENCIES_OUTPUT support
254 . * Xdvi zooming ?! Try to understand GS garbage collection.
255 gs: Error: /undefined in draw_beam
257 . * fix vertical alignment and stafflines
258 . * GrandStaff needs more work -- I want a single word
259 `harpsichord' to the left of the grandstaff, not one on each
260 stave. (Organ staff -- with separate pedal -- but common
261 properties may be something to think about. Of course for
262 organ you want to be able to give stop indications on the way
263 through, so the \property Voice.Instrument would be a stop,
264 and \property GrandStaff.instrument would be PipeOrgan...)
265 . * revise the Score_priority_align_engraver concept. It sucks.
266 . * make new VoiceOne, VoiceTwo, VoiceThree contexts with
267 ydirection and hshift preset
268 . * *.yo: fix pod manpage layout legacy
269 . * text-items clash with stems/beams
270 . * --include, -I option for ly2dvi (pass on to lily)
271 . * fix placement of beam-less abbrev
273 <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
274 {\voicetwo cis,4 r r | r2. | r1 }> |
276 . * try to use template<Type> iso MACRO(Type)
277 . * Musical_pitch (analogous to Duration and Rhythmic_req)
278 think about, analogous to pitch:
279 * { a4 a16 } c <-- duration of c?
280 * < a4 b8 > c <-- duration of c?
282 . * fix audio-items (don't use (input) requests, but copy data)
283 . * make sure all ex's have a mudela-version
284 . * do rest-collisions for Multi_measure_rests as well.
285 . * split error/warning in error/warning/non_fatal_error
286 . * add a Duration_convert member to Duration_iter to set parameters.
287 Junk global duration settings.
288 . * minimum length second part broken tie
289 . * en-,discouraged linebreaking:
290 . * handle DISALLOW < penalty > FORCE
291 . * discourage breaking of slurs
292 . * fix variable define/lookup parser global<->paper
293 . * fix title/instrument placements; see input/test/title.ly
294 . * <\voiceone c4. \voicetwo c4>
295 . * add full cello suites to web site (kom op, Maarten!)
296 . * Rethink Time_description
297 * \cadenza , \meter, \grouping should all be \properties
300 . * abbrev -> tremolo
301 . * abbreviation-beam -> (measured/unmeasured) tremolo
302 . * partial -> anacrouse
304 . * robustify Beam (in case of no stems, 32nd notes)
305 . * decentralised spring factory
306 . * move paper vars into engraver properties
307 . * check for groff / troff/ nroff et
308 . * more intelligent file searching
309 . * make LilyPond RPM fully relocatable
310 . * disable spaces in TeX stuff
311 . * handle ^C for tmp/file creation.
312 . * dots & rest collisions.
318 . * versioning for Feta
319 . * the warning about the negative slur/tie length appears twice
321 . * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
323 . * the bracket is ugly (wings are too parabolic, should be more circular)
324 . * better hshift (dots, distance, head dependent)
325 . * clefs (AG): The "8" should appear closer to the actual clef,
327 . * put errorlevel in Input class
328 . * junk nesting slurs
329 . * integrate midi-elts from mi2mu and lily?
331 . * GNU diff 2.7: diff -rN does not see a new directory with empty file
332 . * check out GCC signatures?
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:
372 . * optimal pagebreaking.
374 . * Unicode support? -> man 7 unicode
377 . * detect of 16/8 bit files
378 . * examples to go with it.
381 . * write a faster Spring_spacer (without matrices if possible)
382 . * relate energybound to linelen unitspace fontsize etc.
383 . * used fixed point fp?
386 . * output header info to MIDI too.
388 . * a musical dictionary. See Documentation/vocabulary-*, other
398 . * guitar chords (fret diagrams)
399 . * other chord name styles (american(?) style)
404 . * derive lily_stream, Dstream, texstream from ostream?
405 . * indentable stream as baseclass for TeX stream, lily stream, Dstream.
406 . * use dstream feature in mi2mu
407 . * integrate IO checking into stream class
414 . * add to MIDI output:
416 . * ornaments (and trills?)
421 . * account for rhythmic position in measure
425 . * make separate class for Grace_*_engravers
426 (which is at Voice_gravs level)
427 . * make encapsulated spacing problems.
429 . * accidentals per Voice_group
431 . * Output class, handles : (smallish)
432 . * help text /(c) notice?
434 . * warning /errors/progress
435 . * abort on error/warning; exit status
436 . * quiet/ignore-version options
440 . * speed up PS code.
441 . * PS lines to .eps files
442 . * write custom prolog
445 . * Common Music Notation
446 . * PostScript output (esp. Beams, Slurs, etc)
447 . * Move all Score_elems, into libmutype.a
451 . * Doc (C) stuff of sheet music
452 . * a better format? SGML? TeX? Info?
453 . * a better tutorial
455 . * more spanners (smallish)
459 . * Rewrite Stem, Beam and Rhythmic_grouping (hairy)
461 . * doc on Rhythmic_grouping
462 . * general shaving on Beam and Stem
463 . * use plet grouping
464 . * separate visual from rhythmic info even more
468 . * Ledger lines, should be separate item: Ledger_lines
469 . * set different line sizes / thicknesses
470 . * beam stem showthrough, inter beam sizes (french vs german style)
473 . * left/right note balls should be handled by Collision:
474 < \multi 2; { \stem 1; <b c> } { <f as b> } >
477 . * merge key{item} & localkey{item}?
478 . * spacing, national styles?
481 . * redo Notehead to allow digits as heads
482 . * add a \tablature {} lexer mode for easy entering
484 . * should adjust stemlength for flag number.
487 . * caching breakpoints
489 . * specify number of lines
493 . * c4 4 4 4 for c4 c4 c4 c4?
504 . * configure pitch_byte
505 . * rest name configurable
510 . * fix confusing naming in Engraver vs Engraver_group_engraver (context)
512 . * progress when creating MIDI elts.
514 . * A range for context errors (eg. mark both { and }. )
516 . * lyric in staff (sharpsharp in staff, text below)
518 . * half sharps/flats
520 . * write Dynamic_line (to group dynamics horizontally)
522 . * use Real for all y positions.
524 . * half-sharps, half-flats
526 . * adaptive accidental spacing.
528 . * handle EOF graciously in error messages.
530 . * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
532 . * stafftypes: voice names/ instrument names.
536 . * % toe to bheel four to five
542 (where "to" is a tiny bow)
544 . * auxilliary file for caching info.
548 . * clean solution for staffsize in items.
553 . * Output data structures of Mudela in XML/SGML.
554 . * create libmudela, or liblily_frontend
555 . * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
556 . * Spacing_request for manually adjusting spacing
557 . * caching breakpoints
558 . * used fixedpoint arithmetic for min. energy.
559 . * move towards incremental algorithms.
560 . * versioning stuff (cvt mudela, mudela, etc.)
561 . * dynamic loading of engravers?
563 Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
565 > mcmanus@IDT.NET writes:
566 > > > I want different C++ objects (with scheme embedded) to be linked by
567 > > > C++ pointers. I want to access these other objects from the Scheme
568 > > > code, and I want access to these pointers from C++.
570 > > You can do this with a combination of smob's and primitive functions,
571 > > though it may not be be exactly what you wanted. You would have one
572 > > smob for each class in your application, and then you would write a
573 > > primitive function that would return the objects that are linked to a
576 > And the smob and the C++ class are interlinked? Like
579 > Foo_smob *smob_ptr_;
583 > Foo_class *class_ptr_
586 Usually you can get away without having this interlinked structure.
587 One piece of information you need when exporting objects to scheme is
588 the smob tag for your class. You might store this value (a long) into
589 a class static variable, or a file static variable. I'll use a class
590 static variable in this example.
592 I typically use code that works like this (untested code ahead):
595 static long *Foo_smob_tag;
596 SCM obj; // representation as a scheme object, description comes later
599 // call this once on startup
600 void init_Foo_class {
601 static scm_smobfuns type_rec;
603 type_rec.mark = foo_mark;
604 type_rec.free = foo_free;
605 type_rec.print = foo_display;
607 Foo_class::Foo_smob_tag = new int(scm_new_smob(type_rec));
610 When you want to export an object to scheme, you put a pointer to the
611 object itself in the cdr of the cell, and the tag in the car of the
612 cell. The code looks like this:
618 return(SCM_NIMP(obj) && SCM_CAR(obj) == Foo_class::Foo_smob_tag);
621 // given a Scheme representation, return, a C++ representation
625 return((Foo_class*)SCM_CDR(obj));
628 // the SCM representation of the object is stored inside itself
629 // this will become useful when destructor gets called
631 foo_box(Foo_class *foo)
634 SCM_NEWCELL(foo->obj);
635 SCM_SETCAR(foo->obj, Foo_class::Foo_smob_tag);
636 SCM_SETCDR(foo->obj, (SCM)foo);
641 > C++ determines life time, so what is the strategy?
643 What happens now when the destructor gets called? Lets set the cdr to
644 NULL, and then check for that in all of the primitive functions that
645 use your smob. We'll call this notion 'live'; a scheme object is
646 'live' if the C++ representation still exists, it's dead if the C++
647 object is gone. You can still have references to dead objects in
648 scheme code; it's just an error to use them. This idea is stolen from
649 Emacs's handling of buffers ('buffer-live-p' and friends).
651 Add another function, foo_live_p:
656 return(foo_p(obj) && SCM_CDR(obj) != NULL);
659 In you destructor, you need to do:
663 SCM_CDR(this->obj, NULL);
666 When writing new primitives, now just check foo_live_p().
668 I hope the above helps,
674 "Even if you are on the right track, you'll get run over
675 if you just sit there."
676 --Will Rogers (1879-1935)
681 (defvar outline-font-lock-keywords
682 '(;; Highlight headings according to the level.
683 ;; must change this to allout node layout
684 ;;("^\\(\\*+\\)[ \t]*\\(.+\\)?[ \t]*$"
685 ("^\\([.]*[ ]*[*]\\)[ \t]*\\(.*\\)$"
686 (1 font-lock-string-face)
687 (2 (let ((len (- (match-end 1) (match-beginning 1))))
688 (or (cdr (assq len '((1 . font-lock-function-name-face)
689 (2 . font-lock-keyword-face)
690 (3 . font-lock-comment-face))))
691 font-lock-variable-name-face))
693 ;; Highlight citations of the form [1] and [Mar94].
694 ("\\[\\([A-Z][A-Za-z]+\\)*[0-9]+\\]" . font-lock-type-face))
695 "Additional expressions to highlight in Outline mode.")
697 (add-hook 'outline-mode-hook
699 (setq font-lock-maximum-decoration t)
700 (setq font-lock-maximum-decoration t)
701 (make-local-variable 'font-lock-defaults)
702 (setq font-lock-defaults '(outline-font-lock-keywords t))
703 (font-lock-mode global-font-lock-mode)