In reply to Gordon Stainforth:
> The music seems to be played more or less entirely by preset pegs on rotating drums, and it is extremely unclear what exactly the ball bearings are doing, if anything.
The pegs/drums are releasing the ball bearings, which are then hitting the xylophone keys.