File: test.py

package info (click to toggle)
python-pyo 1.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 52,332 kB
  • sloc: python: 135,133; ansic: 127,822; javascript: 16,116; sh: 395; makefile: 388; cpp: 242
file content (9 lines) | stat: -rw-r--r-- 338 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
import random

# Get the input sound and apply a stereo delay on it.
feed = SigTo(0, 0.05, 0)
freq = SigTo(0.1, 0.05, 0.1)
freq_sc = Scale(freq, 0, 1, 100, 10000, 4)
st_input = Input([0, 1])
st_filter = ButBP(st_input, freq_sc)
st_delay = Delay(st_filter, delay=[random.uniform(0.1, 0.9) for i in range(2)], feedback=feed).out()