diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-10-09 12:49:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-10-09 12:49:27 +0300 |
commit | a5b4b0f21c1ae8c96e4fea9abdcfac2fab1cf300 (patch) | |
tree | 0658d8bdfb8ec03652aa04f82ee8a4d243ec6370 /extern/audaspace/bindings/python/examples/convolution.py | |
parent | d68f698cf0321477c0734474150eb4bc43c4e85f (diff) | |
parent | abcda06934aba054de8540b66b13c2bbc5f8f515 (diff) |
Merge branch '28' into custom-manipulatorscustom-manipulators
Diffstat (limited to 'extern/audaspace/bindings/python/examples/convolution.py')
-rw-r--r-- | extern/audaspace/bindings/python/examples/convolution.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/extern/audaspace/bindings/python/examples/convolution.py b/extern/audaspace/bindings/python/examples/convolution.py new file mode 100644 index 00000000000..4de25b0336a --- /dev/null +++ b/extern/audaspace/bindings/python/examples/convolution.py @@ -0,0 +1,10 @@ +#!/usr/bin/python +import aud, sys, time, multiprocessing +device = aud.Device() +ir = aud.ImpulseResponse(aud.Sound.file(sys.argv[2])) +threadPool = aud.ThreadPool(multiprocessing.cpu_count()) +sound = aud.Sound.file(sys.argv[1]).convolver(ir, threadPool) +handle = device.play(sound) +handle.volume = 0.1 +while handle.status: + time.sleep(0.1)
\ No newline at end of file |