Permalink
Browse files

First pass graincloud refactor

  • Loading branch information...
hecanjog committed Oct 11, 2018
1 parent 15f072e commit 24823edf57c2fcb2954c56bce3430836b3fbf1b2
Showing with 46,654 additions and 47,678 deletions.
  1. +2 −2 examples/osc2d_example.py
  2. +4 −4 examples/swarmy_graincloud.py
  3. +3 −3 pippi/defaults.c
  4. +758 −734 pippi/dsp.c
  5. +5 −4 pippi/dsp.pyx
  6. +1,099 −723 pippi/fx.c
  7. +10 −3 pippi/fx.pyx
  8. +14,811 −20,042 pippi/grains.c
  9. +31 −47 pippi/grains.pxd
  10. +202 −74 pippi/grains.pyx
  11. +62 −377 pippi/graph.c
  12. +3 −3 pippi/graph.pyx
  13. +6 −3 pippi/interpolation.c
  14. +1,028 −2,371 pippi/oscs.c
  15. +9 −68 pippi/oscs.pyx
  16. +2,300 −2,354 pippi/soundbuffer.c
  17. +2 −4 pippi/soundbuffer.pxd
  18. +28 −102 pippi/soundbuffer.pyx
  19. +18,061 −16,616 pippi/soundpipe.c
  20. +40 −6 pippi/soundpipe.pxd
  21. +147 −46 pippi/soundpipe.pyx
  22. +7,929 −4,002 pippi/wavetables.c
  23. +13 −3 pippi/wavetables.pxd
  24. +65 −72 pippi/wavetables.pyx
  25. +6 −6 requirements.txt
  26. +8 −0 setup.py
  27. +20 −7 tests/test_graincloud.py
  28. +2 −2 tests/test_wavetables.py
@@ -68,13 +68,13 @@ def make_note(freq, amp, length):
win=dsp.HANN,
minlength=(note.dur/50)*1000,
maxlength=(note.dur/3)*1000,
grainlength_lfo_wt=wavetables.randline(random.randint(10, 100)),
grainlength_lfo=wavetables.randline(random.randint(10, 100)),
mindensity=0.1,
maxdensity=random.triangular(0.25, 0.75),
spread=1,
speed=random.choice([1, 1.5, 2]),
jitter=random.triangular(0, 0.05),
density_lfo_wt=wavetables.randline(random.randint(5, 50)),
density_lfo=wavetables.randline(random.randint(5, 50)),
).adsr(a,d,s,r)
note.dub(arp, 0)
@@ -1,4 +1,4 @@
from pippi import dsp, grains, interpolation
from pippi import dsp, grains, interpolation, wavetables
import random
import os
import time
@@ -14,9 +14,9 @@ def makecloud(density):
return grains.GrainCloud(snd * 0.125,
win=dsp.HANN,
read_lfo=dsp.PHASOR,
speed_lfo_wt=interpolation.linear([ random.random() for _ in range(random.randint(10, 1000)) ], 4096),
density_lfo_wt=interpolation.linear([ random.random() for _ in range(random.randint(10, 1000)) ], 4096),
grainlength_lfo_wt=interpolation.linear([ random.random() for _ in range(random.randint(10, 500)) ], 4096),
speed_lfo=wavetables.randline(random.randint(10, 1000)),
density_lfo=wavetables.randline(random.randint(10, 1000)),
grainlength_lfo=wavetables.randline(random.randint(10, 500)),
minspeed=0.25,
maxspeed=random.triangular(0.25, 10),
density=density,
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 24823ed

Please sign in to comment.