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

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