> On 23 Apr 2015, at 01:48, Kieren MacMillan <kieren_macmil...@sympatico.ca> > wrote: > > Hi Stephen (et al.) > >> anyway I tried a few examples and used %1a %2a etc for measures and used the >> bar check (|) as an end >> eg. >> %1a >> music | >
This would be reliant on meticulous use of of the “%NNNa" and “|” pairs to delineate the beginning and end of the bar, which might prove to be a tall order - perhaps requiring a syntax-testing script to pick up errors before running sed? Offended by the ragged line ends after editing, and feeling the OCD-sufferer’s need to have the bar checks neatly lined up at the end of the line, I routinely put the bar checks at the _beginnings_ of the bars, thus... | a4 b c d | a8 b c d e f g a | a16 b c d e f g a b c d e f g a b ...instead of... a4 b c d | a8 b c d e f g a | a16 b c d e f g a b c d e f g a b | ...or this... a4 b c d | a8 b c d e f g a | a16 b c d e f g a b c d e f g a b | …which has the bar checks neatly lined up using tab characters as I type this email, but will probably come out with a ragged edge when you receive it! I’m not sure whether sed can omit text up to but not including the second delimiter. Michael > I use > > music | % 1 > > Would sed still work? > >> worked almost every time, only problem I had was if I had to fix the octave > > Yet another reason to deprecate \relative, which I now avoid like the plague. > (Unfortunately, I was suckered into using it when I started using Lilypond > over a decade ago, so all my legacy code is in \relative mode. Using > Frescobaldi, I’m slowly converting all my old code to absolute mode.) > > Cheers, > Kieren. > ________________________________ > > Kieren MacMillan, composer > ‣ website: www.kierenmacmillan.info > ‣ email: i...@kierenmacmillan.info > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user