def clefs_on_pages(num_of_pages, list_of_lists_of_clefs): place_clefs = generate_clefs(list_of_lists_of_clefs,x_offset)#[0] place_clefs = string.joinfields(place_clefs,'') index = 0 while index < num_of_pages: page_num = index + 1 pages = open(path_file+str(page_num)+'.ps', 'a') pages.write(place_clefs) index += 1
def staves_on_pages(num_of_pages): place_staves = generate_staves(num_of_staves,x_offset)[0] place_staves = string.joinfields(place_staves,'') index = 0 while index < num_of_pages: page_num = index + 1 pages = open(path_file+str(page_num)+'.ps', 'a') pages.write(place_staves) index += 1