linear.scale() linearly transforms its input
x so that its minimum value is
and its maximum value is
max. This is for use as a
scaling function in
sonscaling. It is
unlikely to be directly called by the user.
A numeric vector or matrix
The desired minimum value, a
The desired maximum value, a
This simple function does the important work of actually
rescaling the given data of a
sonify object into
the range of the given sonic parameter, which is why it's
included in playitbyr. But it can be used on any
vector or matrix.
A numeric vector or matrix of the same type as
linearly rescaled in the desired way.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.