...
parser.add_argument('-t', '--time', help="Duration of the wave in seconds.", default=60, type=float)
...
# convert the channel functions into waveforms
samples = compute_samples(channels, int(args.rate * args.time))
...
write_wavefile(filename, samples, int(args.rate * args.time), args.channels, args.bits // 8, args.rate)