| I was inspired by Jacob Joaquin to make a "falling" version of For
Anne (Rising) based on his Csound code, and then I took the original
and rewrote it using bin=, and merged them into one CSD.
This is the result.
sr = 44100
ksmps = 1
nchnls = 1
0dbfs = 1
instr 1
kamp linseg 0, 8.4, 2000/32768, 16.8, 2000/32768, 8.4, 0
kf expon 10240, 33.6, 40
i1 ftgenonce 0, 0, 8192, 10, 1
a1 oscil kamp, kf, i1
out a1*.349
endin
instr 2
kamp linseg 0, 8.4, 2000/32768, 16.8, 2000/32768, 8.4, 0
kf expon 40, 33.6, 10240
i1 ftgenonce 0, 0, 8192, 10, 1
a1 oscil kamp, kf, i1
out a1*.349
endin
import sys
with open(sys.argv[1],'w') as f:
for i in range(240):
f.write('i1 %f 33.6\n'% (i*2.8))
f.write('i2 %f 33.6\n' % (i*2.8))
Anyone have good names for this? (Has anyone done this before?)
|