Skip to content

Commit

Permalink
Small update to sine_pops
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobjoaquin committed Apr 23, 2013
1 parent 778faf0 commit 389354e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/PythonScore/sine_pops.csd
Expand Up @@ -44,11 +44,11 @@ def sine_pops(start, dur, amp, freq_min, freq_max, density):
'''

for i in xrange(int(density * dur)):
time = uniform(start, start + dur)
amplitude = uniform(0, amp)
freq = exprand(freq_min, freq_max)
duration = 1 / freq
freq *= choice([1, -1])
time = uniform(start, start + dur)
pan = random()
score.i(1, time, 1, duration, amplitude, freq, pan)

Expand Down

0 comments on commit 389354e

Please sign in to comment.