Use the meter~ object to monitor any signal in the range -1 and 1 (other signals should be scaled first).
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.
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 the
nwarmleds [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 the
oncolor [4 floats]7.0.0
Sets the color for the "on" level indicators. The style color.attribute is mapped to the
orientation [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.
0 = 'Automatic'
1 = 'Horizontal'
2 = 'Vertical'
style [symbol] (default: )7.0.0
Common Box Attributes
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.
|MSP Analysis Tutorial 1: Signals and Meters||MSP Analysis Tutorial 1: Signals and Meters|