In linguistics, sentence-level tone is often indicated by a line above the sentence whose path traces the level of the tone at each point in the sentence. An example:

How would I make one of these neatly in LaTeX, aligning particular points of the line with particular syllables? I'd rather not resort to fiddling around with nodes in TikZ, if possible.
\tonalsentence{311}{|Mil|yen idő van?|}and have it come out to the example. But if there's no such package, I'm willing to delve into TikZ. I've no idea how to approach the problem there, though. – mszegedy Sep 22 '18 at 17:15