lilypond-user
[Top][All Lists]
Advanced

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

horizontal distances, +


From: David Raleigh Arnold
Subject: horizontal distances, +
Date: Mon, 18 Feb 2002 02:50:08 -0600 (CST)
User-agent: IMP/PHP IMAP webmail program 2.2.5

Here is a sed script which filters a file with lilypond notes
in it in several interesting ways.
 
====cut here======
 
# replace tabs with spaces. Make sure s/tab/ is a tab.
 s/       / /g
 # remove leading spaces
 s/^  *//g
 # remove trailing spaces
 s/ *$//g
 # remove double spaces
 s/  */ /g
 
# this routine bypasses processing at NoP, resumes at eof or NoNOP
 /NoP/{
 :top
 s/NoP//
 n
 s/NoNOP//
 t
 b top
 }
 
# this comments, adds \mr. Define \mr in .ly
 /KiLL/{
 s/KiLL/\\mr % /
 :killing
 n
 s/NoKILL//
 t
 s/^/\\mr % /
 b killing
 }
 
# this plugin routine replaces gub gab re* * with regub gab
 # skip ** if two and write one after this procedure.
 s/\*\*/TwoAsterisksWriteOne/g
 :again
 /\*/{
 s/\([^ ]*\)[^\*]*\*/&\1/
 s/[^ ]*//
 s/^ //g
 s/\*//
 t again
 }
 s/TwoAsterisksWriteOne/\*/g
 
# this is a working example of placing commands 
# before and after following word
 :domore
 /@mc/{
 s/@mc *\([^ ]*\)/mycommand1 \1 mycommand2 /
 b domore
 }
 
# this is a working example of simple substitution
 s/lD /\\stemDown /g
 
====cut here===
 
The hangup with petals is making sure that a matrix
transposition *cannot* result in the loss of data. At the
first opportunity I will rewrite that part of it
in python. Sorry it's taking
so long.
 
Two questions:
1.  How do you adjust the horizontal distance
between the clef and the chromatic signs in the key
signature?
2.  How do you adjust the horizontal distance
between the key signature and the time signature?
  
 ------------------------------------------------------------
 Information is not knowledge.           Belief is not truth.
 Indoctrination is not teaching.   Tradition is not evidence.
          David Raleigh Arnold   address@hidden
 



reply via email to

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