-
Notifications
You must be signed in to change notification settings - Fork 6
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
example needed for midi api #13
Comments
this seems to be working: import 'package:js_bindings/js_bindings.dart';
Future<void> main() async {
final access = await window.navigator
.requestMIDIAccess(MIDIOptions(sysex: true, software: false));
access.inputs.forEach((c, k, m) {
print('Test $c\n $k\n $m');
});
} |
Oops, yes I had type. Here is an example that covers a lot of the functionality. Maybe you can add it:
|
I've tested your code and it is working ok with the latest lib & SDK. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was just trying some variants discussed in:
dart-lang/sdk#33248
The best I could achieve was:
StdOut:
Warning: The 'dart2js' entrypoint script is deprecated, please use 'dart compile js' instead.
org-dartlang-app:///web/main.dart@346+17:
Error: The method 'requestMidiAccess' isn't defined for the class 'Navigator'.
Error: Compilation failed.
my code is:
Not sure if it is my problem or the library's.
An example that is known to work would help.
The text was updated successfully, but these errors were encountered: