Is it possible to Pitchshift a live microphone using the Pitchshift UGen and SoundIn? I’m attempting to route the signal to Logic Pro X using an audio interface - Focusrite Scarlett 2i2. I’ll copy + paste the code I have below. When I use s.meter, my input is being picked up by my microphone and when I activate the synth using Synth.new(\mic), I can see the output levels moving too. And when I change the pitchRatio I can sometimes hear it and sometimes can’t. When I do hear it, it sounds like a granular synth, just repeating the words I’m saying in to the microphone and it’s super quiet and only in the left channel. I’d appreciate any help.
ServerOptions.devices;
(
s.options.device = "Scarlett 2i2 USB";
s.options.numOutputBusChannels = 2;
s.options.numInputBusChannels = 2;
s.boot;
)
(
SynthDef.new(\mic, {
arg in=0, out=0, amp=1, windowSize, pitchRatio, pitchDispersion, timeDispersion;
var sig;
sig = SoundIn.ar(in) * amp;
sig = PitchShift.ar(sig, 2, 3, 0.0, 0.0);
Out.ar(out, sig);
}).add;
)
Synth.new(\mic);
s.meter;
Server.killAll;