# Bruce Maxwell # January 2012 # Program that generates note entries for the granular Csound synthesis # These are randomly selected samples played at regular time intervals import sys import random # Generates N granules, played at regular intervals in sequence # Each granule is a random sample from the source table # The length of each granule is determined by the beats-per-minute and overlap (given) # The playback speed is randomly chosen from between minfreq and maxfreq # The amplitude is a given # Total time is a given def main(argv): if len(argv) < 6: print 'Usage: python %s