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