lilypond-user
[Top][All Lists]
Advanced

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

Re: Repeating articulations


From: David Raleigh Arnold
Subject: Re: Repeating articulations
Date: Mon, 28 Apr 2003 18:27:34 -0400

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: address@hidden 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




reply via email to

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