M4L MIDI controlled Audio Effect Example?

Learn about building and using Max for Live devices.
Post Reply
ForeverTangent
Posts: 3
Joined: Wed Aug 04, 2010 11:02 pm

M4L MIDI controlled Audio Effect Example?

Post by ForeverTangent » Sun Mar 08, 2020 3:17 pm

Hey All,

I am hoping someone here can help, but can anyone point me to an example of how to build a MIDI controlled Audio Effect in M4L?

I am trying to build a filter where the cutoff is determined by the MIDI note number (among other factors). But I can't seem to get Live to route MIDI data from one track to the track in which I have the audio and I am building the M4L device on.

I am not sure if I building the M4L patch wrong, or if there is something else i am doing wrong. I can find examples of Effect and Instruments but not were the two meet.

Thanks in advance.

Stan

doubleUG
Posts: 309
Joined: Sun Apr 24, 2011 7:19 am

Re: M4L MIDI controlled Audio Effect Example?

Post by doubleUG » Sun Mar 08, 2020 5:29 pm

Audio FX have only Audio IN and OUT. But you can receive MIDI the Max send > receive objects. Look at the "Max 7 Pitch an Times Machines" pack under "Max MIDI Sender" "Max MIDI Receiver". Put the Receiver-code in you Audio FX so you can receive MIDI
copy the text, open Live > drag in empty M4L device > open Max editor > paste > save M4L device
https://docs.cycling74.com/max8/vignett ... ng_patches

https://doubleUG.bandcamp.com/releases

ForeverTangent
Posts: 3
Joined: Wed Aug 04, 2010 11:02 pm

Re: M4L MIDI controlled Audio Effect Example?

Post by ForeverTangent » Sun Mar 08, 2020 8:48 pm

Cool, I will check them out!

Thanks for the help!

Stan

[jur]
Site Admin
Posts: 6707
Joined: Mon Jun 01, 2015 3:04 pm
Location: Ableton

Re: M4L MIDI controlled Audio Effect Example?

Post by [jur] » Mon Mar 09, 2020 9:50 am

Better than the officially "unsupported" Send and Receive (for timing reasons) for such task is to use the lh.midiin external.
It's a midin/midiout object but without the M4L limitations and so you can use it directly in your audio device.
Ableton Forum Moderator

doubleUG
Posts: 309
Joined: Sun Apr 24, 2011 7:19 am

Re: M4L MIDI controlled Audio Effect Example?

Post by doubleUG » Mon Mar 09, 2020 1:18 pm

Communication between devices using send and receive is supported, but there may be some latency involved when sending data between devices.

https://docs.cycling74.com/max8/vignett ... imitations
copy the text, open Live > drag in empty M4L device > open Max editor > paste > save M4L device
https://docs.cycling74.com/max8/vignett ... ng_patches

https://doubleUG.bandcamp.com/releases

[jur]
Site Admin
Posts: 6707
Joined: Mon Jun 01, 2015 3:04 pm
Location: Ableton

Re: M4L MIDI controlled Audio Effect Example?

Post by [jur] » Mon Mar 09, 2020 10:19 pm

doubleUG wrote:
Mon Mar 09, 2020 1:18 pm
Communication between devices using send and receive is supported, but there may be some latency involved when sending data between devices.

https://docs.cycling74.com/max8/vignett ... imitations
Yep. But using lh.midin has:
1) no timing issue
2) no need for a midi receive device placed on a midi track as you can put this midi input object directly in your audio device. :wink:
3) it's cross-platform (and 64 bit too).
Ableton Forum Moderator

Post Reply