scheme - What is the best way to automatically transpose a LilyPond source file into multiple keys? -
problem
I'm typing sheet music for a church On the basis of who is available on any week of the choir to perform the show, the songs will be played in different keys. We have a wonderful pianist who can throw anything on us and guitars will alternately get pencils in chairs, but I want to make things easier, in any key we want that the sheet music is beautifully available Do it.
So we say that we will sing our ABC songs. First of all, the source transcription that I provide and put it in the LillyPond script:
Melody = \ Relative C \ {ccggaa g2 ffeedd c2} I want the ability to move it automatically, so if I want the whole thing in 'ji' then I will wrap the song in a transaction call like this:
melody = \ transpose Cg \ relative c '{Ccggaa g2 ffeedd c2} Whatever place I want, some place for' G ' And sometimes produces output for melody. The simple LilyPond variable does not seem to work here, and so far I have failed to define a plan function to do so.
Do I have the support for this moment taking the above file, it says twinkle.ly and turning it into an M4 script, say twinkle.ly.m4, from which the content looks like this :
Then I compile by executing the following line:
& gt; M4-D _Ki = G. Twinkle.LM4 & gt; Twinkle_g.ly & amp; Amp; Lilpond twinkle_g.ly I have written a makefile, to do this for me, I have to define rules for every song and I have interest in everything.
Questions should be a better way to go about it, Given that Lillipand supports embedded schemes, I would not like to use the macro already processed on it Has anyone else solved this problem?
You can refer to mediatory variables and it has been changed to the desired key:
Melody = \ Relative C '{c8 ece g4 g} \ score {\ transpose cd \ melody} \ score {\ transpose ce \ melody}% etc If you have different files If you want to output changes in the form, then embed them into the \ book blocks.
Comments
Post a Comment