sonscaling: Setting scales for 'sonify' objects

View source: R/sonscaling.R

sonscalingR Documentation

Setting scales for sonify objects

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. It is most easy to use via the scale_ convenience functions, such as scale_time_continuous.

Usage

  sonscaling(...)

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.

Value

A sonscaling object

See Also

sonify where this is eventually used; sonaes for defining the which data columns get mapped onto these sonic parameters; linear_scale for an example of a scaling function.


statisfactions/playitbyr documentation built on Jan. 27, 2024, 1:33 p.m.