scale_time_continuous: Continuous scales for note starting times

View source: R/scale-time-continuous.R

scale_time_continuousR Documentation

Continuous scales for note starting times

Description

These shortcut functions (with the notation scale_[sound parameter]_[scaling function]) are intended to be added onto a sonify object to specify how [data parameter] from the data (a column of the data) is to be mapped to sonic parameters (here "time", the starting time of the note in seconds).

Usage

  scale_time_continuous(soundlimits, limits = NULL,
    by = NULL, ...)

  scale_time_exp(soundlimits, limits = NULL, by = NULL,
    ...)

Arguments

limits

The limits of the data to train, a numeric vector of length 2. All data values outside these limits are returned as NA. If NULL, the default, the function takes the minimum and maximum of the data

soundlimits

The limits of the sound parameter.

by

The unit to round the sound parameter to.

...

Other parameters (currently ignored)

Details

_continuous scales are a linear scaling, whereas _exp is an exponential scale.

Value

A sonscaling object, to be used in sonify or added onto a sonify object.

See Also

shape_scatter, which has more information about this parameter


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