Description Usage Arguments Value See Also
Defines a new viewpoint.
1 | new_viewpoint(name, label, alphabet_size, discrete, f_obs, f_all)
|
name |
(Character scalar)
Name for the viewpoint (e.g. |
label |
(Character scalar) Label for the viewpoint (e.g. "Pitch-class chord"). |
alphabet_size |
For a discrete viewpoint, the number of symbols in the viewpoint's alphabet;
for a continuous viewpoint, |
discrete |
(Logical scalar) Whether the viewpoint is discrete as opposed to continuous. |
f_obs |
A function that takes a chord sequence as input and returns an integer vector corresponding to the observed feature value for each chord. This function must accept three arguments, though the function is free to ignore some of these arguments:
|
f_all |
A function that takes a chord sequence as input and returns
a matrix of feature values corresponding to all possible chords that
could have been observed at each point in the chord sequence.
In particular, element |
A viewpoint object that can be passed to compute_viewpoints
.
new_static_viewpoint
provides an efficient way to define
viewpoints that do not depend on the preceding chords.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.