如何生成一个真正的低音吉他的声音无论是在C / C ++或Java? [英] How to generate a real bass guitar sound either in C/C++ or Java?

查看:235
本文介绍了如何生成一个真正的低音吉他的声音无论是在C / C ++或Java?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在做在互联网上广泛的研究,因为我需要一种方法来生成一个程序真正的低音(像一个低音电吉他)。事情是我一直都盼望在MIDI方式来产生声音,但林不知道如果多数民众赞成正确的事情,其实我对这个问题的小knwoledge,是我的相关生产从原材料编码的声音第一次尝试任何事情。我一直在寻找到不同的API来帮助我,他们大多的开源,看看都有哪些做的,但我发现他们非常复杂,并与一个真正陡峭的学习曲线和小文件。我也一直看着在开源的程序,如tuxguitar,在Java中,这是类似GuitarPro做,所以我可以看到如何产生的低音,我仍然有一些code到scann这样我就可以找到我在寻找什么对,但我担心的是不会成为什么,我需要或能够做到的。因此,包装这一切的时候,我的问题是:有没有产生真正的音乐低音的方式,无论是本地code或任何API,没有necesarily使用MIDI或类似,在C / C preferable任何++或Java?
非常感谢你
PS原谅任何sintaxis或语言的错误,我不是英语母语。

I been doing an extensive research in the internet because I need a way to generate real bass sound (like an electric bass guitar) from a program. The thing is Ive been looking in MIDI ways to produce that sound, but Im not sure if thats the right thing to do, actually I have little knwoledge about this subject, is my first trying anything related to produce sound from raw coding. I been looking into different APIs to help me, most of them open source to see what are the doing, but I found them very complex and with a really steep learning curve and little documentation. I also been lookin in open source programs like tuxguitar, made in java, which is similar to GuitarPro, so I could see how the produce the bass sound, I still have some code to scann so I can found what I am looking for, but I fear is wont be what I need or able to do. So to wrap all this up, my question is: is there a way to produce a real musical bass sound, either by native code or any API, no necesarily using MIDI or anything like, preferable in c/c++ or java? Thank you very much PS excuse any sintaxis or language error, i am not english speaking native.

推荐答案

MIDI仅仅是一个控制协议,并有无关的声音对自己。它一般用于合成器控制(注意开/关的消息,什么不可以),但仅此而已。

MIDI is just a control protocol, and has nothing to do with sound on its own. It's generally used for synthesizer control (note on/off messages and what not), but that's about it.

大多数设备中都有一个合成器,可以产生声音,你同时用MIDI控制。这是迄今为止上手最简单的方法,但你会发现,大多数的股票一般MIDI合成器不健全的那么大。

Most devices have a synthesizer in them that can produce sounds for you while being controlled with MIDI. This is by far the easiest way to get started, but you will find that most stock General MIDI synths don't sound so great.

现在,只要产生的声音你以后,你所谈论的编写自己的集大成者。有没有神奇。有没有捷径。这是艰苦的工作!通常,合成器将使用一组样品,然后操纵它们。例如,你将有一个勇气的样本,然后另一个用于吉他的声音。这都将在一个 ADSR包络控制。即使这样,它不会听起来令人惊讶,因为你只接近一个非常小的一套仪器的特点。

Now, as far as producing the sounds you are after, you are talking about writing your own synthesizer. There is no magic. There is no shortcut. This is hard work! Generally, synths will use a set of samples, and then manipulate them. For instance, you'll have a sample for a pluck, and then another for the sound of the guitar. This will all be controlled on an ADSR envelope. Even then, it isn't going to sound amazing, since you are only approximating a very small set of characteristics of the instrument.

这篇关于如何生成一个真正的低音吉他的声音无论是在C / C ++或Java?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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