# Bruce Maxwell # January 2012 # Program that generates note entries for the granular Csound synthesis # These are randomly selected samples played and uniformly random times import sys import random # Generates N granules, all the same length, at uniformly random times # Each granule is a random sample from the source table # The length of each granule is a given # The total number of granules is a given # The playback ratio is a given # The overall amplitude is a given def main(argv): if len(argv) < 9: print 'Usage: python %s <# granules>