array-abs
array-abs is a library of Pd Vanilla abstractions for searching and manipulating arrays, distributed through Deken.
- Repository Source code
Contributors
People who contribute to this project.
Objects
- array-abs-val Upon receiving a bang,
array-abs-valreplaces every value in the currently referenced array with its absolute value. - array-append
array-appendappends a list received at its first inlet to the end of the currently referenced array, resizing the array as needed. - array-between
array-betweensearches the currently referenced array for values strictly between the two boundaries received as a two-element list at its first inlet. - array-bintofreq Upon receiving a bang,
array-bintofreqconverts every value in the currently referenced array from an FFT bin index to a frequency in hertz. - array-ceil Upon receiving a bang,
array-ceilrounds every value in the currently referenced array up to the next highest integer. - array-clip Upon receiving a bang,
array-cliplimits every value in the referenced array to the lower and upper bounds specified at creation. - array-copy
array-copycopies data from a source array, specified through its first inlet, into the currently referenced destination array. - array-copy-range
array-copy-rangecopies a specified range of points from a source array into the currently referenced destination array. - array-dbtorms
array-dbtormsconverts every value in the currently referenced array from dB to RMS amplitude units when it receives a bang. - array-delete
array-deleteremoves a specified number of values from the currently referenced array, resizing it as necessary. - array-differentiate
array-differentiatereplaces the values in its currently referenced array with differences between neighboring values, such that each new value_i equals value_i minus value_i-1. - array-drip Upon receiving a bang,
array-dripoutputs every value from the currently referenced array, one at a time, as quickly as possible. - array-equals
array-equalssearches the currently referenced array for occurrences of a query value received at its first inlet. - array-floor Upon receiving a bang,
array-floorrounds every value in the currently referenced array down to the next lower integer. - array-freqtobin Upon receiving a bang,
array-freqtobinconverts every frequency value in the referenced array from Hz to an FFT bin index. - array-ftom Upon receiving a bang,
array-ftomconverts every value in the currently referenced array from frequency to MIDI units. - array-geomean
array-geomeanoutputs the geometric mean of the currently referenced array when it receives a bang. - array-greater
array-greatersearches the currently referenced array for values that exceed a query value received at its first inlet. - array-insert
array-insertinserts a list of values received by its first inlet into the referenced array at the index received by its second inlet. - array-integrate Upon receiving a bang,
array-integratecumulatively sums the values in the currently referenced array, so each new element equals the sum of that element and all preceding elements. - array-lesser
array-lessersearches the currently referenced array for values smaller than a query value received at its first inlet. - array-maxk
array-maxkreturns the k largest values in the currently referenced array as a list from its first outlet. - array-mean
array-meanreturns the arithmetic mean of the currently referenced array when it receives a bang. - array-median Upon receiving a bang,
array-medianoutputs the median value of the currently referenced array from its first outlet. - array-mink
array-minkreturns the k smallest values in the currently referenced array as a list from its first outlet. - array-mode Upon receiving a bang,
array-modeoutputs the mode of the currently referenced array from its first outlet and a list containing the number of occurrences of each value from its second outlet. - array-mtof
array-mtofconverts every value in the currently referenced array from MIDI note values to frequency units when it receives a bang. - array-nearest
array-nearestsearches its currently referenced array for the value nearest to a query value received at its first inlet. - array-offset
array-offsetadds an offset received at its first inlet to every value in the currently referenced array. - array-pow Upon receiving a bang,
array-powraises every value in the currently referenced array to the specified power. - array-prepend
array-prependprepends the list of values received at its first inlet to the beginning of the currently referenced array, resizing the array as necessary. - array-rand-fill Upon receiving a bang,
array-rand-fillfills the currently referenced array with random numbers between the inclusive bounds given as creation arguments. - array-random-walk
array-random-walkfills the currently referenced array with random-walk data when its first inlet receives a list containing the starting value, maximum step magnitude, lower limit, and upper limit. - array-range
array-rangereturns the range of the currently referenced array when it receives a bang. - array-rerange
array-rerangeproportionally scales every value in the currently referenced array to fit between specified lower and upper limits, inclusive. - array-reverse Upon receiving a bang,
array-reversereverses the order of elements in the currently referenced array. - array-rmstodb Upon receiving a bang,
array-rmstodbconverts every value in the currently referenced array from RMS to dB amplitude units. - array-round
array-roundrounds every value in the currently referenced array to the nearest integer when it receives a bang. - array-scale
array-scalemultiplies every value in the currently referenced array by an incoming scalar value. - array-scramble
array-scramblerandomizes the order of values in the currently referenced array when it receives a bang. - array-series
array-seriesfills the currently referenced array with a series defined by a message to its first inlet, specifying the starting value, ending value, and exponent. - array-shift
array-shiftshifts all values in the currently referenced array forward or backward by an incoming shift value, wrapping values around so no data is lost. - array-shift0
array-shift0shifts all values in the currently referenced array forward or backward by an incoming shift value. - array-sort
array-sortsorts the values of a referenced array in ascending or descending order in response to messages at its first inlet, and outputs the values’ original indices as a list from its first outlet. - array-std
array-stdcalculates the standard deviation of the currently referenced array when it receives a bang. - array-unique Upon receiving a bang,
array-uniquesearches the currently referenced array for unique values. - array-window
array-windowfills the currently referenced array with a specified window function for use in spectral analysis.