"Translate" audio to midi?

Questions and discussion about building and using Max for Live devices
qzs3ESc7
Posts: 13
Joined: Wed Nov 04, 2009 7:11 pm

"Translate" audio to midi?

Post by qzs3ESc7 » Wed Nov 25, 2009 10:05 pm

Hello!

I am new to this - so my question might be stupid ... but I try it anyway. ;-)

Is there a possibility within Live/M4L to "translate"/"change" audio signals into midi signals? That way it might be possible to control/trigger M4L midi devices by (for example) singing into a Microphone.

Thanks 4 your help!

kleine
Posts: 1851
Joined: Sat Dec 15, 2001 11:46 am
Location: ableton
Contact:

Re: "Translate" audio to midi?

Post by kleine » Wed Nov 25, 2009 10:09 pm

Hello,

It´s possible and i´m sure it won´t take long until the first devices show up..

Best,
Christian

ST8
Posts: 259
Joined: Mon Jan 26, 2009 12:55 pm

Re: "Translate" audio to midi?

Post by ST8 » Wed Nov 25, 2009 10:11 pm

There used to be a couple of nice maxmsp externals called fiddle and bonk. Once dealt with harmonic signals, the other with impulses (drum tracks etc):

http://crca.ucsd.edu/~tapel/software.html

dont know if you can get those working inside m4l

kleine
Posts: 1851
Joined: Sat Dec 15, 2001 11:46 am
Location: ableton
Contact:

Re: "Translate" audio to midi?

Post by kleine » Thu Nov 26, 2009 7:50 am

ST8 wrote:There used to be a couple of nice maxmsp externals called fiddle and bonk. Once dealt with harmonic signals, the other with impulses (drum tracks etc):

http://crca.ucsd.edu/~tapel/software.html

dont know if you can get those working inside m4l
If you want to use 3rd party externals, you need to place them into your max-externals folder inside the
Max5 folder. If you are looking for 3rd party externals, use e.g. www.maxobjects.com to find them.

Best,
Christian

qzs3ESc7
Posts: 13
Joined: Wed Nov 04, 2009 7:11 pm

Re: "Translate" audio to midi?

Post by qzs3ESc7 » Fri Nov 27, 2009 10:44 pm

Thank you very much for your kind help! ... but ...

I now have the files "fiddle~.mxe" and "bonk~.mxe" and I copied them to

C:\Programme\Cycling '74\Max 5.0\Cycling '74\max-externals

But I don't know where to find them inside M4L when I have opened Live?

Or is it the wrong folder?

There is also an "msp-externals"-folder (every file inside that folder has a "~" at the end of it's name!) and an "m4l-externals"-folder ...

And how can I open the help-files that came with the externals?

And where in the list on the left is the smily for "Completely totally confused"? ;)

qzs3ESc7
Posts: 13
Joined: Wed Nov 04, 2009 7:11 pm

Re: "Translate" audio to midi?

Post by qzs3ESc7 » Sat Nov 28, 2009 3:27 pm

:D

Ok: MSP-externals ("~"!) belong into the "msp-externals"-folder and their helpfiles belong into the "msp-help"-folder (and do not rename them into "*.maxhelp").

... I guess everybody here but me knows that already ... :roll:

... but ...

unfortunately M4L crashes when I try to open the "bonk~" help ... :(

Tone Deft
Posts: 24154
Joined: Mon Oct 02, 2006 5:19 pm

Re: "Translate" audio to midi?

Post by Tone Deft » Sat Nov 28, 2009 8:50 pm

no, we don't know that already. there are a few power users in here, some guys with moderate experience and a few of us just starting out. the traffic's a bit slow in here but it should pick up or at least they should make a dedicated max4Live forum.

also try
http://cycling74.com/forums/forum.php?id=10
http://www.max4live.info/
http://www.maxforlive.com/
http://www.extendlive.com/

I mostly lurk here and check the others for videos and downloads.

hth, patience. ;)
In my life
Why do I smile
At people who I'd much rather kick in the eye?
-Moz

