Description Usage Arguments Value Not yet implemented Note
These functions, together, are used to generate a
standardized data.frame
, rather like a Csound
score, that is then used by whatever method renders the
sounds (currently only rendering in R as sine waves is
supported).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | .getScore(x)
.getSonlayerScore(x, sonlayernum)
.getSonlayerMappings(x, sonlayernum, remove.null = TRUE)
.getSonlayerData(x, sonlayernum, transform = TRUE)
.getSonlayerStat(x, sonlayernum)
.getSonlayerShape(x, sonlayernum)
.rescaleDataByParam(x, param, column)
.getDefaultScalingByParam(param, shapes)
.getDefaultShapeOptions(shapename)
.getSonlayerShapeOptions(x, sonlayernum)
scorePreprocessor(sonlayerscore)
|
x |
A |
sonlayernum |
The layer number of the |
remove.null |
Logical indicating whether to remove missing mappings from the returned list of mappings. .getSonlayerScore calls this with TRUE to avoid cluttering calculations; but checkSonify calls this with FALSE since it bases its approach on having the null slots in. |
transform |
A logical indicating whether to perform the given statistical transformation (stat) to the layer. |
param |
The sound parameter |
column |
The data.frame column (vector) to be rescaled |
shapes |
A character vector of names of shapes
included in the |
shapename |
The name of the shape to get the defaults for |
sonlayerscore |
The score generated for a specific
|
The end product of all this is a data.frame
object
that is used as an input to the rendering process
.getStat currently just returns NULL. It is intended that it will eventually return a function that .getSonlayerData can use to transform a data.frame, or NULL if no tranformation is requested. This function (and its only call in .getSonlayerData) will likely change soon.
These functions (particularly .getSonlayerScore) assume that every shape has a single output row for each input data row after applying statistical tranformations
all scorePreprocessor methods must calculate length of
sonification and return that as an attribute
length
of the data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.