|
From: | Mats Bengtsson |
Subject: | Re: efficient score and part production |
Date: | Tue, 14 Oct 2003 16:46:58 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 |
I don't really see any advantage of using sed or some other preprocessor compared to the ordinary features of LilyPond: \repeat unfold 3 { R1 } or Notes={...} MeasureRest={...} SomethingElse={...} {\Notes \Notes \MeasureRest \MeasureRest \MeasureRest \repeat unfold 10 \SomethingElse ... } /Mats David Raleigh Arnold wrote:
On Monday 13 October 2003 10:50 pm, Paul Scott wrote:I have posted variations of this before and I am at least curious what some of you do to save work here.Of course I use sly. I am converting it to python, and not yet around the bend on the learning curve, but here is a sed filter that fillsempty lines with whatever you choose. In xxx.ly: measureRest = {\notes s1} (The necessity for \notes is/was? a bug.) The filter: # pie.sed --put into empty lines, no tabs /%pie=/{ h s/.*%pie=// x } /^ *$/{ g } Sample file: notes notes %pie=measureRest notes %pie=somethingElse -----end Result: notes notes measureRest measureRest measureRest notes somethingElse -----endTo use it in an xxx.ly file which is not just parts, address the interesting portions:/%{start%},%{end%}/{ #put stuff here } or use: %pie= daveA
-- ============================================= Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: address@hidden WWW: http://www.s3.kth.se/~mabe =============================================
[Prev in Thread] | Current Thread | [Next in Thread] |