kleine
Posts: 1851
Joined: Sat Dec 15, 2001 11:46 am
Location: ableton
Contact:

Re: "Translate" audio to midi?

Post by kleine » Sat Nov 28, 2009 11:16 pm

Here´s a quick attempt on pitchtracking:

1. download the pitch~ external from http://web.media.mit.edu/~tristan/maxmsp.html and
place it in your Max/Msp external folder

2. download my example set from http://tiny.cc/zJjBx

I hope this works for you.
It´s not very accurate yet and needs some finetuning...

Best,
Christian

qzs3ESc7
Posts: 13
Joined: Wed Nov 04, 2009 7:11 pm

Re: "Translate" audio to midi?

Post by qzs3ESc7 » Sun Nov 29, 2009 6:13 pm

:D Thank you very much!

Got it! :mrgreen:
Last edited by qzs3ESc7 on Mon Nov 30, 2009 7:53 am, edited 1 time in total.

madadam
Posts: 2
Joined: Mon Nov 30, 2009 4:27 am

Re: "Translate" audio to midi?

Post by madadam » Mon Nov 30, 2009 4:39 am

I've been trying to do the same thing, but I'm a bit confused about how the m4l patches work. Are they constrained so that only the pre-populated in/outputs work? If so, it doesn't seem possible to turn audio into midi. The audio effects have plugin~ but no midiout, and the midi effects have midiout but no plugin~. I tried a bunch of things, none of which seemed to work:

* adding plugin~ to a midi effect.
* adding ezad~ to a midi effect. same as plugin~, no audio comes through the input.
* adding midiout or noteout to an audio effect. no luck, the midi doesn't seem to go anywhere.

Hope somebody else has better luck.

kleine
Posts: 1851
Joined: Sat Dec 15, 2001 11:46 am
Location: ableton
Contact:

Re: "Translate" audio to midi?

Post by kleine » Mon Nov 30, 2009 7:24 am

Welcome to the forum madadam,

Please see my example from the post above.

best,
Christian

mhcrispo
Posts: 5
Joined: Wed Nov 25, 2009 4:29 pm

Re: "Translate" audio to midi?

Post by mhcrispo » Mon Nov 30, 2009 3:34 pm

Thank you Christian!

oddeo
Posts: 117
Joined: Sat Feb 03, 2007 10:39 pm
Contact:

Re: "Translate" audio to midi?

Post by oddeo » Tue Dec 01, 2009 2:51 am

Very cool! It really works quite well.
___________________
Live Suite 10 w/M4L / Push 2 / iMac i7 Quad Core 16G RAM / MBP i7 6Core 32G RAM / SS Prophet 6 / Moog Minitaur / BCR2000 / FCB 1010 / UA Apollo 8 / other random gear

http://www.neilbufkin.com

madadam
Posts: 2
Joined: Mon Nov 30, 2009 4:27 am

Re: "Translate" audio to midi?

Post by madadam » Tue Dec 01, 2009 4:45 am

Ah!

For the curious who doesn't want to bother downloading the example: The trick is that you use a send/receive pair to communicate between patches. The audio effect patch does the pitchtracking, then sends the midi note info to a midi effect patch which routes to midiout.

Thanks very much!
a

qzs3ESc7
Posts: 13
Joined: Wed Nov 04, 2009 7:11 pm

Re: "Translate" audio to midi?

Post by qzs3ESc7 » Wed Dec 09, 2009 9:03 am

First: Thank you very much Christian!! :)

Second: (...) :roll: I still have some questions. I tried to understand the help files coming with the "pitch~ external" but I failed ... :( I don't understand why the midi note that is sended/received is a half tone lower than the note I played on my saxophone into a micro? And I like to know what do I change when I change the numbers in the four boxes that are related to the picth~ external?

Ans I have another question: Is it possible to change audio-data into midi control messages - so that it might be possible to operate a control dial (i.e. of frequency shifter) with live played music?


It would be very kind if you could answer that questions ... ! ;)

Post Reply