musicaiz.features.feature_vector

musicaiz.features.feature_vector(bar_highest_subdiv_notes: List[List[musicaiz.structure.notes.Note]]) List[List[musicaiz.structure.notes.Note]][source]

Computes the m_prim vector which calculates the difference between 2 consecutive note’s pitches and the division of the note’s durations.

Parameters
bar_highest_subdiv_notes: List[List[Note]]

A list of bars in which each element in the bar corresponds to the note with the highest pitch in the subdivision.

Returns
m_prime: List[List[Note]]

A list ob bars in in which each element in the bar corresponds to the tuple (p2-p1, d2/d1) with p the pitch and d the duration of the note.