Skip to content

ls.nearest

ls.nearest iteratively searches a list for the number nearest to a target value. It outputs the nearest element’s index and value, plus the difference nearest - target; the search list can also be supplied as an argument.


AI Generated

This content was generated with the assistance of AI. If you notice any errors, please report them or submit a fix using Submit. Check the prompt used here.


  • Download via Deken.

    Open Pd and go to ToolsFind Externals. Search for planifolia and install it. Then create an object with declare -lib planifolia -path planifolia. Finally, use ls.nearest or any other object from planifolia.


Similar


    Comments

    Contributors