Heikki Johannes Junes <[EMAIL PROTECTED]> writes: > On Thu, 08 Jul 2004 18:05:03 -0400 [EMAIL PROTECTED] wrote: > > > I have taken your suggestions, and am sending you a patch which adds > > the what-beat command (renamed to LilyPond-what-beat) to LilyPond-mode > > in Emacs. I have made sure it handles the examples in the tutorial, > > and have documented the few cases it fails (see the comments at the > > top of lilypond-what-beat.el). > > It worked nicely. As I anticipated, one may use an introductory '|' to start with: > > { | c1 | c4 c4 ... }
Yes...that's one of the caveats...what-beat won't work if you don't precede notes with a | > > Let me know if you have any problems with it. > > What about recognizing also \bar "|" commands and its variants \bar "||" etc. as > a starting point of calculating (or simply \bar) ? Hmmmm. I just tried, and what-beat should ignore \bar. But when I call what-beat when a \bar command is visible (eg between the last unquoted | and point), I get a useless 'end of buffer' message instead of a beat count. I'll fix \bar if you want, but offhand I'm inclined not to. It's easy to add | before or after \bar "|", for when you want measures counted before/after \bar. In other words, yes its a bug, but there's an easy workaround, and fixing the bug would be for the sake of completeness, rather than adding functionality. > And please include ChangeLog entry, next iteration may be already fine. > > -- > Heikki Junes > Here is a suitable changelog entry: ----- Index: ChangeLog =================================================================== RCS file: /cvsroot/lilypond/lilypond/ChangeLog,v retrieving revision 1.2328 diff -u -r1.2328 ChangeLog --- ChangeLog 9 Jul 2004 11:06:28 -0000 1.2328 +++ ChangeLog 9 Jul 2004 14:56:10 -0000 @@ -1,3 +1,8 @@ +2004-07-09 David Svoboda <[EMAIL PROTECTED]> + + * elisp/lilypond-what-bet.el: Added LilyPond-what-beat function to + count beats between last measure stop | and point in emacs. + 2004-07-09 Han-Wen Nienhuys <[EMAIL PROTECTED]> * scm/beam.scm (check-slope-callbacks): check sign of slope. _______________________________________________ lilypond-devel mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/lilypond-devel