lilypond-user
[Top][All Lists]
Advanced

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

Re: consolidate code


From: David Nalesnik
Subject: Re: consolidate code
Date: Tue, 11 Feb 2014 19:08:46 -0600

Hi Ming,


On Tue, Feb 11, 2014 at 4:28 PM, MING TSANG <address@hidden> wrote:
Hi all, 
I further reduce the code to 53 lines.  line 4 - 20 & line 24 - 40  are identical except line 14 vs line  34.   The actual code for notes is only 8 lines ( 45 - 52).  I think I cannot reduce anymore in order to show my problem and request.

Thank you for cutting this down further.  I suspect you could cut down the musical example still further, because all you need to show is inconsistent placement of numbers vs. syllables.
 
Again  to ask:
problem 1: I am expecting all numbers (jianpu) on top of the letters (solfege) - on bar 1 and bar 3 they are reversed; is it possible to solve?

Yes.  You simply need to override TextScript.outside-staff-priority for one of the voices.   See attached.
 
request 2: Is it possible to combine lins 4-20 & lines 24-40 into one define variable so that line 14 and line 34 can be access by parameter or by if statement?

Yes.  Here I took the liberty of using your original file, since it's easy enough to condense everything there and I assume that's still your goal.  See the attached file.

Best,
David

Attachment: condensed.ly
Description: Text Data


reply via email to

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