This commit is contained in:
j 2017-10-02 13:42:56 +02:00
parent 045d6b8758
commit 4fd7f15a97

View file

@ -122,10 +122,7 @@ if __name__ == '__main__':
seq = random(n) seq = random(n)
duration = float(sys.argv[2]) + 10 duration = float(sys.argv[2]) + 10
tracks = int(sys.argv[3]) tracks = int(sys.argv[3])
if len(sys.argv) > 1: output = sys.argv[4]
tracks = int(sys.argv[1])
else:
tracks = 42
data = get_gongs(seq, {}, duration, tracks) data = get_gongs(seq, {}, duration, tracks)
mix_gongs(data, output) mix_gongs(data, output)
with open(output + '.json', 'w') as fd: with open(output + '.json', 'w') as fd: