Description Usage Arguments Value
View source: R/1-compute-viewpoints.R
This function computes viewpoints (features) for every chord sequence in a corpus, and saves the result to disk.
1 2 3 4 5 6 7 8 | compute_viewpoints(
corpus,
parent_dir,
output_dir = file.path(parent_dir, "0-viewpoints"),
seq_test = seq_along(corpus),
viewpoints = hvr::hvr_viewpoints,
verbose = TRUE
)
|
corpus |
A corpus of chord sequences as created by |
parent_dir |
(Character scalar)
The parent directory for the output files, shared with functions such as
|
output_dir |
(Character scalar) The output directory for the viewpoint analyses. Will be created if it doesn't exist already. |
seq_test |
(Integer vector)
Provides the indices of the sequences in |
viewpoints |
List of viewpoints to apply, as created by |
verbose |
(Logical scalar) Whether or not to print verbose status reports. |
The primary output is written to disk in the output_dir
directory.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.