[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Repeating articulations
From:       David Raleigh Arnold <darnold4 () cox ! net>
Date:       2003-04-28 22:27:34
Message-ID: 20030428222619.LFMN23518.lakemtao03.cox.net () there
[Download RAW message or body]

Sorry I don't have the original message so the subject won't thread.

There is another way to append, and that is to do it backwards.
That may be more useful.  Sly works line by line.  sed is
Stream EDitor but it works on a stream of lines.

Type 
[*8_.]
Copy:
[*8_.][*8_.][*8_.][*8_.]
Copy:
[*8_.][*8_.][*8_.][*8_.]
[*8_.][*8_.][*8_.][*8_.]
[*8_.][*8_.][*8_.]
Then type in the pitches:
c d e f [*8_.][*8_.][*8_.][*8_.]
g a g f [*8_.][*8_.][*8_.][*8_.]
e d c [*8_.][*8_.][*8_.] 

That asterisk substitution has been in ptfilter.sed
from the beginning.  Here are two more sub
features, including appending, but everything
stays on the same line, and therefore ordinarily
the same measure.

# syntaxes: @x[n], @a[n]
# multiply instances of next word.
# up to 9. Min 2.  Adding is too confusing.
# example: `@a9 nation @x9 termi' writes
# termi 9 times and adds nation to each.
# put these lines in ptfilter.sed before asterisk substitution.
s/@x9  *\([^ ]*\)/@x8 \1 \1/g
s/@x8  *\([^ ]*\)/@x7 \1 \1/g
s/@x7  *\([^ ]*\)/@x6 \1 \1/g
s/@x6  *\([^ ]*\)/@x5 \1 \1/g
s/@x5  *\([^ ]*\)/@x4 \1 \1/g
s/@x4  *\([^ ]*\)/@x3 \1 \1/g
s/@x3  *\([^ ]*\)/@x2 \1 \1/g
s/@x2  *\([^ ]*\)/\1 \1/g
# append next word to max 9 following words.
# syntax: @a[n] appendage word1 word2... 
s/@a9  *\([^ ]*\)  *\([^ ]*\)/\2\1 @a8 \1 /g
s/@a8  *\([^ ]*\)  *\([^ ]*\)/\2\1 @a7 \1 /g
s/@a7  *\([^ ]*\)  *\([^ ]*\)/\2\1 @a6 \1 /g
s/@a6  *\([^ ]*\)  *\([^ ]*\)/\2\1 @a5 \1 /g
s/@a5  *\([^ ]*\)  *\([^ ]*\)/\2\1 @a4 \1 /g
s/@a4  *\([^ ]*\)  *\([^ ]*\)/\2\1 @a3 \1 /g
s/@a3  *\([^ ]*\)  *\([^ ]*\)/\2\1 @a2 \1 /g
s/@a2  *\([^ ]*\)  *\([^ ]*\)/\2\1 @a1 \1 /g
s/@a1  *\([^ ]*\)  *\([^ ]*\)/\2\1/g

You can also now:

c d e f @x4 [*8_.]

or even:

@a4 8_.] [c [d [e [f

-- 
The biggest losers of all are the winners of an unjust war.
The wars are not over.  Just the winning part is over.
Bush lied.  Thousands died.  dra@ http://www.openguitar.com



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic