playitbyr Getting Started Support--Help, Bugs, and Documentation GitHub Sonification Resources

scale_dur_continuous {playitbyr}R Documentation

Continuous note duration scales


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, "dur", the length of the resulting note).


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

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



Other parameters (currently ignored)


The limits of the sound parameter.


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


The unit to round the sound parameter to.


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


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