Pipe stdin to soundcard using SDL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

lfo.py 336B

12345678910111213141516
  1. from synth import *
  2. while True:
  3. wv0 = sinwave()
  4. wv1 = sinwave(0.1)
  5. wv2 = sinwave(0.011)
  6. lfo0 = sinwave(0.1)
  7. lfo1 = sinwave(0.0005)
  8. wv2 = vol_lfo(wv2, lfo0)
  9. mix = mixer(wv0, wv1, wv2)
  10. r = vol_lfo(mix, lfo1)
  11. samples = output_sampler(r)
  12. while True:
  13. sys.stdout.buffer.write(next(samples))