如何在iOS上生成音符并播放它们? [英] How can I generate musical notes on iOS and play them?

查看:196
本文介绍了如何在iOS上生成音符并播放它们?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个可以产生一些音乐的音乐应用。我已经在Mac上使用MIDI功能来创建一个带有MIDI事件的MIDI文件(遗憾的是,我不记得这些功能的名称)。

I am creating a musical app which generate some music. I already used MIDI functions on Mac to create a MIDI file with MIDI events (unfortunately, I don't remember names of those functions).

我正在寻找一种方式以编程方式创建乐器音符(MIDI或其他任何内容)以便播放它们。我也希望有多个频道同时播放这些音符。

I am looking for a way to create instrumental notes (MIDI's or anything else) programmatically in order to play them. I also would like to have multiple channels playing those notes at the same time.

我已经尝试了'SoundBankPlayer'但显然,它不能同时播放多个乐器时间。

I already tried 'SoundBankPlayer' but apparently, it can't play multiple instruments at the same time.

你有什么想法吗?

推荐答案

这个答案可能比你想要的工作多一点,但你可以在iOS上使用PD来做到这一点。更准确地说,您可以使用 libpd for iOS 进行综合,然后使用任意数量的社区捐赠补丁。

This answer might be a bit more work than you intended, but you can use PD on iOS to do this. More precisely, you can use libpd for iOS for the synthesis, and then use any number of community-donated patches for the sound you're looking for.

这篇关于如何在iOS上生成音符并播放它们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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