Metering woes for my Sidechain Device :(
Hi there, I really hope somebody can think of an answer/work around to my problem.
I have built a m4L Sidechain Device…… where parameters (On/Off device was my primary idea) are controlled by audio input levels…… there being level = 1, and no level = 0.
Everything works fine except for the fact that Abletons track level (where the control data comes from, slowly fades down once the audio has stopped.
(this can be easily tested; If you get any long sound, then crudely chop it and leave some spaces so there’s no sound)
if you look at the level meter attached to the plugin~ object, this responds correctly to sounds,
Abletons own holds….. i’ve also tried the output_meter_left/R aswel and they to are no good.
And now I can’t even post the copy compressed code? aaargghh
Heres the .amxd
What is going on? it just says server error every time i try to paste the compressed code
Fingers crossed….. i’ve pasted the code for the patch into a text edit file;
sorry to hear you’re still having troubles with this patch after the facebook session the other week.
yeah, ableton track meters have some smoothing on them, especially on the release/when falling back down to the bottom.
if you get your data from the ableton track meters through the live api then that’s the best you’re going to get.
i really think you need to switch to monitoring the audio coming into an m4l device, rather than using the live api.
check out this tutorial on the max wiki:
the test patch in the tutorial should have you set up with a working device pretty quickly.
Cheers Pal, I’ll check it :)
i finally get what you mean MYR :), i thought the plugin~ would output signal data from all tracks but it only outputs data from the track that the device is in :)
i can then use a send~ and just put that device on the track i want to sidechain from.
Its just a shame i cant include it all in one device, like the one i designed, where you can select the track with a variable.
because, Plugin~ doesn’t take any arguments
yeah, in max 4 live you can only get audio (or midi) from, and output audio (or midi) to, the track your m4l device is placed on. you use the [plugin~] and [plugout~] objects to do this.
we’re hoping to get the option to get audio into and out of an m4l device from any track, but there is no way to do this yet.
however there are some workarounds:
- if you just want volume you can use the live api to monitor a tracks volume level. as we’ve discussed this isn’t really useful for you as live gives you a smoothed value which isn’t accurate enough for the sidechain device you are building.
- you can create a small, simple m4l device which you can drop on any track. it will sit on that track and monitor any audio that comes in from [plugin~] getting data from it (volume, transients, frequency, whatever you want). you can then use a [send] or [forward] object to send information about the audio to your other devices which want to use it.
- using the live api you can change the audio input and output of a track on the fly. so you could build a device that, similar to the one in the point above, sits on a track and analyses the incoming audio from [plugin~]. this device could also have an option to select what audio was coming into it by changing the audio input of the track using the live api.
unfortunately you shouldn’t really use [send~] in m4l devices. due to the way m4l works there is an unpredictable delay, or amount of latency, when sending audio between m4l devices using [send~] and [receive~].
if you want to send audio between m4l devices you have to either route the audio using abletons built in track mixer options, or translate the audio data into normal max messages running at "control speed" and send them between devices using [send], [forward] and [receive].
as mentioned there will always be delay when sending data between devices, using [send] or [send~], and for a sidechain device to be really accurate you need to make it work at "signal rate" using msp objects with a "~" after them. this is why pretty much all sidechain devices created in m4l so far don’t use [send~] or even [send], they do the work at signal rate on the track the are on and then send the data to a device parameter using the live api.
have you checked out the "Envelope Follower" max for live device that comes as standard with live 9 suite? it effectively does what you want to do, and is a good example of how to go about doing it. i’m sure you could think of some good things to add to it, or incorporate what you’ve got of your device so far into it. let me know what you think after having a look through the device, i think it should clear up some things and show you a good example of how to achieve what you want to.