Skip to content

Added Chord prediction model and chord csv generator#60

Open
znoble360 wants to merge 22 commits into
masterfrom
znoble360/chord-prediction
Open

Added Chord prediction model and chord csv generator#60
znoble360 wants to merge 22 commits into
masterfrom
znoble360/chord-prediction

Conversation

@znoble360

Copy link
Copy Markdown
Owner

Added chord predictions to frequency_analyzer.dart. Just run the generateChordPred(outputFileLocation) method and a csv of the chord predictions will be saved in outputFileLocation. The rows of the csv will be the frames or time chunks of the audio file, and the columns are the predicted chords, 1-12: one for each major triad. negative values denote that triad as minor.

@znoble360

Copy link
Copy Markdown
Owner Author

oops there's no -0 so there is no A minor. will have to fix that

}

if (major) {
chordPredictions[0].add(maxIndex);

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change this to be 1 based to account for A minor

@gdijkhoffz gdijkhoffz linked an issue Nov 24, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add chord prediction model

1 participant