sonscaling: Setting scales for 'sonify' objects

Description Usage Arguments Details Value See Also

Description

sonscaling() is invoked in the call to sonify or added onto it in order to specify precisely how the data parameters are mapped onto sonic parameters. Currently, only continuous scales are supported.

Usage

1

Arguments

...

See Details section.

Details

Each argument of sonscaling is in the form of a list, where the first element is the minimum value of the sonic parameter, the second is the maximum, and the third is a function that maps the data column onto the range of the sonic parameter. The only such function included with playitbyr right now is linear.scale.

scaleShortcuts provides a more intuitive interface to defining scales.

Value

A sonscaling object that

See Also

sonify where this is eventually used; sonaes for defining the which data columns get mapped onto these sonic parameters; scaleShortcuts for easy shortcut functions for common use-cases of scaling; and linear.scale for an example of a scaling function.


playitbyr documentation built on May 2, 2019, 6:08 p.m.