如何获取midi设备的当前状态? [英] How to get a current state of a midi device?

查看:89
本文介绍了如何获取midi设备的当前状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何查询 MIDI 设备的当前程序、音量等状态?我试图在 Midi 规范中找到它,但没有任何运气.我基本上需要从通过 USB MIDI 连接的数码钢琴获取当前乐器(钢琴等).

How can I query a midi device for a current state of program, volume etc? I tried to find it in Midi specs, yet without any luck. I basically need to get the current instrument (piano etc.) from a digital piano connected by USB midi.

Java 似乎可以做到:

Java seems to be able to do it:

http://docs.oracle.com/javame/config/cldc/opt-pkgs/api/mm/jsr135/index.html?javax/microedition/media/control/MIDIControl.html

他们是怎么做到的?

推荐答案

你不能.没有用于转储当前补丁、CC 值等的标准消息.

You can't. There are no such standard messages for dumping the current patch, CC values, etc.

某些合成器具有可用于此目的的 sysex 消息,但并非全部,并且该消息因设备、制造商和制造商而异.

Some synths have sysex messages that can be used for this, but not all, and that message varies from device to device, manufacturer to manufacturer.

您能做的最好的事情就是发送新的 CC 值、设置补丁等,并存储它是什么.如果它在合成器端发生变化,并且您设置了返回路径,您可以接收它并更新您存储的内容.

The best you can do is send new CC values, set the patch, etc., and store what it is. If it changes on the synth end, and you have a return path set up, you can receive it and update what you have stored.

这篇关于如何获取midi设备的当前状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