"Dr. med. Kai Lautenschläger" <dr.lautenschlae...@gmx.net> writes:
> \version "2.19.7" > > Hi everyone! > > is it possible to construct variables from others? I want to construct > > \tempo "Text" 4=80 > > from the variables > > tempoText = "Text" and > tempoNumber = "4=80" > > that are defined at two different places in a complicated file structure > (\include) > > I tried: > > \version "2.19.7" > tempoText = "Text" and > tempoNumber = "4=80" > { > \tempo \tempoText \tempoNumber > a4 > } > > with an without quotation marks, but nothing worked. I suppose I just > can’t see the obvious and just looked for the wrong keywords in the > documentation. Can anyone point me in the right direction. tempoText is fine, but 4=80 is not a string. In 2.19.7, you could do
tempoText = "Text" tempoUnit = ##{ 4 #} tempoNumber = 80 { \tempo \tempoText \tempoUnit = \tempoNumber a4 }
But this begs the question why you don't just assign the whole tempo specification to a single variable. Note that ##{ 4 #} is a somewhat cumbersome shorthand in order to get at a single duration. -- David Kastrup
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user