lilypond-user
[Top][All Lists]
Advanced

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

Re: Changing voice order...


From: Urs Liska
Subject: Re: Changing voice order...
Date: Tue, 1 Nov 2016 23:41:44 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

Am 01.11.2016 um 23:40 schrieb Kieren MacMillan:
> Hi all,
> 
>>   [pseudocode:]
>>   \splitUD { topmusic \with UP } { bottommusic \with DOWN }
>>   \splitUUD { topmusic \with UP } { middlemusic \with UP } { bottommusic 
>> \with DOWN }
>>   \splitUDD { topmusic \with UP } { middlemusic \with DOWN } { bottommusic 
>> \with DOWN }
>>   etc.
> 
> If I was better with Scheme, I would try to whip up a function that accepted 
> an arbitrary number of musical expressions, with the up/down dictated by the 
> first parameter, e.g.
> 
>     \split u,d,u,u,d,d { 1st,up [= top] } { 2nd,down } { 3rd,up } { 4th,up } 
> { 5th,down } { 6th,down [= bottom] }
> 
> Seems like smarter-than-me people could make this (or similar) work, no sweat.

Something like

    \split "uduudd"

should be easily parseable. Well, it wouldn't even need the quotation
marks around.

But I'm not sure how to write a function that accepts an arbitrary
number of music expressions. Basically that seems to call for a "list of
music expressions", but I'm not sure to what extent that would make the
syntax unwieldy.

Urs

> 
> Cheers,
> Kieren.
> ________________________________
> 
> Kieren MacMillan, composer
> ‣ website: www.kierenmacmillan.info
> ‣ email: address@hidden
> 
> 
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 


-- 
Urs Liska
www.openlilylib.org



reply via email to

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