Skip to contents

This function takes in a feature vector and the number of notes, and returns a matrix. Each note is a row of the matrix.

Usage

feature_vector_to_matrix(vec, num_notes)

Arguments

vec

A vector of features. The length of the vector must be divisible by the number of notes.

num_notes

An integer specifying the number of notes. This would be the number of rows in the returned matrix.

Value

A matrix with num_notes rows and length(vec)/num_notes columns.