我已经尝试了android-midi-lib提供的示例来获取midi事件,我想在NoteOn事件中获取每个音符的音高,但似乎结果不是我想要的。我无法弄清楚LogCat中返回了哪些信息。
我不知道XXXX (YY): NoteOn
中的信息是什么。分析的midi文件是'玛丽有一只小羊羔',所以我不认为XXXX或YY会是笔记。这是返回的信息。请帮忙,谢谢!
更新: XXXX (YY): NoteOn
与音符的音高无关,我发现返回信息中的数字25表示1/4节拍。一对XXXX(455)和XXXX(25)代表一张纸条。而后来的XXXX与前XXXX有一些算术关系,但我仍然不知道XXXX代表什么。
12-11 23:21:22.947: I/System.out(2303): Warning: GenericMetaEvent used because type (33) wasn't recognized or unexpected data length (1) for type.
12-11 23:21:23.288: I/System.out(2303): Listener For All Started!
12-11 23:21:23.307: I/System.out(2303): Listener For All received event: 0 (0): NoteOn
12-11 23:21:23.338: I/Choreographer(2303): Skipped 32 frames! The application may be doing too much work on its main thread.
12-11 23:21:23.597: I/Choreographer(2303): Skipped 72 frames! The application may be doing too much work on its main thread.
12-11 23:21:23.769: I/System.out(2303): Listener For All received event: 455 (455): NoteOn
12-11 23:21:23.797: I/System.out(2303): Listener For All received event: 480 (25): NoteOn
12-11 23:21:24.271: I/System.out(2303): Listener For All received event: 935 (455): NoteOn
12-11 23:21:24.292: I/System.out(2303): Listener For All received event: 960 (25): NoteOn
12-11 23:21:24.771: I/System.out(2303): Listener For All received event: 1415 (455): NoteOn
12-11 23:21:24.791: I/System.out(2303): Listener For All received event: 1440 (25): NoteOn
12-11 23:21:25.272: I/System.out(2303): Listener For All received event: 1895 (455): NoteOn
12-11 23:21:25.293: I/System.out(2303): Listener For All received event: 1920 (25): NoteOn
12-11 23:21:25.771: I/System.out(2303): Listener For All received event: 2375 (455): NoteOn
12-11 23:21:25.797: I/System.out(2303): Listener For All received event: 2400 (25): NoteOn
12-11 23:21:26.268: I/System.out(2303): Listener For All received event: 2855 (455): NoteOn
12-11 23:21:26.288: I/System.out(2303): Listener For All received event: 2880 (25): NoteOn
12-11 23:21:26.767: I/System.out(2303): Listener For All received event: 3335 (455): NoteOn
12-11 23:21:27.295: I/System.out(2303): Listener For All received event: 3840 (505): NoteOn
12-11 23:21:27.772: I/System.out(2303): Listener For All received event: 4295 (455): NoteOn
12-11 23:21:27.798: I/System.out(2303): Listener For All received event: 4320 (25): NoteOn
12-11 23:21:28.268: I/System.out(2303): Listener For All received event: 4775 (455): NoteOn
12-11 23:21:28.296: I/System.out(2303): Listener For All received event: 4800 (25): NoteOn
12-11 23:21:28.773: I/System.out(2303): Listener For All received event: 5255 (455): NoteOn
12-11 23:21:29.288: I/System.out(2303): Listener For All received event: 5760 (505): NoteOn
12-11 23:21:29.765: I/System.out(2303): Listener For All received event: 6215 (455): NoteOn
12-11 23:21:29.793: I/System.out(2303): Listener For All received event: 6240 (25): NoteOn
12-11 23:21:30.270: I/System.out(2303): Listener For All received event: 6695 (455): NoteOn
12-11 23:21:30.298: I/System.out(2303): Listener For All received event: 6720 (25): NoteOn
12-11 23:21:30.769: I/System.out(2303): Listener For All received event: 7175 (455): NoteOn
12-11 23:21:31.297: I/System.out(2303): Listener For All received event: 7680 (505): NoteOn
12-11 23:21:31.767: I/System.out(2303): Listener For All received event: 8135 (455): NoteOn
12-11 23:21:31.797: I/System.out(2303): Listener For All received event: 8160 (25): NoteOn
12-11 23:21:32.266: I/System.out(2303): Listener For All received event: 8615 (455): NoteOn
12-11 23:21:32.293: I/System.out(2303): Listener For All received event: 8640 (25): NoteOn
12-11 23:21:32.770: I/System.out(2303): Listener For All received event: 9095 (455): NoteOn
12-11 23:21:32.799: I/System.out(2303): Listener For All received event: 9120 (25): NoteOn
12-11 23:21:33.268: I/System.out(2303): Listener For All received event: 9575 (455): NoteOn
12-11 23:21:33.297: I/System.out(2303): Listener For All received event: 9600 (25): NoteOn
12-11 23:21:33.767: I/System.out(2303): Listener For All received event: 10055 (455): NoteOn
12-11 23:21:33.794: I/System.out(2303): Listener For All received event: 10080 (25): NoteOn
12-11 23:21:34.273: I/System.out(2303): Listener For All received event: 10535 (455): NoteOn
12-11 23:21:34.291: I/System.out(2303): Listener For All received event: 10560 (25): NoteOn
12-11 23:21:34.768: I/System.out(2303): Listener For All received event: 11015 (455): NoteOn
12-11 23:21:34.797: I/System.out(2303): Listener For All received event: 11040 (25): NoteOn
12-11 23:21:35.267: I/System.out(2303): Listener For All received event: 11495 (455): NoteOn
12-11 23:21:35.292: I/System.out(2303): Listener For All received event: 11520 (25): NoteOn
12-11 23:21:35.769: I/System.out(2303): Listener For All received event: 11975 (455): NoteOn
12-11 23:21:35.798: I/System.out(2303): Listener For All received event: 12000 (25): NoteOn
12-11 23:21:36.267: I/System.out(2303): Listener For All received event: 12455 (455): NoteOn
12-11 23:21:36.297: I/System.out(2303): Listener For All received event: 12480 (25): NoteOn
12-11 23:21:36.767: I/System.out(2303): Listener For All received event: 12935 (455): NoteOn