A medieval music manuscript has gone on display in the town where it was created for the first time in nearly 500 years.