The node you are looking for is at Automatic notation - Generating whole scores (also book parts) in Scheme without using the parser.