This function creates an object of the class "vec".

vec(x, type, metadata = list())

Arguments

x

List of (un-encoded) chord symbols, each of class type.

type

(Character scalar) Identifies the symbol type.

metadata

(List) A (possibly-empty) list of metadata information.

Value

An object of class "vec".

Details

"vec" objects are typed vectors of chord symbols. Their underlying representation is a list, where every list element is of a specified type (see type).

See also