lilypond-user
[Top][All Lists]
Advanced

[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 11:51:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

David Kastrup <address@hidden> writes:

> Johan Vromans <address@hidden> writes:
>
>> Wilbert Berendsen <address@hidden> writes:
>>
>> 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...

Of course, M-C-% rather than M-C-:, sorry for any confusion.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]