Skip to content

array-abs

array-abs is a library of Pd Vanilla abstractions for searching and manipulating arrays, distributed through Deken.

Contributors

People who contribute to this project.

Objects

  • array-abs-val Upon receiving a bang, array-abs-val replaces every value in the currently referenced array with its absolute value.
  • array-append array-append appends a list received at its first inlet to the end of the currently referenced array, resizing the array as needed.
  • array-between array-between searches 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-bintofreq converts every value in the currently referenced array from an FFT bin index to a frequency in hertz.
  • array-ceil Upon receiving a bang, array-ceil rounds every value in the currently referenced array up to the next highest integer.
  • array-clip Upon receiving a bang, array-clip limits every value in the referenced array to the lower and upper bounds specified at creation.
  • array-copy array-copy copies data from a source array, specified through its first inlet, into the currently referenced destination array.
  • array-copy-range array-copy-range copies a specified range of points from a source array into the currently referenced destination array.
  • array-dbtorms array-dbtorms converts every value in the currently referenced array from dB to RMS amplitude units when it receives a bang.
  • array-delete array-delete removes a specified number of values from the currently referenced array, resizing it as necessary.
  • array-differentiate array-differentiate replaces 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-drip outputs every value from the currently referenced array, one at a time, as quickly as possible.
  • array-equals array-equals searches the currently referenced array for occurrences of a query value received at its first inlet.
  • array-floor Upon receiving a bang, array-floor rounds every value in the currently referenced array down to the next lower integer.
  • array-freqtobin Upon receiving a bang, array-freqtobin converts every frequency value in the referenced array from Hz to an FFT bin index.
  • array-ftom Upon receiving a bang, array-ftom converts every value in the currently referenced array from frequency to MIDI units.
  • array-geomean array-geomean outputs the geometric mean of the currently referenced array when it receives a bang.
  • array-greater array-greater searches the currently referenced array for values that exceed a query value received at its first inlet.
  • array-insert array-insert inserts 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-integrate cumulatively 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-lesser searches the currently referenced array for values smaller than a query value received at its first inlet.
  • array-maxk array-maxk returns the k largest values in the currently referenced array as a list from its first outlet.
  • array-mean array-mean returns the arithmetic mean of the currently referenced array when it receives a bang.
  • array-median Upon receiving a bang, array-median outputs the median value of the currently referenced array from its first outlet.
  • array-mink array-mink returns the k smallest values in the currently referenced array as a list from its first outlet.
  • array-mode Upon receiving a bang, array-mode outputs 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-mtof converts every value in the currently referenced array from MIDI note values to frequency units when it receives a bang.
  • array-nearest array-nearest searches its currently referenced array for the value nearest to a query value received at its first inlet.
  • array-offset array-offset adds an offset received at its first inlet to every value in the currently referenced array.
  • array-pow Upon receiving a bang, array-pow raises every value in the currently referenced array to the specified power.
  • array-prepend array-prepend prepends 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-fill fills the currently referenced array with random numbers between the inclusive bounds given as creation arguments.
  • array-random-walk array-random-walk fills 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-range returns the range of the currently referenced array when it receives a bang.
  • array-rerange array-rerange proportionally scales every value in the currently referenced array to fit between specified lower and upper limits, inclusive.
  • array-reverse Upon receiving a bang, array-reverse reverses the order of elements in the currently referenced array.
  • array-rmstodb Upon receiving a bang, array-rmstodb converts every value in the currently referenced array from RMS to dB amplitude units.
  • array-round array-round rounds every value in the currently referenced array to the nearest integer when it receives a bang.
  • array-scale array-scale multiplies every value in the currently referenced array by an incoming scalar value.
  • array-scramble array-scramble randomizes the order of values in the currently referenced array when it receives a bang.
  • array-series array-series fills 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-shift shifts 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-shift0 shifts all values in the currently referenced array forward or backward by an incoming shift value.
  • array-sort array-sort sorts 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-std calculates the standard deviation of the currently referenced array when it receives a bang.
  • array-unique Upon receiving a bang, array-unique searches the currently referenced array for unique values.
  • array-window array-window fills the currently referenced array with a specified window function for use in spectral analysis.