I'm currently creating a small Program with Python and pyo that should use the microphone input as a source and then add several effects and filters provided by pyo. I couldn't find anything in the docs, is there a way to use the microphone input as a source, are there any alternatives to pyo?
Here's the basic example I have so far:
from pyo import *
s = Server().boot()
s.start()
s.amp = 0.1
# use microphone input here
sf = Sig(1).out()
# Passes the sine wave through an harmonizer.
h1 = Harmonizer(sf).out()
s.gui(locals())
I know there's a function to set the input device, like
s.setInputDevice(5), but I can not figure out how to actually use it.
Thanks for the help!
It looks like you aren't actually creating an input stream. Something like this (no gui) will output your microphone input:
Or, to modify the harmonizer default example: