Make osc pitch follow audio in?


#1

Hi,

I’m looking for a way for the pitch of an oscillator to follow an external audio signal

Ideally I’d like to take a fixed snapshot value of the incoming audio signal, and have an oscillator play a note based on that value

Any tips greatly appreciated!

Thank you


Creating a real time quantized auto pitch shifter
#2

what is your input signal? a specific instrument?


#3

This has been up a few times lately. Check this thread:


#4

Nothing specific, but perhaps a bell to begin with


#5

Thank you, I’ll take a look and see if this covers what I’m trying to do


#6

It does pitch detection, so I think it will do the job :slight_smile:

Check his video it sounds pretty precise and responsive too :slight_smile:


#7

Just had a look at the patch/video, although this is great, it's not quite what I'm trying to do here. Thanks for the suggestion though!

What I'm trying to do is have a sound source playing (either audio in or an oscillator), and somehow trigger Axoloti to take a momentary reading of the pitch of that sound, then play a note based on that reading as an accompaniment to the original sound source

So when the snapshot is triggered, if the sound source at that exact moment is 1.2khz in pitch, the accompaniment oscillator will play and hold a note at 1.2khz

Does that make sense? Apologies if it doesn't lol


#8

Yes it's not exactly the same. It never really is with Axoloti, as we all have our own use cases, so don't expect an exact patch that does exactly what you are looking for, you probably have to work for it a bit.

But the pitch to note process is there, which is the core of what you are trying to do :slight_smile:

So use it as a starting point and see if you can make what you need. Maybe remove everything else that the pitch analysis and go on from there?

What you are trying to do is something that needs a bit of "buffer time":
1. You send a trigger to activate the pitch analysis.
2. Then it take a short time to do the pitch analysis.
3. Then it can play back the analysed pitch value.

So there will be a bit of latency. The more precise you want it to be, the more buffer time you need = more latency.

So yeah. My advice will still be, check that patch and start from there, even though it's not exactly what you need. Alternatively you have to start from scratch.

Good luck :wink:


#9

OK, I'll press on - thanks for the help!


#10

or you go with the freeze approach. just freeze the currently playing sound when you hit that footswitch for example. this can be done with a long reverb for example or a short buffer that gets recorded over and over and is played back (and not recorded anymore) when you hit the trigger.

or do you need a totally different sound that is sustained?


#11

I think I solved it now, or at least set a foundation, using pitch detection and a sample & hold gate

The pitch detector was the thing that got me on the right track, so thanks for bringing it to my attention


#12

Any chance of seeing your patch? Sounds really interesting!