new_static_viewpoint: New static viewpoint

Description Usage Arguments See Also

View source: R/viewpoints-static.R

Description

A helper function for defining viewpoints that do not depend on their preceding context.

Usage

1
new_static_viewpoint(name, label, alphabet_size, discrete, mapping)

Arguments

name

(Character scalar) Name for the viewpoint (e.g. pc_chord).

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, NA.

discrete

(Logical scalar) Whether the viewpoint is discrete as opposed to continuous.

mapping

An integer vector of length 24,576 (the alphabet size of pc_chord), where the ith element corresponds to the viewpoint value for chord i, with chord i being encoded using the pc_chord encoding from the hrep package.

See Also

new_viewpoint for defining viewpoints that do depend on their contexts.


pmcharrison/hvr documentation built on April 14, 2020, 2:47 a.m.