list-abs
A collection of platform-independent Pure Data abstractions for processing lists. Its objects include operations for dripping, indexing, inserting, deleting, replacing, reversing, and comparing list elements.
- Repository Source code
Contributors
People who contribute to this project.
Objects
- OSCprepend
OSCprependprepends its first argument to an OSC message list, providing a way to modify OSC message paths. - compare-any
compare-anytests whether two anything messages are the same and outputs a float: 1 when they are equal and 0 otherwise. - last-x
last-xcollects incoming floats into a list of the last x values and outputs that list. - list-abs
list-absapplies the absolute-value operation to the float elements of an input list and outputs the resulting list. - list-accum
list-accumadds all floats in an input list and outputs the result. - list-add
list-addsubtracts two lists element by element and outputs the resulting list. - list-apply
list-applyapplies the operation of an object created from its arguments to a list, producing a list at its outlet. - list-centroid
list-centroidcalculates the centroid, or center of mass, of a list using sum(mi * i) / sum(mi), with indices starting at 0. - list-clip
list-clipclips lists, serving as the list-oriented counterpart toclip. - list-compare
list-comparecompares two input lists element by element and outputs1when they are equal or0when they are not. - list-delete
list-deleteremoves one or more items from a list, starting at the zero-based position POS. - list-dotprod
list-dotprodcomputes the dot product of two input lists as the sum of corresponding element-wise products (res = sum(Xi*Yi)); for example, lists 2 4 and 3 1 produce 10. - list-drip2
list-drip2outputs the elements of two lists in sync, continuing for the length of the first list. - list-dripslow
list-dripslowserializes a stored list on demand, outputting its elements one at a time. - list-emath
list-emathperforms a selected arithmetic operation on two lists element by element, with operators such as+,-,*, and/specified as its argument. - list-enumerate
list-enumerateserializes an input list and prefixes each element with a number, as illustrated by the lista b c d 0 1 2 3. - list-equalize
list-equalizescales a list by dividing its float elements by their sum, so those elements sum to 1. - list-fifo
list-fifostores incoming lists or elements in first-in, first-out order and outputs them when triggered to “pop.” Sendbangto trigger output, and useclearto reset the stored list.. - list-fifo-delim
list-fifo-delimstores incoming list messages or elements and outputs the stored list when triggered, using a delimiter symbol between messages; the delimiter defaults to the empty symbol and can be changed manually. - list-find
list-findfinds the position or positions of a value within a list. - list-geometric-mean
list-geometric-meancalculates the geometric mean of the floats in an input list and outputs the result as a float. - list-group
list-groupgroups incoming list items into output lists of a specified, uniform size, serving as a clone ofzl group. - list-harmonic-mean
list-harmonic-meancalculates the harmonic mean of the floats in an input list and outputs a float. - list-idx
list-idxoutputs the element at a specified position in a list. - list-insert
list-insertinserts a list or element into an original list before the element at position POS, producing the new list. - list-inter
list-interperforms elementwise linear interpolation between two lists, using a float from 0 to 1 as the distance (factor) between them. - list-inter-many
list-inter-manyperforms elementwise linear interpolation between several float lists, outputting the interpolated list. - list-invint
list-invintcalculates the inverse musical intervals of a list of floats. - list-iter
list-itergroups incoming lists into sublists according to a size limit, serving as a clone ofzl iter. - list-l2s
list-l2sconcatenates the elements of a list into a single symbol, using its first argument as the separator. - list-lastx
list-lastxstores incoming floats and outputs a list of the last x values. - list-lifo
list-lifostores incoming lists or elements by “pushing” them and outputs stored data when “popped.” Send a bang to trigger output, or sendclearto reset the stored list.. - list-makefilename
list-makefilenamechanges symbols in a list according to amakefilename-style argument while passing floats unchanged. - list-makefilename-a
list-makefilename-aapplies Pd’s makefilename formatting to each item in a list. - list-map2
list-map2applies a user-defined operation to each pair of corresponding elements from two lists, producing a list of results. - list-math
list-mathperforms simple element-wise mathematical operations on lists using a binary operator supplied as its first argument, such as+,-,*, or/. - list-mean
list-meancalculates the arithmetic mean of the floats in a list by dividing their sum by the number of floats, and outputs the result as a float. - list-minmax
list-minmaxfinds the minimum and maximum float values in an input list. - list-moses
list-mosessplits lists according to whether a selected element is smaller than or greater than or equal to a comparison value, likemosesfor lists; a non-float at the selected position is sent to a separate outlet. - list-mult
list-multsubtracts two lists element by element for control-list processing. - list-normalize
list-normalizescales a list so that the element with the largest absolute value becomes 1 in magnitude, with all other float elements scaled by the same factor. - list-nth
list-nthoutputs the element at a specified zero-based position in an input list. - list-onearg
list-oneargoutputs its first creation argument when it receives a bang, but produces no output if that argument is blank. - list-random
list-randomgenerates a list of pseudorandom integers for use in control-list operations. - list-rdrip
list-rdripserializes a list in reverse order, outputting its last element first. - list-reduce
list-reducereduces a list to a single value by repeatedly applying the operation connected through its right inlet, supporting tasks such as finding a minimum, maximum, or closest element. - list-rev
list-revreverses the order of elements in a list and outputs the reversed list. - list-rot
list-rotrotates the elements of a list by moving a specified number of elements from the front to the back. - list-round
list-roundrounds all numbers in an input list to the nearest multiple of a specified value and outputs the resulting list. - list-sect
list-sectoutputs the elements common to both input lists, providing the intersection of two lists. - list-seek
list-seekwalks through a stored list element by element, similarly totextfile. - list-shellsort
list-shellsortsorts an input list of floats using a Shell sort and outputs the sorted list. - list-sieve
list-sievelooks up whether an incoming float occurs in a stored list, providing separate outputs for found and missed values. - list-sort
list-sortsorts an incoming list of values in ascending or descending order. - list-stddev
list-stddevcalculates the standard deviation of a list of floats. - list-sub
list-subsubtracts two lists element by element, providing a control-rate list operation. - list-swap
list-swapswaps two elements of an input list at specified indices and outputs the resulting list. - list-tabdump
list-tabdumpoutputs a table’s contents as a list, using the specified table name, count, and optional start position. - list-unique
list-uniqueremoves duplicate elements from a list, providing a uniquified list at its outlet. - list-unitvec
list-unitvecconverts an input list into a unit vector. - list-wrandom
list-wrandomuses an input list as a probability table for weighted random selection. - sroute
srouteis a settable routing object for control messages, with one outlet for matched input and another for unmatched input. - take-two
take-twotakes a list as input and outputs all combinations from that list, which can be viewed withprint. - triple-scale
triple-scalelinearly interpolates between two points represented as three-value(x, y, z)lists, providing a control-rate list output.