[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ANN: python-ly 0.1 (the "ly" tool)
From: |
David Kastrup |
Subject: |
Re: ANN: python-ly 0.1 (the "ly" tool) |
Date: |
Tue, 07 Jan 2014 09:25:35 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Johan Vromans <address@hidden> writes:
> Wilbert Berendsen <address@hidden> writes:
>
>> a first release of the command-line ly tool with the Python ly library
>> is out:
>
> Yay!
>
> Given a (section of) .ly with barchecks and line number comments, e.g.
>
> d16 c8.~ c4 r2 | % 9
> \bar "||"
> R1 | % 10
> R1 | % 10
> R1 | % 12
> e4 e8 e16 f16~ f8. c16 f8 e8 | % 13
>
> can ly recalculate the line numbers? For example, in Emacs, select a
> section and then
>
> C-u M-| ly "renumber;start=8"
>
> would result in
>
> d16 c8.~ c4 r2 | % 8
> \bar "||"
> R1 | % 9
> R1 | % 10
> R1 | % 11
> e4 e8 e16 f16~ f8. c16 f8 e8 | % 12
In Emacs, you can just do
M-C-: % \([0-9]\)+$ RET % \,(+ \# 8) RET
Assign it to a keyboard macro/command if you do it more frequently...
--
David Kastrup