如何在 Android 上合成乐器的声音(钢琴、鼓、吉他等......)

发布于 2024-11-27 21:29:16 字数 71 浏览 4 评论 0原文

有人能给我一些关于如何合成乐器声音(钢琴、鼓、吉他等)的指导吗?

我什至不知道要寻找什么。

谢谢

Can somebody give me some direction on how to synthesize sounds of instruments (Piano, Drums, Guitar, etc...)

I am not even sure what to look for.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

看海 2024-12-04 21:29:16

不确定情况是否仍然如此,但 Android 似乎存在延迟问题,无法进行真正的声音合成。在我看来,NanoStudio 是 iOS 上最好的音频应用程序,但到目前为止,作者拒绝制作 Android 版本,因为框架还没有。

请参阅这些链接:

http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=nanostudio+android#hl=en&q=+site:foru ms.blipinteractive.co.uk+nanostudio+android&bav=on.2,or.r_gc.r_pw.&fp=ee1cd411508a9e34&biw=1194&bih=939

这完全取决于您正在制作哪种类型的应用程序,如果是 Akai APC 发出声音就可以了。如果您追求真正的合成(制作波形以便复制钢琴、吉他和鼓),这就是上面提到的 JASS 所做的,那么 Android 可能无法处理它。

如果您正在寻找通过合成模拟有机仪器的指南,请查看 Fred Welsh 的书籍 http://www .synthesizer-cookbook.com/

Not sure if this is still the case but Android seems to have latency issues that inhibit it from being able to do true sound synthesis. NanoStudio, in my opinion, is the best audio app on the iOS and the author so far refuses to make an Android version because the framework isn't there yet.

See these links:

http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=nanostudio+android#hl=en&q=+site:forums.blipinteractive.co.uk+nanostudio+android&bav=on.2,or.r_gc.r_pw.&fp=ee1cd411508a9e34&biw=1194&bih=939

It all depends on what kind of application you're making, if it's going to be a Akai APC firing off sounds you could be alright. If you're after true synthesis (crafting wave forms so they replicate pianos, guitars, and drums), which is what JASS mentioned above does, then Android might not be able to handle it.

If you're looking for a guide on emulating organic instruments via synthesis check out the books by Fred Welsh http://www.synthesizer-cookbook.com/

贩梦商人 2024-12-04 21:29:16

合成吉他、钢琴或自然鼓会很困难。触发通过合成引擎传递的样本就不那么重要了。如果您想合成模拟合成器声音那就更容易了。

您可以从以下项目获取代码:

https://sites.google.com /site/androidsynthesizer/

最后,如果您想创建一个完整的合成器或多轨应用程序,您必须将振荡器+滤波器等渲染到可以通过管道传输到 MediaPlayer 的音频流中。您不一定需要 MIDI 来做到这一点。

这是一个人的体验:

http://jazarimusic.com/ 2011/06/audio-on-android-a-developers-perspective/

有趣的阅读。

Synthesizing a guitar, piano, or natural drums would be difficult. Triggering samples that you pass through a synthesis engine less so. If you want to synthesize analog synth sounds that's easier.

Here is a project out there you might be able to grab code from:

https://sites.google.com/site/androidsynthesizer/

In the end if you want to create a full synthesizer or multi-track application you'll have to render your oscillators + filters, etc into an audio stream that can be piped into the MediaPlayer. You don't necessarily need MIDI to do that.

Here is one persons experience:

http://jazarimusic.com/2011/06/audio-on-android-a-developers-perspective/

Interesting read.

最终幸福 2024-12-04 21:29:16

两个可能值得一看的项目 JASS(Java 音频合成系统) 和 < a href="http://puredata.info/docs/developer/BuildingPdForAndroid" rel="nofollow">PureData 。 PureData 非常有趣,尽管可能是一条更艰难的道路。

Two projects that might be worth looking at JASS (Java Audio Synthesis System) and PureData . PureData is quite interesting though probably the harder path.

相权↑美人 2024-12-04 21:29:16

Android 上的 MIDI 支持很糟糕。 (一般来说音频支持也是如此,但那是另一个故事了。)有一个有趣的 此处的博客文章讨论了 Android 上(缺乏)的 MIDI 功能。以下是他为解决一些限制所做的工作:

我个人解决了动态 MIDI 生成问题,如下:以编程方式生成 MIDI 文件,将其写入设备存储,使用该文件启动媒体播放器并让它播放。如果您只需要播放动态 MIDI 声音,这已经足够快了。我怀疑它对于创建用户控制的 MIDI 内容(例如音序器)是否有用,但对于其他情况来说它很棒。

MIDI support on Android sucks. (So does audio support in general, but that's another story.) There's an interesting blog post here that discusses the (lack of) MIDI capabilities on Android. Here's what he did to work around some of the limitations:

Personally I solved the dynamic midi generation issue as follows: programmatically generate a midi file, write it to the device storage, initiate a mediaplayer with the file and let it play. This is fast enough if you just need to play a dynamic midi sound. I doubt it’s useful for creating user controlled midi stuff like sequencers, but for other cases it’s great.

回首观望 2024-12-04 21:29:16

不幸的是,Android 在官方 Java SDK 中取消了 MIDI 支持。

也就是说,您不能直接播放音频流。您必须使用提供的 MediaStream 类。

您必须使用一些 DSP(数字信号处理)知识和 NDK 才能执行此操作。

如果有一个通用包(不一定适用于 Android)允许您执行此操作,我不会感到惊讶。

我希望这为您指明了正确的方向!

Android unfortunately took out MIDI support in the official Java SDK.

That is, you cannot play audio streams directly. You must use the provided MediaStream classes.

You will have to use some DSP (digital signal processing) knowledge and the NDK in order to do this.

I would not be surprised if there was a general package (not necessarily for Android) to allow you to do this.

I hope this pointed you in the right direction!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文