A flexible staff paper generator