Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linting errors for Crepe class #132

Merged
merged 3 commits into from
Jun 5, 2018
Merged

Linting errors for Crepe class #132

merged 3 commits into from
Jun 5, 2018

Conversation

shiffman
Copy link
Member

@shiffman shiffman commented Jun 1, 2018

I adjusted the code to fix up the linting errors in the Crepe class and added the Crepe model back into index.js. I tested the examples and they work now!

const strlen = result.length;
for (let i = 0; i < 11 - strlen; i++) result = result;
const result = (confidence > 0.5) ? `${predictedHz.toFixed(3)} + Hz` : 'no voice';
// const strlen = result.length;
Copy link
Member Author

Choose a reason for hiding this comment

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

@handav this code didn't seem to be doing anything so I commented it out?

for (var bufferSize = 4; bufferSize < minBufferSize; bufferSize *= 2);
console.log('Buffer size = ' + bufferSize);
const minBufferSize = (this.audioContext.sampleRate / 16000) * 1024;
let bufferSize = 4;
Copy link
Member Author

Choose a reason for hiding this comment

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

this could probably be written in a different way?

@shiffman shiffman merged commit c4d1edb into master Jun 5, 2018
@shiffman
Copy link
Member Author

shiffman commented Jun 5, 2018

I'm going to go ahead and merge this. @cvalenzuela There was a conflict with the built ml5 files I think I resolved correctly but obviously go ahead and rebuild if necessary.

@handav
Copy link
Member

handav commented Jun 5, 2018

Sorry I've been MIA on this, thanks so much for taking care of this!

@cvalenzuela cvalenzuela deleted the crepe-linting branch June 13, 2018 05:44
joeyklee pushed a commit that referenced this pull request Jun 2, 2019
Linting errors for Crepe class
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.

None yet

3 participants