Linearly searches a buffer for a value (i.e., loops over the frames in the buffer from the beginning, checking for float equality), and returns index of first occurrence of said value. Returns -1 if value is not found. The object performs a search whenever a change in the in argument is detected; changes in the bufnum argument do not trigger searches. Checks for changes occur at the selected rate (ar or kr).
bufnum |
index of the buffer |
in |
the input signal. |
index of first occurrence of value, or -1 if value is not found.