Monitoring Amplitude/Gain/Volume Stream from Plugin~ object

Learn about building and using Max for Live devices.
Post Reply
MarkvW
Posts: 39
Joined: Sun Sep 20, 2009 6:23 am

Monitoring Amplitude/Gain/Volume Stream from Plugin~ object

Post by MarkvW » Mon Jul 02, 2012 12:16 am

I'm trying to figure out how to read volume values coming out of a plugin~ object.

I've found live.gain, but that object seems to register values even when my microphone is disconnected from my audio device (and the numbers are negative).

The levelmeter~ object's needle doesn't move, but it also outputs only negative numbers, even if the microphone is disconnected from the audio device.

All I want to do is stream values so that I can trigger an action when the volume goes from silent (or near silent) upward or goes back down to silent (or near silent).

I am a total noob. Any help would be appreciated.

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

Re: Monitoring Amplitude/Gain/Volume Stream from Plugin~ object

Post by madlab » Mon Jul 02, 2012 6:49 am

number~?
Aboard from V. 1
MBP M1 Pro 2021 - 16 Go RAM - OSX 15.7.7 / MBP 2.5 Ghz I7 16 Go SSD OSX 10.15.7 - iPad + Knobbler
RME FF UC Live 12.4.2 M4L Max 9.14
Band : https://elastocat.org/
Madlab sound unit / objects, guitar, electronics / end_of_transmission

MarkvW
Posts: 39
Joined: Sun Sep 20, 2009 6:23 am

Re: Monitoring Amplitude/Gain/Volume Stream from Plugin~ object

Post by MarkvW » Tue Jul 03, 2012 3:50 am

madlab wrote:number~?
Thanks! What's the difference between number~ and peakamp~?

pid
Posts: 354
Joined: Thu Nov 05, 2009 9:51 am

Re: Monitoring Amplitude/Gain/Volume Stream from Plugin~ object

Post by pid » Tue Jul 03, 2012 7:46 am

very little. but use peakamp~ not number~ - do not use UI objects for these tasks.

however, if you want to do this effectively you need a proper envelope follower made up of a few of these tools. there is an excellent one included with the max for live examples that you could open up and learn from.
3dot... wrote: in short.. we live in disappointing times..

MarkvW
Posts: 39
Joined: Sun Sep 20, 2009 6:23 am

Re: Monitoring Amplitude/Gain/Volume Stream from Plugin~ object

Post by MarkvW » Tue Jul 17, 2012 5:27 pm

pid wrote:very little. but use peakamp~ not number~ - do not use UI objects for these tasks.

however, if you want to do this effectively you need a proper envelope follower made up of a few of these tools. there is an excellent one included with the max for live examples that you could open up and learn from.
I got my device to work. Now for the envelope follower and the fader to make it work the way I want to.

Thanks!

Post Reply