trigger from audio signal?

Questions and discussion about building and using Max for Live devices
Post Reply
formosa
Posts: 9
Joined: Sun Sep 20, 2009 8:10 am

trigger from audio signal?

Post by formosa » Mon Jun 07, 2010 12:57 am

Is it possible to trigger a midi note from a drum mic routed into live. I would like to trigger ableton instruments from a gate on a drum channel. If anyone has suggestions or knows if this can be done with Max for Live please let me know.

phattline
Posts: 176
Joined: Sun Jul 05, 2009 5:54 pm

Re: trigger from audio signal?

Post by phattline » Mon Jun 07, 2010 2:17 pm

can be done!

formosa
Posts: 9
Joined: Sun Sep 20, 2009 8:10 am

Re: trigger from audio signal?

Post by formosa » Mon Jun 07, 2010 4:01 pm

Thanks, you just sold me on Max for Live!

Usedtobe
Posts: 65
Joined: Mon Jul 21, 2008 11:09 pm

Re: trigger from audio signal?

Post by Usedtobe » Sun Jun 13, 2010 2:34 pm

chyeah bra, check out the bonk~ object.

zlatko
Posts: 116
Joined: Mon Apr 27, 2009 3:34 pm

Re: trigger from audio signal?

Post by zlatko » Mon Jun 14, 2010 10:02 am

Here how it can be done, pity that a single device cannot input audio and output MIDI. Therefore the two devices communicate internally, I don't remember if this implementation solves the multiple detectors issues though...

http://www.zlatko.hu/zb.m4l/OnsetDetect ... eTrig.amxd
http://www.zlatko.hu/zb.m4l/OnsetDetect ... gMIDI.amxd
Who else has been sick of 4/4 for the last 10 years ??

www.zlatko.hu

madlab
Posts: 1382
Joined: Fri May 02, 2003 6:38 am
Location: France

Re: trigger from audio signal?

Post by madlab » Mon Jun 14, 2010 10:39 am

I would have thought this can be done with Live and Oomingmak for example.
Aboard from V. 1
MBP 2.5 Ghz I7 16 Go SSD OSX 10.12
MBP 2.3 ghz I7 16 Go SSD + HD 10.8.5 iPad2+Mira+Lemur/PadKontrol/BCR2000/ Livid Code+DS1
RME FF UC Live 9.7.7 MFL Max 8 + Max 7.3.5
Madlab sound unit / objects, guitar, electronics / end_of_transmission

bulo
Posts: 434
Joined: Sat Sep 09, 2006 7:57 pm
Location: France
Contact:

Re: trigger from audio signal?

Post by bulo » Mon Jun 14, 2010 7:31 pm

Another solution is to patch a simple sampler as an audio effect. That way you don't need to send info between devices on different tracks.
I've made a simple one which doesn't have funky functions for the moment, but it takes two mic inputs (I use it on kick+snare with contact mics) and respond very well.
Let me know if you're interested.
My tongue spits english like a frog and my head is currently searching for a comprehensive language.
And I shit here

zlatko
Posts: 116
Joined: Mon Apr 27, 2009 3:34 pm

Re: trigger from audio signal?

Post by zlatko » Wed Jun 16, 2010 5:28 pm

mmm, sounds cool, please sharee it, can't really figure what you are getting at....

cheers

z
Who else has been sick of 4/4 for the last 10 years ??

www.zlatko.hu

bulo
Posts: 434
Joined: Sat Sep 09, 2006 7:57 pm
Location: France
Contact:

Re: trigger from audio signal?

Post by bulo » Thu Jun 17, 2010 12:48 pm

Here it is.
That's a very basic version where you only have start/end sample positions controls; you can also choose to play the sample in reverse.
Drop a sample for the kick and the snare. Kick takes left input ... right is for the snare.
Just put it on an audio track and let's go!
I'll made a version with more sample controls later, but you can still easily process each sample with a simple utilty rack after the device, as kick is output to the left and snare to the right.

You need the bonk~external: http://crca.ucsd.edu/~tapel/software.html





Code: Select all

<pre><code>
----------begin_max5_patcher----------
6297.3oc6cs0iiiak94t+U3Xf7V2E3cIMHH.IYyhrXRBB1AHuLYPCWkUUk11
ksgsqtmYBR+aeE4gRVxVWNRVRlxk.ZzkksrL4G44vCOW93+98ua98a94v8ym
8cy9wYu6c+62+t2YdK8a7N60ua9KK94GVsXu41luJ5Kg2sJZc37O.ep90OrY
0lcvSgbG4CY9O5cjY+j8N2tKbe35CKNDsY8m1E9vA3avTb8cJf6mp+eeuLes
0u9Rz5UgGL+9ziu4lWOj7tjjegEGd34n0Ok4oyIlmKi4o+iz7aneqBaUY+Eh
VZ5uat++6iT5b868ed+60+2GPhTOr4kWhevI3zgve1zjl+C+8+v+6eN4ceby
5C6i90PyuL6NR0Pkf3a5.BnyDX5Y7NCqjA5VvLt4+k7yd5HfJurcr0Kdwzwl
+mdN5gEOsoKQwu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njvyP44ReqT2wqJYZH1FadlatjFqJWrTqu01EsINl1Dc3ZSBDCpJ4fhSAXa
RCGLQIXaSrAqMcxnRIxi7Acn6jgkJZSCLNwvzl3CVaRuXcssIoZPG6LsINl1
zvI2IoHliKG143wlHhsQ0.fhwXvoBEbdlv8Su5hatnwvgSl7jgrRZSC6xymL
hUQaZfwIFl1zvo6hgYsPdCkIkDtYBukw6AyBMWcgsVNFCbNwz19FA4Xl8yGV
it3Xrl3Dvr2moEfEmFtUj3Xl8yF14STLicJZCkHMU1KyG1OqH8hKcLUgYLkM
niodAHz7yYMC+XByB5PQkZUu4c4arkiw3iSTQ6D3GS0J7yVHYTujKtz4en10
jZ3m+UaapgxuLnN8gp4Vl95KE9vXLIcXW5hwvBeC2PZ.JbhLr.0o+dkQRGCq
1WJpwOZSm+eodMfhFpFvAPThedCaixigzuvMR4eF2By83ckagQsRknLoR50T
6uXPaTnLoj1z8MkXSoo7PBDoWLHM1AUnvG6xjMPOqJHYSw5hqgJSuZH1PuXf
25GA07uV5kAfaajhiWcoVk6g0p7FLdK41CJdvDXf7nLWcRf8d++48++v7jfO
G
-----------end_max5_patcher-----------
</code></pre>

Cheers,
Jul
My tongue spits english like a frog and my head is currently searching for a comprehensive language.
And I shit here

zlatko
Posts: 116
Joined: Mon Apr 27, 2009 3:34 pm

Re: trigger from audio signal?

Post by zlatko » Sat Jun 19, 2010 4:06 pm

Hey, mighty cool, although I need my version because of all the MIDI effects that I am using along the line...

thanks

z
Who else has been sick of 4/4 for the last 10 years ??

www.zlatko.hu

formosa
Posts: 9
Joined: Sun Sep 20, 2009 8:10 am

Re: trigger from audio signal?

Post by formosa » Sun Jun 20, 2010 5:43 am

Thanks to all for your replies. I am looking forward to checking out the devices as soon as I familiarize myself with Max for Live.

Post Reply