code: def get_random_choral(log=True):
    
    choral_file = corpus.getBachChorales()[random.randint(0, 399)]
    choral = corpus.parse(choral_file)
    if log:
      print("Chosen choral:", choral.metadata.title)
    return choral
docs: Gets a choral from the J. S. Bach chorals corpus (in Music21).