lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reminder accidentals


From: Benjamin Esham
Subject: Re: reminder accidentals
Date: Fri, 24 Dec 2004 15:31:29 -0500

On Dec 24, 2004, at 2:55 PM, Ridwan Sami wrote:

Benjamin Esham <address@hidden> wrote:

does anyone know of a way to put the "!" at the end of notes in an
lengthy .ly file quickly so that there are no syntax errors?

What text editor are you using?  You (or someone else) could probably
write a regular expression to add "!" to all notes with accidentals.

the notes in the .ly were exported by rosegarden 4 so they have varying
numbers of apostrophes and commas and if i don't figure out how to use
wilcards, i will be stuck with about 50 replacement operations, highly
subject to error.

did you have a specific text editor in mind that can do this
efficiently?

Any text editor that supports regular expressions should work.  Make a
backup of your file, and then try playing around with this (you'll
probably have to change the syntax somewhat):

  s/\([a-g]\)\(es\|is\)\{1,2}\('*\)/\1\2\3!/g

--
Benjamin D. Esham     {      http://bdesham.net
address@hidden      }     AIM: bdesham 1 2 8
cd jdk   /   rm -r *.*   /   garbage collection
                                -- a Java haiku





reply via email to

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