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

zerox_count Reference

Count zero crossings

zerox_count

Examples

Arguments

windowSize [number]

Optional

Sets the number of individual values that are sampled for zero-crossings. Once this value is reached, the total number of zero-crossings in the sample-window is output.

Inlets

x [number]

The input that is analyzed for zero-crossings over the specified sample window.

windowSize [number]

Sets the number of individual values that are sampled for zero-crossings. Once this value is reached, the total number of zero-crossings in the sample-window is output.

Outlets

out1 [number]

out1

Fixed Attributes

These attributes must be set in the object box and determine the behavior of the object at runtime.

hot [bool] (default: false)

Trigger computation on all inlets.

Dynamic Attributes

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

reset [bang] (default: 0)

Banging this attribute will reset the object to its default state.

windowSize [number]

Sets the number of individual values that are sampled for zero-crossings. Once this value is reached, the total number of zero-crossings in the sample-window is output.

x [number]

The input that is analyzed for zero-crossings over the specified sample window.

See Also

Name Description
zerox_count~ Count zero crossings
zerox Detect zero crossings