Fantastic snippet, thank you Wolfgang! My original code is a bit more complicated, it often (but not always) involves artist, tempo and tonality data, like this \define[1]\artist{{\itx #1}} \define[1]\bpm{{\tfx #1 bpm}}} ... \item Sway \artist{Pussycat Dolls} \bpm{136-138} \item Fly me to the moon \key{Em} \artist{Julie London} \item Hit the road jack \key{Am} \artist{Ray Charles} \bpm{94} ... How can I incorporate this optional data into song? My guess \song{Hit the road jack \bpm{94}} does not work. -- Best Regards, Vyatcheslav Yatskovsky
Am 07.10.2011 um 16:16 schrieb Vyatcheslav Yatskovsky:
Fantastic snippet, thank you Wolfgang!
My original code is a bit more complicated, it often (but not always) involves artist, tempo and tonality data, like this
\define[1]\artist{{\itx #1}} \define[1]\bpm{{\tfx #1 bpm}}}
...
\item Sway \artist{Pussycat Dolls} \bpm{136-138} \item Fly me to the moon \key{Em} \artist{Julie London} \item Hit the road jack \key{Am} \artist{Ray Charles} \bpm{94} ...
How can I incorporate this optional data into song? My guess \song{Hit the road jack \bpm{94}} does not work.
There is a easy way to find out if it works: 1. Create a new file, 2. add the code you want to test and 3. run ConTeXt. Wolfgang
participants (2)
-
Vyatcheslav Yatskovsky
-
Wolfgang Schuster