meter~
Description
Use the meter~ object to monitor any signal in the range -1 and 1 (other signals should be scaled first).
Examples

Discussion
Each "LED" on the meter represents a change of 3dB from the previous step, by default. The red "over" LED comes on if the signal is greater than or equal to 1, and lasts for about a second. You can change the redrawing interval with the interval message. Resizing the meter gives its vertical or horizontal orientation, depending on whether its height is greater than its width or vice versa. meter~ outputs the peak signal value received every redrawing interval. Additional appearance settings, such as number of LEDs, and their colors can be set using the object's Inspector. mc.meter~ can be used to monitor multichannel signals, and automatically adapts to the number of channels received.
Arguments
None.
Attributes
bgcolor [4 floats]
Sets the RGBA values for the background color of the meter~ object.
dbperled [int] (default: 3)
Sets the amount of signal level in deciBels represented by each LED. By default each LED represents a 3dB change in volume from its neighboring LEDs.
interval [atom_long] (default: 50)
Sets the update-time interval, in milliseconds, of the meter~ display. The minimum update-interval is 10 milliseconds, the maximum is 2 seconds, and the default is 50 milliseconds. This message also sets the rate at which meter~ sends out the peak value received in that time interval.
monotone [int] (default: 0)7.0.0
Toggles single-color display for level indicators
nhotleds [int] (default: 3)
Sets the total number "hot" warning LEDs displayed on the meter~ object (corresponding to the color set by the message).
ntepidleds [int] (default: 3)
Sets the total number "tepid" mid-range LEDs displayed on the meter~ object (corresponding to the color set by the message).
numleds [int] (default: 12)
The word meter~ object. The range is 10-20 LEDs.
, followed by a number between 10 and 20, sets the total number of LEDs displayed on thenwarmleds [int] (default: 3)
Sets the total number "warm" lower-mid-range LEDs displayed on the meter~ object (corresponding to the color set by the message).
offcolor [4 floats]7.0.0
Sets the color for the "off" level indicators. The style color.
attribute is mapped to theoncolor [4 floats]7.0.0
Sets the color for the "on" level indicators. The style color.
attribute is mapped to theorientation [int] (default: 0)8.0.0
Sets the orientation of the meter~ object. When set to 0 (automatic), the orientation will automatically change based on the dimensions of the object.
Possible values:
0 = 'Automatic'
1 = 'Horizontal'
2 = 'Vertical'
style [symbol] (default: )7.0.0
Sets the style to be applied to the object. Styles can be set using the Format palette.
Common Box Attributes
Messages
int
Arguments
float
Arguments
(mouse)
signal
Output
float
The peak (absolute) value received in the previous update interval is sent out the outlet when audio processing is on. For mc.meter~ only the peak value for the first channel is output.
See Also
Name | Description |
---|---|
MC | MC |
average~ | |
scope~ | |
MSP Analysis Tutorial 1: Signals and Meters | MSP Analysis Tutorial 1: Signals and Meters |