M4L : multiple VUmeters in one tab ?

Jul 7, 2013 at 2:46pm

M4L : multiple VUmeters in one tab ?

Hi,
does anyone know a clever way to display a VUmeter for each track, all of them in the same mira.frame ?
thanks
louis

#255160
Jul 11, 2013 at 2:54am

Anyone ?

#255625
Jul 12, 2013 at 12:40am

Well couldn’t you observe the level in each track and then feed that to a meter in your mira device.

Or use live.remote if you need audio rate resolution

It’s not clever though, it’s wasteful and expensive, sorry.

#255743
Jul 12, 2013 at 12:43am

Much more clever than me, though ! didn’t know you could observe level… was trying to mess with send~ but it’s not working. Thank you very much !

#255744
Jul 12, 2013 at 12:46am

Ah maybe you can’t! I’m doubting myself now.

#255746
Jul 12, 2013 at 12:47am

humm, can you really observe the level ? i don’t see it in the LOM.

#255747
Jul 12, 2013 at 12:49am

The guy who made this MUST know :http://www.maxforlive.com/library/device/1626/ultimate-mixer
Trying to reach him.

#255748
Jul 12, 2013 at 1:42am

Yeah you can. I started making an example device for you but live.meter~ doesnt work with mira yet and meter~ doesn’t have a linear option (only db) so you need to do a bit of maths or something. Too early for that! but below is the api snippet. I’m sure you can piece it together.

If you didn’t want to use the api you could have a m4l device in every channel and just read the audio level as it comes in and send it to your master device.

<code>

– Pasted Max Patch, click to expand. –

</code>

#255751
Jul 12, 2013 at 1:43am

This.
<code>

– Pasted Max Patch, click to expand. –

</code>

output_meter_level is too smoothed to be usable (or maybe I did something wrong) but observing left or right channel seems to be fine.

#255752
Jul 12, 2013 at 1:56am

Gavspav beat me by a few seconds, and I had forgotten that live.meter~ doesn’t work (but will in a close future of course errr… Cycling people ?). Have a look at my previous post though as you will see what I mean about observing output_meter_level…
So to make it usable in Mira, I’ve come with this. Don’t know if this is theoretically correct, but it seems close to the levels indicated by Live… Maybe some kind of exponential scaling would be more precise, but dealing with the levels as they appear in Live GUI has always been tricky, I’ve spent a lot of time in Lemur trying to match them precisely and the closer solution implied using an array of values.

<code>

– Pasted Max Patch, click to expand. –

</code>

#255753
Jul 12, 2013 at 2:20am

Thanks guys. Stephane your scaling is not correct as it ouputs -1 when the incoming sig is 0. im happy anyway !

#255756
Jul 13, 2013 at 3:41am

I know about the scaling, that was just meant to allow the reading on meter~, as this only accepts signals in the -1. 1. range. Maybe there’s another solution. You can read the amplitude value in the float box.

#255876

You must be logged in to reply to this topic.