Changing Speed and Pitch in a real-time recording

agnesw's icon

Hi,

I've been trying numerous ways of changing pitch and speed of my real-time voice recording - i.e time-stretch, but nothing seems to be working. I've found patches that can do this but only with a sample via buffer~. I'd be forever grateful for any help!

If anyone knows how to stop playing a sample that is being triggered via togedge by arduino that would be awesome too.

Thanks,
Agnes

terenceformer's icon

Your other question can be answered in many ways, you'll need to clarify it or post your patch (use "copy compressed" in Max).

agnesw's icon

Thanks! I will give this a try right away..

As for the togedge patch it looks something like this: (it's a part of a larger patch but this will hopefully be enough for this specific problem.

Max Patch
Copy patch and select New From Clipboard in Max.

Thanks again!

agnesw's icon

Although this patch seems perfect for what I need, I can't figure out how to connect my microphone rather than using a sample. Any ideas?

Thanks for any feedback!

terenceformer's icon

To use your mic, simply use [ezadc~] (or [adc~], though it's probably more complicated than you need). The outlets will provide the signal coming in form your audio input device (go to >Audio>Audio Status... in the menu bar to configure this).

With [sfplay~], you send it a 0 (zero) to stop playback. Other integers will play preloaded audio... you should read the reference file for it (e.g. right click the object..). So you could, for example, have the toggle boxes go right into them to start/stop playback.
You might also check out [groove~]. BTW it requires a [buffer~] object (which stores the audio in RAM) - [sfplay~] does not (it reads directly from hard disk.)

agnesw's icon

Do you happen to have a patch on how the mic is connected - I think the ezadc~ will work well although I can't figure out how to connect everything.. I'm very much a visual learner. Thanks!!

agnesw's icon

Ah I figured it out the mic situation, just a simple mistake.

Daniel Guerrero's icon

How did you solve it??