ZCross(input, thresh=0.00, mul=1, add=0)
Zero-crossing counter.
Output signal is the number of zero-crossing occured during each buffer size, normalized between 0 and 1.
Parent class : PyoObject
Parameters:
input : PyoObject Input signal to filter. thresh : float, optional Minimum amplitude difference allowed between adjacent samples to be included in the zeros count.
Methods:
setInput(x, fadetime) : Replace the `input` attribute. setThresh(x) : Replace the `thresh` attribute.
Attributes:
input : PyoObject. Input signal to filter. thresh : float. Amplitude difference threshold.
Notes:
The out() method is bypassed. ZCross's signal can not be sent to audio outs.
Examples:
>>> s = Server(duplex=1).boot() >>> s.start() >>> a = Input() >>> b = ZCross(a, thresh=.02) >>> n = Noise(b).out()
Methods details:
ZCross.setInput(x, fadetime=0.05): Replace the `input` attribute. Parameters: x : PyoObject New signal to process. fadetime : float, optional Crossfade time between old and new input. Default to 0.05. ZCross.setThresh(x): Replace the `thresh` attribute. Parameters: x : float New amplitude difference threshold.