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

Detection not woking correctly #4

Closed
manoharantechie opened this issue Dec 29, 2021 · 1 comment
Closed

Detection not woking correctly #4

manoharantechie opened this issue Dec 29, 2021 · 1 comment

Comments

@manoharantechie
Copy link

If am start the record its detect continuously. when am not pressing any keys ,its detect something ,Can you fix the issues to detect when i am pressing any key

@WonyJeong
Copy link
Owner

Sorry for the late reply :(

The return value is considered to be the piano key with the closest probability value to white noise.

You could use the following APIs appropriately to distinguish closer piano keys.

Map<String, String> getNotesDetail(List<dynamic> event) {
    Map<String, String> result = Map();
    event.forEach((element) {
      result['key'] = getNoteName(element["key"]);
      result['frame'] = element["frame"].toString();
      result['onset'] = element["onset"].toString();
      result['offset'] = element["offset"].toString();
      result['velocity'] = element["velocity"].toString();
    });
    return result;
  }

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

No branches or pull requests

2 participants