百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

mididriver

> 编程语言
开源

使用 Sonivox EAS 库的 Android Midi 驱动程序

191 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

使用 Sonivox EAS 库的 Android Midi 驱动程序

Midi Driver

Android midi driver using Sonivox EAS library. The library is available in Releases.

Licensed under Apache license.

Includes Sonivox EAS library rebuilt without spurious references to libutils and libcutils. The ARM versions have been build with the assembler source files.

Load DLS soundfont files

I have attempted to add code to load DLS soundfont files, which I have not been able to get working. The code is in the DLS branch and the relevent issue is Costum soundfont is possible?.

If anyone would like to take this up and attempt to get it working that would be much appreciated. I know Google know how it works because they have fixed a bug in it...

    Author: Eric Laurent 
    Date:   Thu May 14 09:10:40 2015 -0700

    DLS parser: fix wave pool size check.

    Bug: 21132860.

This has now been implemented in Version 1.29 by @SmithGoll.

Bugs

Google has fixed the 64 bit reverb bug: #15 - Fix math functions for 64-bit. The driver should now work correctly on all 64 bit devices.

The Sonivox library is now built as a static library and linked with the midi library. This should resolve problems with various android versions.

Use

Note:

The latest two versions (v1.26, v1.27) will not build on JitPack due to "Execution failed for task ':library:configureNdkBuildDebug[arm64-v8a]'". Builds fine elsewhere, including Github Actions.

Add the driver to your build.gradle with

gradle
allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}

and:

gradle
dependencies {
    implementation 'com.github.billthefarmer:mididriver:v1.24'
}

Constructor

The constructor has been made private and getInstance() methods added so it is not possible to have more than one instance in an app. See the demo app for an example.

Methods

java
    static MidiDriver getInstance() // Get instance of driver

    static MidiDriver getInstance(OnMidiStartListener l)

    void start() // Start the driver. Call from onResume().

    void stop()  // Stop the driver. Call from onPause();

    void addOnMidiStartListener(OnMidiStartListener l)

    void queueEvent(byte[]) // Send a midi message. This method now just
                            // calls write()

Listener

java
    void onMidiStart() // This is called when the driver has started so
                       // that program change messages, etc, may be sent.
                       // This is now somewhat redundant but has been left in.

Native Methods

…

C/C++ Native Functions

…

Native library locations

The location of the native libmidi.so libraries for building native code may be found by doing a search in the app build folder. This location may change with different versions of the android build tools.

…

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Candroid-librarymidi-driver

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言