Since \newcommand takes a maximum of 9 params, move the notes, history and closing \vfill for each tune from \showtune to the text generated for each tune in dottes.tex.tune.