git.haldean.org symrep / 2785f29
that's a nice sound. Will Haldean Brown 6 years ago
1 changed file(s) with 7 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
11 import sys
22
33 n1 = symrep.product(
4 symrep.const(0.5),
4 symrep.const(0.3),
55 symrep.product(
66 symrep.audio.sine(symrep.const(440)),
77 symrep.audio.sine(symrep.const(0.5)),
88 )
99 )
1010 n2 = symrep.product(
11 symrep.const(0.5),
11 symrep.const(0.3),
1212 symrep.product(
1313 symrep.audio.sine(symrep.const(360)),
1414 symrep.audio.sine(symrep.const(0.4)),
1515 )
1616 )
17 n = symrep.sum(n1, n2)
17 n3 = symrep.product(
18 symrep.const(0.3),
19 symrep.audio.sine(symrep.const(500)),
20 )
21 n = symrep.sum(n1, n2, n3)
1822
1923 symrep.audio.to_wav(n, 44100, 10, sys.stdout)