A newer version of Max is available. Click here to access the latest version of the Max documentation

peakamp~ Reference

Report the maximum amplitude of a signal over a period of time in ms.

peakamp~

Examples

Arguments

interval [number]

Optional

Reports the peak amplitude periodically, given a specified interval in milliseconds. If no interval is specified, peak amplitude can be reported by sending a bang to the left inlet.

Inlets

input [signal, bang]

Takes both the signal to be measured and bang values that will report the peak amplitude at that moment.

interval [number]

Reports the peak amplitude periodically, given a specified interval in milliseconds. If no interval is specified, peak amplitude can be reported by sending a bang to the left inlet.

Outlets

output [number]

Peak amplitude of input

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

input [signal, bang]

Takes both the signal to be measured and bang values that will report the peak amplitude at that moment.

interval [number]

Reports the peak amplitude periodically, given a specified interval in milliseconds. If no interval is specified, peak amplitude can be reported by sending a bang to the left inlet.

See Also

Name Description
meter~ Signal Meter.
snapshot~ Convert signal values to numbers