computeMatch

fun computeMatch(singerVector: FloatArray, songVector: FloatArray, singerGender: Gender, config: SearchVectorConfig = SearchVectorConfig.DEFAULT): VocalRangeMatch

Match a singer vector against a song vector.

Uses inner product similarity with gender-based octave shift.

Return

VocalRangeMatch with similarity and difficulty (1-5)

Parameters

singerVector

Singer's 13-dim search vector (from computeSearchVector with normalize=false)

songVector

Song's 13-dim search vector (from computeSearchVector with normalize=true)

singerGender

Singer gender for pitch shift offset

config

Search vector configuration (needed for bin width)