Page 1 of 1

Audio Pitch 2 Midi in Modular

Posted: Sat Mar 20, 2010 8:33 am
by doktorfuture
Hi there,

Could anyone suggest/point me in the right direction on how to create a modular patch that:

1) takes Audio (mono or stereo) in
2) detects the fundamental frequency, velocity (based on amplitude), and gate
3) converts the frequency to a pitch
4) Outputs a MIDI note ON/OFF from the modular.

I really need help with (3) and (4). I'm using Adern's frequency detection for (2) and an envelope follower for (2), and I've been trying Wolf's Audio2Note for (4), but what's coming out is not right.

The Adern module outputs 'Frequency'
The Audio2Note Wolf module wants a 'Pitch', 'Velocity', and 'Gate'.

I almost got it working, but it seems gate needed to be inverted or something. I'm not sure how to scale frequency to pitch in the modular either. Right now, things are not predictable at all when outputting Midi. I do get very good results with the Adern audio2frequency module using oscillators, but I'm really stuck with outputting Midi!

Re: Audio Pitch 2 Midi in Modular

Posted: Sat Mar 20, 2010 9:14 am
by Janni
me too... :-?

Re: Audio Pitch 2 Midi in Modular

Posted: Sat Mar 20, 2010 3:19 pm
by roy thinnes
two suggestions:
- adern's freq2note module (Flexor3) =>Wolf's Audio2Note
- gateOr => Wolf's Audio2Note

Re: Audio Pitch 2 Midi in Modular

Posted: Sat Mar 20, 2010 3:43 pm
by doktorfuture
I'm trying to get all you write below to work. The freq2note from Flexor seems to be good, but it outputs 'frequency', and the Wolf Audio2Note wants a pitch. Also the 'gate' output fro the freq2note isn't a pitch, and isn't what the Audio2note wants.

I am using the gateOr between the Flexor and the Wolf module.

Also for Wolf's modules I need those sync 2 async modules.
roy thinnes wrote:two suggestions:
- adern's freq2note module (Flexor3) =>Wolf's Audio2Note
- gateOr => Wolf's Audio2Note

Re: Audio Pitch 2 Midi in Modular

Posted: Sat Mar 20, 2010 4:02 pm
by roy thinnes
hm, freq2note outputs note values, believe me.
the 'gate' output fro the freq2note isn't a pitch(...)
:-? there is no gate output, just "noteOut".
Image

Re: Audio Pitch 2 Midi in Modular

Posted: Mon Mar 22, 2010 8:47 am
by wolf
It should work like this:

With flexor comes a pitch recognition module. Connect this via sync2async converter to the value input of the val2note module of my toolbox.
Use audio2val of the ToolBox to extract velocity from the audio signal to feed the velocity input of val2note with it.
Now you just need another signal for the gate. Use something which does output a gate signal, when reaching / leaving a treshold of i.e. -18dB.

Isn't this part of my module examples, btw ?
Don't know exactly ;)

best,
Wolfgang