src/xi.c : Set basenote and loop info in instrument structure.

Previously this was only logged but not exposed. Now applications can
query the information.

Based on a patch from Stefan Sauer <ensonic@users.sf.net>.

Closes: https://github.com/erikd/libsndfile/pull/54