Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 11 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
根据Android文档中的支持的媒体类型列表,MIDI播放内置支持。要播放 MIDI,您可以使用 JetPlayer。更多详细信息请参阅 JETCreator 用户手册。
According to the list of supported media types in the Android docs, MIDI playback support is built in. To play MIDI, you can use a JetPlayer. More details are in the JETCreator User Manual.
这是一个简单但很棒的示例应用程序,可以在 Android 上成功传输 MIDI https://github.com/billthefarmer/mididriver
不过,您必须手动将 MIDI 消息放在一起(该示例为播放音符和停止音符创建两个 MIDI 消息)。可以参考MIDI规范来进一步控制MIDI通道。问题是 Android 上的默认声音字体听起来很糟糕。
This is a simple but great sample application that successfully streams MIDI on Android https://github.com/billthefarmer/mididriver
You will have to put your MIDI messages together manually though ( the example creates two MIDI messages for play note and stop note). One can refer to the MIDI specification to further control the MIDI channels. The problem is that the default sound fonts on Android sound so bad.
Google Code 上有一个简单的 Java MIDI 库、源代码和所有内容:
http:// code.google.com/p/android-midi-lib/
它不会进行任何声音播放,但您可以使用相当高级的方法调用来读取、修改和写入 MIDI 文件。
There's a bare bones Java MIDI library here on Google Code, source and all:
http://code.google.com/p/android-midi-lib/
It won't do any sound playback, but you can read, modify, and write MIDI files with fairly high-level method calls.
如果您正在讨论通过通信通道发送 MIDI 消息或接收 MIDI 消息,我们有多种选择可供选择。
1)蓝牙
2) USB 主机
3)无线网络
。
我曾尝试使用 USB 主机功能开发 MIDI 驱动程序,目前它与我的开放应用程序(用于 MIDI 的 XY 控制器)一起放置
https://github.com/MIDIeval/MIDIeval/tree/master/Imperi0usB/MIDIeval
您可以使用该代码通过 USB 链路发送 MIDI 信号。我已成功触发音符开/关消息并开发了 XY 控制器来实时控制性能。例如)扫过截止或执行淡入/淡出。
我看到的问题是,Android 不支持通过 USB 进行同步传输,从而限制了我们的传输延迟。 USB 传输以批量传输模式进行,该模式不能保证等待确认时的低延迟。
If you are talking sending MIDI messages or receiving MIDI messages over a communication channel, we have several options to be starting from.
1) Bluetooth
2) USB-host
3) WiFi
etc.
I have tried developing a MIDI driver using the USB-host capability and it is currently placed along with my open application, XY controller for MIDI.
https://github.com/MIDIeval/MIDIeval/tree/master/Imperi0usB/MIDIeval
You can use the code to send MIDI signals over a USB link. I have successfully triggered Note ON/OFF messages and developed the XY controller to control performance in real time. eg) Sweeping the cut-off or performing fade-in/out.
The problem that I see with it is, Android does not support isochronous transfers over USB, thereby, limiting us in terms of latency of transmission. The USB transfer is happening in Bulk Transfer mode which does not guarantee low latency as it waits for the acknowledgment.