SQPushFXPitch2 is intended to be used in the pbsfunc (playback speed func) parameter of CutBuf2 and CutBuf3. It is exactly the same as CutPBS1, but only changes the rate sometimes, controlled by a probability argument.
All arguments can be constant values, but they can also be anything that responds to .value. In the latter case, .value is called every block.
The alias CutPBS2 is available for backward compatibility.
pbm |
The common ratio of the geometric sequence. This should be between 0 and 1. |
directfunc |
If this is nonpositive, the pitch will go down. If positive, the pitch will go up. If nil, this defaults to a function that decides between -1 and 1. |
pbchance |
The probability that the pitch will be shifted at all. |