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 . * input/praeludium-fuga-E.ly
15 . * mutopia/J.S.Bach/wtk1-fugue2.ly
16 . * fix: text on rests: rediculous dims
18 . * default duration? d
19 duration must be not entered explicitely on first note.
20 . * fix singleStaffBracket
21 . * \shape 1st dim skipped?
22 . * turn slope-damping on/off
26 . * fix height of / collisions with lyrics (chords),
27 see input/test/vertical-text.ly; input/test/repeat.ly
28 . * latex bla.tex broken (titles / \lilyfooter stuff?)
29 . * fix dynamics decently, ie. use kerning & ligatures.
30 . * fix "I've been drinking too much"
31 . * support_l_arr_ empty in staff-margin's G_staff_side_item
32 . * remove old preformats in RPM
34 . * is \break broken? input/test/hara-kiri.ly
35 . * fix OrchestralScore and Hara-kiri (i.e., fix Coriolan)
38 \type Staff \notes\relative c''{
39 \property Staff.instrument = "Toeters"
46 % \translator { \HaraKiriStaffContext }
47 \translator { \OrchestralScoreContext }
50 \consists "Staff_margin_engraver";
56 Phrasing: Indicating the textual underlay of a piece, or
57 otherwise dividing a piece into phrases.
59 There are distinct ways of specifying the first two (although at
60 present, they're not properly distinguished) but no distinct way to
61 specify the third. Should there be?
65 > Yes. I want ties to tie only notes of the same pitch, so that
67 > works as you'd expect it to.
68 . * 1. Can Lily be told where to start numbering?
69 . * The timpani part has rests the full first line. Is it possible
70 to force lilypond to print all parts on the first page of the score
71 but use the hara-kiri mechanism on the remaining pages?
73 . * profile atom smobs
74 . * make ly2dvi test page.
75 . * Try to use Killing_cons iso. Pointer_list
76 . * make dependencies () a virtual function.
77 . * fix Repeated_music_iterator::ok() (constness.)
78 . * one big ly2dvi input that includes *all* tests.
79 . * Don't use boolean properties (0,1), instead check existence
81 . * store req -> element, element -> element causes for warnings
82 . * junk Text_def, use G_text_item in stead.
84 . * fix partial measures in meaningful way.
85 . * fix AFM for BlueSky AFM files.
86 . * working notehead style.
87 . * add scripts to bars eg. |^"bla"
88 . * relative mode for mi2mu
89 . * uniformise recent feta contributions.
90 . * use SCM and Molecules for {accordeon stuff, }
91 . * bigger and fatter 4/4 C
92 . * sort out directory stuff.
94 . * -I option per filetype?
96 . * todo doc left/rightbeamcount
97 . * doc Single_malt_grouping_item
98 . * ly2dvi/lilypond logfile.
99 . * How can I specify a chord whose duration is longer than a whole note?
100 \type ChordNames { \chord{ A1*2-min } }
102 gives me a parse error. And \times doesn't work either. I can't use
103 a spacer note. So it seems to be impossible to have long chords of
104 general length. Of course, in the example above I can use \breve.
105 But what if I want a chord that lasts for 3 whole notes? Or what
106 about 2.5 whole notes? Is there a mechanism for getting this kind of
110 Why does my second extender request get junked in the following:
113 < \notes \relative c''{
114 a4()b()c()d c()d()b()a }
115 \type Lyrics \lyrics {
116 foo1 __ bar2. __ _4 }
119 It seems that \cr and \decr don't work any more.
124 \paper{linewidth=-1.;}
129 qq.ly:3:9: warning: can't find (de)crescendo to end:
135 Use of semicolons is still rather confusing. They are obligatory
136 after some types of assignments and illegal after others.
138 \property foo=bar illegal
139 foo = 3 at top level illegal
140 foo = 3 inside \paper obligatory
141 foo = \notes{ ...} top level illegal
142 foo = \translator{ } in \paper obligatory
144 As far as I can tell, the sole accomplishment of this syntactic
145 irregularity is to keep the user as confused as possible.
148 I was trying to get interstaff beams to work and did this:
152 \type Staff=one \notes\relative c'{
154 [c8 c \translator Staff=two \stemup c c]
155 \translator Staff=one
157 [ b8 \translator Staff=two a8]
158 \translator Staff=one
161 \type Staff=two \notes{ \clef bass; s1 }
166 minVerticalAlign = 3.0*\staffheight;
167 maxVerticalAlign = 3.0*\staffheight;
173 The beams are at the right angle, but they aren't in the right place.
174 . * fractional chord durs.
175 . * hang Item on Spanner
176 . * remove Interval dim_ from Dimension_cache and rename the struct.
177 . * do --safe for PS output?
178 . * convert-mudela --output
179 . * Staff_margin (with a partial measure.)
180 . * fix "I've been drinking too much"
181 . * fix pletvisibility properties:
182 . * bracket on/off/no-bracket-when-beam
183 . * num on/off/no-num-when-beam
186 . * junk text{sharp,flat,etc}
187 . * fix convert-mudela manpage
188 . * decimal point in \paper {}
189 . * { \voiceone <a'4.*2/3 d''4.*2/3 fis''4.*2/3> [g''8 fis'' e''] d''4 |}
191 { \voicetwo d'4 d'2.*2/3 } spacing
192 . * tied notes for MIDI
193 . * sharp /flat on trills (in MIDI ??)
194 . * scm-ify \property values.
195 . * move class Lookup {} into scm
196 . * collisions/voices \voiceone \voicetwo are broken; see
198 . * \breathmark TeX macro
199 . * catch GUILE errors?
200 . * add new glyphs to font.ly
201 . * formatting of input stuff.
202 . * \notes{ a \< b \cr } vs \notes{ a \< b \! }
203 . * if possible, it might be nice for a warning to appear if someone does
204 \translator with no name and without assigning it to an
206 . * space after bars?
207 . * 'hinterfleisch' before bar (e.g. wtk1-fugue2)?
208 . * \type Voice \times 2/3 { [c8 c16 c16 c16 c16] }
209 . * repeat bars: need distance after ":|" and before "|:"
210 .* Summary of minor spelling irregularities:
211 . * capitalization/use of underscores in property names
212 . * fix SkipBars -> skipBars
214 . * fix marks/barnumbers/marginal notes
216 lbheel = \script { "bheel" 0 0 -1 0 0 }
217 rbheel = \script { "bheel" 0 0 1 0 0 }
218 lbtoe = \script { "btoe" 0 0 -1 0 0 }
219 rbtoe = \script { "btoe" 0 0 1 0 0 }
220 lfheel = \script { "fheel" 0 0 -1 0 0 }
221 rfheel = \script { "fheel" 0 0 1 0 0 }
222 lftoe = \script { "ftoe" 0 0 -1 0 0 }
223 rftoe = \script { "ftoe" 0 0 1 0 0 }
227 portato= \script { "portato" 0 -1 0 1 0 }
229 . * bottomnote for ly2dvi
230 . * cf'able ly2dvi tagline.
233 . * check out legal/(c) matters for scores.
234 . * check out GCC signatures?
235 . * Align_element::padding ?
236 . * uniformise property names...
237 . * ydirection <-> yDirection
238 . * rather allow '_' in identifiers first (i.e. junk ^ and _),
240 . * typo checks on property names?
241 . * use streambufs and iostream
242 to provide IO handling for TeX stream, mudela stream, data-file.
243 . * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
244 . * strip EXEs before installing
245 . * zip target for binary windows dist (JBR)
246 . * junking \skip req in lyrics
248 . * \type -> \context ?
251 . * \bla {} vs \bla ;
252 . * mix engraver hacking with music ?
253 . * \once\property KEY = VAL
254 . * \addtranslator, \removetranslator
255 . * junk ^ and _ for scripts
256 . * junk _ for lyrics.
257 . * abstract grammar.
258 . * percussion note heads
259 . * mi2mu empty staffs.
260 . * horizontal centering of dynamics
262 . * stable make/config stuff
263 . * $DEPENDENCIES_OUTPUT support
264 . * Xdvi zooming ?! Try to understand GS garbage collection.
265 gs: Error: /undefined in draw_beam
267 . * fix vertical alignment and stafflines
268 . * GrandStaff needs more work -- I want a single word
269 `harpsichord' to the left of the grandstaff, not one on each
270 stave. (Organ staff -- with separate pedal -- but common
271 properties may be something to think about. Of course for
272 organ you want to be able to give stop indications on the way
273 through, so the \property Voice.Instrument would be a stop,
274 and \property GrandStaff.instrument would be PipeOrgan...)
275 . * revise the Score_priority_align_engraver concept. It sucks.
276 . * make new VoiceOne, VoiceTwo, VoiceThree contexts with
277 ydirection and hshift preset
278 . * *.yo: fix pod manpage layout legacy
279 . * text-items clash with stems/beams
280 . * --include, -I option for ly2dvi (pass on to lily)
281 . * fix placement of beam-less abbrev
283 <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
284 {\voicetwo cis,4 r r | r2. | r1 }> |
286 . * try to use template<Type> iso MACRO(Type)
287 . * NEWS: ... Musical_pitch (analogous to Duration and Rhythmic_req)
288 think about, analogous to pitch:
289 * { a4 a16 } c <-- duration of c?
290 * < a4 b8 > c <-- duration of c?
292 . * fix audio-items (don't use (input) requests, but copy data)
293 . * make sure all ex's have a mudela-version
294 . * do rest-collisions for Multi_measure_rests as well.
295 . * split error/warning in error/warning/non_fatal_error
296 . * add a Duration_convert member to Duration_iter to set parameters.
297 Junk global duration settings.
298 . * minimum length second part broken tie
299 . * en-,discouraged linebreaking:
300 . * handle DISALLOW < penalty > FORCE
301 . * discourage breaking of slurs
302 . * fix variable define/lookup parser global<->paper
303 . * fix title/instrument placements; see input/test/title.ly
304 . * <\voiceone c4. \voicetwo c4>
305 . * add full cello suites to web site (kom op, Maarten!)
306 . * Rethink Time_description
307 * \cadenza , \meter, \grouping should all be \properties
310 . * abbrev -> tremolo
311 . * abbreviation-beam -> (measured/unmeasured) tremolo
312 . * partial -> anacrouse
314 . * robustify Beam (in case of no stems, 32nd notes)
315 . * decentralised spring factory
316 . * move paper vars into engraver properties
317 . * check for groff / troff/ nroff et
318 . * more intelligent file searching
319 . * make LilyPond RPM fully relocatable
320 . * disable spaces in TeX stuff
321 . * handle ^C for tmp/file creation.
322 . * dots & rest collisions.
328 . * versioning for Feta
329 . * the warning about the negative slur/tie length appears twice
331 . * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
333 . * the bracket is ugly (wings are too parabolic, should be more circular)
334 . * better hshift (dots, distance, head dependent)
335 * clefs (AG): The "8" should appear closer to the actual clef,
337 . * put errorlevel in Input class
338 . * junk nesting slurs
339 . * integrate midi-elts from mi2mu and lily?
341 . * GNU diff 2.7: diff -rN does not see a new directory with empty file
343 f = fopen ("/dev/null", "r")
345 .* 3RD PARTY PROJECTS:
346 . * make GCC warn about ctor that leaves member vars uninitialised.
348 . * 'double-fix' mode: ignore identical fix, rather than suggest
349 to revert patch direction when (more or less? exactly) the same
353 . * fix position of bar number
354 . * stack scripts in chords:
355 % fingering: footing:
356 < a-4 c-2 g-1 > < c-\ltoe e-\lheel >
358 . * slur parts as a script
359 . * stack parameterised scripts for fingering and footing:
362 . * automatically add a \version if not present.
365 . * convert-mudela -e empty.ly
367 . * emacs mudela-mode
368 . * should handle block comments too.
369 . * handle lexer modes (\header, \melodic, \lyric) etc.
372 . * fontlock: \melodic \melodic
374 . * use properties for:
379 . * bartypes (get rid of derived Span_bar_engravers)
384 . * optimal pagebreaking.
386 . * Unicode support? -> man 7 unicode
389 . * detect of 16/8 bit files
390 . * examples to go with it.
393 . * write a faster Spring_spacer (without matrices if possible)
394 . * relate energybound to linelen unitspace fontsize etc.
395 . * used fixed point fp?
398 . * output header info to MIDI too.
400 . * a musical dictionary. See Documentation/vocabulary-*, other
410 . * guitar chords (fret diagrams)
411 . * other chord name styles (american(?) style)
416 . * derive lily_stream, Dstream, texstream from ostream?
417 . * indentable stream as baseclass for TeX stream, lily stream, Dstream.
418 . * use dstream feature in mi2mu
419 . * integrate IO checking into stream class
426 . * add to MIDI output:
428 . * ornaments (and trills?)
433 . * account for rhythmic position in measure
437 . * make separate class for Grace_*_engravers
438 (which is at Voice_gravs level)
439 . * make encapsulated spacing problems.
441 . * accidentals per Voice_group
443 . * Output class, handles : (smallish)
444 . * help text /(c) notice?
446 . * warning /errors/progress
447 . * abort on error/warning; exit status
448 . * quiet/ignore-version options
451 . * elaborate Staff_side baseclass:
457 . * speed up PS code.
458 . * PS lines to .eps files
459 . * write custom prolog
461 . * Output an output format independent (ofi) typeset file; and
462 make ofi2 TeX, MusiXTex, Display PostScript, PostScript,
463 Ascii... interpreters. (difficult)
466 . * Common Music Notation
467 . * PostScript output (esp. Beams, Slurs, etc)
468 . * Move all Score_elems, into libmutype.a
472 . * Doc (C) stuff of sheet music
473 . * a better format? SGML? TeX? Info?
474 . * a better tutorial
476 . * more spanners (smallish)
480 . * Rewrite Stem, Beam and Rhythmic_grouping (hairy)
482 **** doc on Rhythmic_grouping
483 . * general shaving on Beam and Stem
484 . * use plet grouping
485 . * separate visual from rhythmic info even more
489 . * Ledger lines, should be separate item: Ledger_lines, Ledger_lines
490 . * set different line sizes / thicknesses
491 . * beam stem showthrough, inter beam sizes (french vs german style)
494 . * left/right note balls should be handled by Collision:
495 < \multi 2; { \stem 1; <b c> } { <f as b> } >
498 . * merge key{item} & localkey{item}?
499 . * spacing, national styles?
502 . * redo Notehead to allow digits as heads
503 . * add a \tablature {} lexer mode for easy entering
505 . * should adjust stemlength for flag number.
508 . * caching breakpoints
510 . * specify number of lines
513 . * c4 4 4 4 for c4 c4 c4 c4?
514 . * neatly (and readably) expressing concurrent
526 . * relative mode for pitch entering
527 . * configure pitch_byte
528 . * rest name configurable
533 . * limit memory usage; the full coriolan takes up too much resources.
535 . * fix confusing naming in Engraver vs Engraver_group_engraver (context)
537 . * progress when creating MIDI elts.
539 . * A range for context errors (eg. mark both { and }. )
541 . * lyric in staff (sharpsharp in staff, text below)
543 . * half sharps/flats
545 . * write Dynamic_line (to group dynamics horizontally)
547 . * use Real for all y positions.
549 . * half-sharps, half-flats
551 . * adaptive accidental spacing.
553 . * handle EOF graciously in error messages.
555 . * declare notenametab?
557 . * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
559 . * stafftypes: voice names/ instrument names.
563 . * C meter iso 4/4, idem for alla breve, etc.
565 . * textspanner: center position
567 * % toe to bheel four to five
573 (where "to" is a tiny bow)
575 . * auxilliary file for caching info.
579 . * clean solution for staffsize in items.
583 . * Output data structures of Mudela in XML/SGML.
584 . * create libmudela, or liblily_frontend
585 . * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
586 . * Spacing_request for manually adjusting spacing
587 . * caching breakpoints
588 . * used fixedpoint arithmetic for min. energy.
589 . * move towards incremental algorithms.
590 . * far fetched language ideas
591 . * design meta-language like TeX and Metafont
592 . * programming/macros input
593 . * versioning stuff (cvt mudela, mudela, etc.)
595 . * dynamic loading of engravers?
597 Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
599 > mcmanus@IDT.NET writes:
600 > > > I want different C++ objects (with scheme embedded) to be linked by
601 > > > C++ pointers. I want to access these other objects from the Scheme
602 > > > code, and I want access to these pointers from C++.
604 > > You can do this with a combination of smob's and primitive functions,
605 > > though it may not be be exactly what you wanted. You would have one
606 > > smob for each class in your application, and then you would write a
607 > > primitive function that would return the objects that are linked to a
610 > And the smob and the C++ class are interlinked? Like
613 > Foo_smob *smob_ptr_;
617 > Foo_class *class_ptr_
620 Usually you can get away without having this interlinked structure.
621 One piece of information you need when exporting objects to scheme is
622 the smob tag for your class. You might store this value (a long) into
623 a class static variable, or a file static variable. I'll use a class
624 static variable in this example.
626 I typically use code that works like this (untested code ahead):
629 static long *Foo_smob_tag;
630 SCM obj; // representation as a scheme object, description comes later
633 // call this once on startup
634 void init_Foo_class {
635 static scm_smobfuns type_rec;
637 type_rec.mark = foo_mark;
638 type_rec.free = foo_free;
639 type_rec.print = foo_display;
641 Foo_class::Foo_smob_tag = new int(scm_new_smob(type_rec));
644 When you want to export an object to scheme, you put a pointer to the
645 object itself in the cdr of the cell, and the tag in the car of the
646 cell. The code looks like this:
652 return(SCM_NIMP(obj) && SCM_CAR(obj) == Foo_class::Foo_smob_tag);
655 // given a Scheme representation, return, a C++ representation
659 return((Foo_class*)SCM_CDR(obj));
662 // the SCM representation of the object is stored inside itself
663 // this will become useful when destructor gets called
665 foo_box(Foo_class *foo)
668 SCM_NEWCELL(foo->obj);
669 SCM_SETCAR(foo->obj, Foo_class::Foo_smob_tag);
670 SCM_SETCDR(foo->obj, (SCM)foo);
675 > C++ determines life time, so what is the strategy?
677 What happens now when the destructor gets called? Lets set the cdr to
678 NULL, and then check for that in all of the primitive functions that
679 use your smob. We'll call this notion 'live'; a scheme object is
680 'live' if the C++ representation still exists, it's dead if the C++
681 object is gone. You can still have references to dead objects in
682 scheme code; it's just an error to use them. This idea is stolen from
683 Emacs's handling of buffers ('buffer-live-p' and friends).
685 Add another function, foo_live_p:
690 return(foo_p(obj) && SCM_CDR(obj) != NULL);
693 In you destructor, you need to do:
697 SCM_CDR(this->obj, NULL);
700 When writing new primitives, now just check foo_live_p().
702 I hope the above helps,
708 "Even if you are on the right track, you'll get run over
709 if you just sit there."
710 --Will Rogers (1879-1935)
715 (defvar outline-font-lock-keywords
716 '(;; Highlight headings according to the level.
717 ;; must change this to allout node layout
718 ;;("^\\(\\*+\\)[ \t]*\\(.+\\)?[ \t]*$"
719 ("^\\([.]*[ ]*[*]\\)[ \t]*\\(.*\\)$"
720 (1 font-lock-string-face)
721 (2 (let ((len (- (match-end 1) (match-beginning 1))))
722 (or (cdr (assq len '((1 . font-lock-function-name-face)
723 (2 . font-lock-keyword-face)
724 (3 . font-lock-comment-face))))
725 font-lock-variable-name-face))
727 ;; Highlight citations of the form [1] and [Mar94].
728 ("\\[\\([A-Z][A-Za-z]+\\)*[0-9]+\\]" . font-lock-type-face))
729 "Additional expressions to highlight in Outline mode.")
731 (add-hook 'outline-mode-hook
733 (setq font-lock-maximum-decoration t)
734 (setq font-lock-maximum-decoration t)
735 (make-local-variable 'font-lock-defaults)
736 (setq font-lock-defaults '(outline-font-lock-keywords t))
737 (font-lock-mode (global-font-lock-mode))))