如何录制 iPhone 上按键的声音?

发布于 2024-08-04 10:01:15 字数 199 浏览 4 评论 0原文

我正在开发一个应用程序,我想在其中录制钢琴按键的声音。我无法在互联网上找到任何有帮助的相关内容。

任何人都可以分享代码或任何链接,显示如何记录钢琴按键的数据,将其存储在内存中的某个位置,然后再次播放吗?

如果有人知道如何获取键盘的按键事件并记录它,那也将不胜感激。

谢谢, 米沙尔

I am developing an application in which I want to record the sound of a piano key press. I'm not able to find anything relevant on the internet which helps.

Can anybody share the code or any link which shows how to record the data of the piano key press, store it somewhere in memory and then play it again?

or

If anybody knows how to get the key press event of the keyboard and record it, that would also be appreciated.

Thanks,
Mishal

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

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

发布评论

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

评论(1

欢烬 2024-08-11 10:01:15

如果我没看错的话,听起来您的特殊需求并不涉及 MIDI 或从数码钢琴捕获音符。您只想在 iPhone 应用程序上播放钢琴的声音吗?

几个问题/想法:

首先,您只需要一个音符/声音吗?如果是这样,您应该能够在销售声音样本的网站上轻松找到您喜欢的声音文件。我自己使用 sounddogs.com 进行各种奇怪的项目。

接下来,您需要什么样的代码来播放声音?您使用什么编程语言开发应用程序以及如何触发声音播放?这些细节将有助于为您提供一些想法。

最后,如果主要障碍只是查找和录制声音,那么这个问题可能最好移至 superuser.com,因为该网站更多地处理一般问题计算机问题、媒体和技术。 (StackOverflow 严格专注于编程。)

It sounds like your particular need does not involve MIDI or capturing notes from a digital piano, if I am reading correctly. You want just the audio sound of a piano, to play back on an iPhone app?

A few questions/thoughts:

First, do you just need one note/sound? If so you should be able to easily find a sound file that is to your liking on a site that sells sound samples. I myself use sounddogs.com for various odd projects.

Next, what sort of code do you need to play the sound? What programming language are you developing the app in and how do you trigger the sound playback? These details will be helpful in giving you some ideas.

Finally, if the main obstacle is just finding and recording the sound, this question may be better moved to superuser.com since that site deals more with general computer questions, media, and technology. (StackOverflow is focused strictly on programming.)

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