使用midi编程,并将音符调整到特定频率 [英] Programming with midi, and tuning notes to specific frequencies

查看:344
本文介绍了使用midi编程,并将音符调整到特定频率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开展一个项目,我需要能够尽可能准确地生成不同频率的midi音符。我最初尝试用Java编写我的程序,但事实证明,sound.midi包不支持更改音符的调音,除非频率是等回声频率(或者至少它不是1.4,我没有'能够找到证据证明这已在最近的版本中得到修复)。我一直在努力寻找一个更合适的语言/库来完成这项任务,但由于这是我第一次使用MIDI进行编程,而且我对特定调优功能的需求是必不可少的,所以我一直很难找到我需要的东西。

I am working on a project in which I need to be able to generate midi notes of varying frequencies with as much accuracy as possible. I originally tried to write my program in Java, but it turns out that the sound.midi package does not support changing the tunings of notes unless the frequencies are Equal Tempered frequencies (or at least it didn't in 1.4, and I haven't been able to find evidence that this has been fixed in recent versions). I have been trying to find a more appropriate language/library to accomplish this task, but since this is my first time programming with MIDI and my need for specific tuning functionality is essential, I have been having considerable trouble finding exactly what I need.

我正在寻找有经验的人编写有关哪些语言有用的经验,特别是将音符调到特定频率。任何带有API文档和示例代码的网站链接也非常有用。

I am looking for advice from people who have experience writing MIDI programs as to what languages are useful, especially for tuning notes to specific frequencies. Any links to websites with API docs and example code would also be extremely helpful.

推荐答案

您不能普遍改变调整。这是合成器的一个功能,与MIDI无关。

You can't universally change the tuning. This is a feature of the synthesizer and has nothing to do with MIDI.

现在,有一些SysEx消息通常被理解为此任务。有关详细信息,请参阅此参考: http://www.midi.org/techspecs/midituning.php

Now, there are some SysEx messages that are commonly understood for this task. See this reference for more information: http://www.midi.org/techspecs/midituning.php

另一个参考: http: //www.microtonal-synthesis.com/MIDItuning.html

同样,MIDI只是一种控制协议。产生声音取决于合成器。合成器不必支持更改调整,通常不支持。这与MIDI无关,与您发送MIDI数据的语言无关。

Again, MIDI is just a control protocol. Producing the sounds is up to the synthesizer. The synth doesn't have to support changing the tuning, and often doesn't. This has nothing to do with MIDI, and nothing to do with the language you are sending MIDI data in.

这篇关于使用midi编程,并将音符调整到特定频率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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