smlib
Contributors
People who contribute to this project.
Objects
- SMLib
SMLib(Signal processing for Mapping) is a collection of objects for analyzing and processing floats and vectors. - bp
bpis a band-pass filter for a stream of float values, outputting the filtered value. - decimator
decimatorreduces a float stream by passing one out of every n input values. - deltas
deltasgenerates a list of differences between values in an input float stream. - hip
smlib/hipapplies a high-pass filter to a stream of float values, producing the filtered values at its outlet. - hist
histaccumulates input floats into a histogram over a configured scale and outputs the bin values as a list. - itov
itovconverts a binary class index to a scaled value using the first-class value, last-class value, and number of classes supplied as arguments. - lavg
lavgcomputes a leaky average of incoming floats and outputs the averaged value. - lhist
lhistbuilds a “leaky” histogram from input floats or lists of floats, storing samples across a configurable number of classes. - lhisti
lhisticreates a leaky histogram from float or list input, assigning samples to a configurable number of classes without clipping out-of-range values. - linspace
linspacegenerates a list of linearly spaced floats between a start value and an end value. - lmax
lmaxcomputes a leaky maximum from incoming float values and outputs the result as a float. - lmin
lminis a control-rate filter that computes a leaky minimum from incoming float values and outputs the resulting float. - lrange
lrangeoutputs the difference between a leaky maximum and a leaky minimum for incoming float values. - lstd
lstdcalculates a leaky standard deviation from incoming floats, using a decaying accumulator for control-rate filtering. - prevl
prevlstores float inputs and outputs a list representing a vector of past input values. - vabs
vabscomputes the absolute value of each float in an input list and outputs the resulting list. - vclip
vclipclips each element of an input vector (list) between lower and upper bounds, outputting the resulting list. - vcog
vcogcomputes the center of gravity of a list of floats, representing a virtual position within that list. - vdbtorms
vdbtormsconverts dB values to RMS values across a vector. - vdelta
vdeltacomputes the element-wise difference between consecutive input vectors, outputting each current value minus the corresponding previous value. - vfmod
vfmodcomputes the modulo of each float in an input vector (list), outputting a list whose elements are the corresponding input values modulo the current base. - vftom
vftomconverts frequency values to MIDI note numbers. - vlavg
vlavgcomputes a leaky average for vectors, outputting a list of averages based on the current and previous input values. - vlmax
vlmaxcomputes a vector leaky maximum from a list of floating-point input values, outputting the maximum value in the list. - vlmin
vlminfinds the minimum value in a list of floats and its location in the list, outputting both as floats. - vlrange
vlrangecomputes a leaky maximum minus a leaky minimum for incoming floats or lists of floats, producing a float or list of range values. - vmax
vmaxfinds the maximum value in a list of floats and outputs it as a float. - vmin
vminfinds the minimum in a list of floats and outputs both the minimum value and its location in the list. - vmtof
vmtofconverts a vector (list) of MIDI note numbers to their corresponding frequencies, for control-rate MIDI-to-frequency conversion. - vnmax
vnmaxfinds the maximum value in a list of floats. - vpow
vpowraises each input float, or each element of an input list, to a specified power, computing y(i) = x(i)^a. - vrms
vrmscomputes the root-mean-square of a vector from a list of input values and outputs a float. - vrmstodb
vrmstodbconverts an RMS value or a list (vector) of RMS values to decibels. - vstd
vstdcomputes the standard deviation of a vector supplied as a list of float values. - vsum
vsumcomputes the sum of a list of floats for control-rate list processing. - vthreshold
vthresholdmonitors a stream of floats and outputs bangs when the input crosses its upper trigger threshold or lower rest threshold. - vvconv
smlib/vvconvconvolves two vectors represented as lists of floats and outputs the resulting convolution as a list. - vvminus
vvminussubtracts a list of floats—or a single float—from a list, outputting the resulting list of floats. - vvplus
vvplusadds two lists of floats and outputs the resulting list.