We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
我不知道这是否有帮助,但如果您可以使用 MIDI 做任何事情,您应该查看 JFuge 。
I dont't know if that helps, but if you can use MIDI for anything, you should check out JFuge.
在攻读学位期间,我的论文项目是创建一个基于 Java 的模块化合成器,我就读的大学认为公开我的报告是合适的:
Java 中基于软件的模块化合成器
While studying for my degree, my dissertation project was the creation of a Java based modular synthesizer, and the University at which I studied saw fit to make my report publicly available:
A Software Based Modular Synthesiser in Java
查看Frinika。 它是一个用 Java(开源)实现的全功能音乐工作站。 使用 API,您可以通过合成器运行 midi 事件,读取原始声音输出,并将其写入 WAV 文件(请参阅下面的源代码链接)。
其他信息:
Check out Frinika. It's a full-featured music workstation implemented in Java (open source). Using the API, you can run midi events through the synthesizer, read the raw sound output, and write it to a WAV file (see source code link below).
Additional information:
这个问题基本上是关于将函数映射到数字数组。 支持一流函数的语言在这里会非常方便。
查看
http://www.harmony-central.com/Computer/Programming 和
http://www.developer.com/java/other/article.php/ 3071021 了解一些 Java 相关信息。
如果您不知道声音数据编码的基本概念,请阅读 http://en .wikipedia.org/wiki/Sampling_rate
规范的 WAVE 格式非常简单,请参阅http://www.lightlink.com/tjweber/StripWav/Canon.html。 标头(前 44 字节)+ 波形数据。 您不需要任何库来实现它。
在C/C++中,相应的数据结构看起来像这样:
我不确定Java。 我想你必须用“class”替换“struct”,用“char[] data”或“short[] data”或“int[] data”替换“void* data”,对应于每个数据的位数样本,如字段 bipsa 中所定义。
要填充数据,您可以使用 C/C++ 中类似的东西:
同样,我不确定 Java,但如果您将 void 指针转换为与比特率相对应的数组,转换应该很简单。
然后只需将整个结构写入文件即可获得可播放的波形文件。
This problem is basically about mapping functions to arrays of numbers. A language that supports first-class functions would come in really handy here.
Check out
http://www.harmony-central.com/Computer/Programming and
http://www.developer.com/java/other/article.php/3071021 for some Java-related info.
If you don't know the basic concepts of encoding sound data, then read http://en.wikipedia.org/wiki/Sampling_rate
The canonical WAVE format is very simple, see http://www.lightlink.com/tjweber/StripWav/Canon.html. A header (first 44 bytes) + the wave-data. You don't need any library to implement that.
In C/C++, the corresponding data structure would look something like this:
I'm not sure about Java. I guess you'll have to substitute "struct" with "class" and "void* data" with "char[] data" or "short[] data" or "int[] data", corresponding to the number of bits per sample, as defined in the field bipsa.
To fill it with data, you would use something like that in C/C++:
Again, I'm not sure about Java but the conversion should be straightforward if you convert the void-pointer to an array corresponding to the bitrate.
Then simply write the entire structure to a file to get a playable wave file.