[PD] object to find closest value in an array
msp at ucsd.edu
Fri Mar 6 17:21:55 CET 2015
Alternatively, if it's more convenient to put the values in a "text"
object, you can "text search" for the nearest value.
On Fri, Mar 06, 2015 at 11:44:57AM -0300, Alexandre Torres Porres wrote:
> I'm wondering if there's an object that can find in an array which is the
> closest value in the array ro an input value.
> Say I have an array/list of *1.1* , *2.2* , *3.3*, then I give as the input
> the number "3" and the object outputs *3.3*
> I've done this as a patch already, but I wonder if theres any solution
> that's "ready made".
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
More information about the Pd-list