The present invention provides a computer-implemented system and method for rapid capturing of the physical environment in a formal manner and connecting this formal representation to the data held in an organization’s databases. The automatic accompaniment apparatus can generate derivative accompaniment style data from original accompaniment data with ease. The shaft includes a first end in the first chamber, a second end in the second chamber, and a substantially axial channel connecting the first end and the second end. This enables several different magnetic reference directions to be present on a single chip, which allows a more compact magnetic field sensor to be developed.