我正在上这门疯狂的移动编程课程。我们必须做一个最终项目,我想做一些简单的吉他处理器应用程序。
我想在 IOS 中做到这一点,但似乎 IOS 的学习曲线对于短期课程来说是不切实际的。
无意冒犯任何人,但 Droid 更容易编程,至少对我来说,但我很困惑,如果你甚至可以从插孔(而不是麦克风)获取吉他输入,然后对输入进行一些处理并将其馈送到输出。
我知道延迟,这对于班级来说可能是大问题,也可能不是大问题。
有谁知道 Droid 是否可以做这样的事情?如果有的话,有什么文章或从哪里开始吗?我知道对于 IOS,你至少可以买一个插孔,它似乎有大量的开源处理代码,但我似乎找不到任何适用于 Droid 的东西。我所看到的只是吉他方面的“Ghetto Amp”。
有什么想法吗?
谢谢
I am taking this crazy class on Moble Programming. We have to do a final project and I would like to do some sort simple guitar processor app.
I wanted to do this in IOS, but it seems like the learning curve for IOS is to impractical for a short class.
No offense to anyone but Droid is easier to program, at least to me, but I am confused if you can even get guitar input from a jack (not mic) and then do some processing on the input and feed it to the output.
I'm aware of latency, which may or may not be a big deal for a class.
Does anyone know if Droid can do anything like this? If so any articles or somewhere to start? I know with IOS you can at least buy a jack and it seems to have tons of open source processing code, but I can't seem to find anything for Droid. All I have seen is "Ghetto Amp" for guitar stuff.
Any ideas?
Thanks
发布评论
评论(2)
您可能想看看这个项目:
http://code.google.com/p/moonblink/wiki/Audalyzer
应该非常有用:)
但是,您将用来拾取和查看音频流的核心类是: http://developer.android.com/reference/android/net/rtp/AudioStream.html
You may want to look at this project:
http://code.google.com/p/moonblink/wiki/Audalyzer
should be pretty useful :)
However the core class you will be using to pick up and look at audio streams is: http://developer.android.com/reference/android/net/rtp/AudioStream.html
很久以前,我为大学项目编写了一把 MIDI 吉他,为 Texas Instruments DSP 进行组装。只要您准确弹奏一个音符,并且非常小心,它就能知道您弹奏的是什么。
不需要太多放大。事实上,即使是未放大的信号,我也能得到一些注释。我有示波器和一个相当通用的 ADC 可以使用,你可能必须放大信号......但如果你这样做,请小心不要烧毁你的输入。从低开始......实际上,您对公差的了解越多越好。
看起来他们从未制造过任何高保真微型 USB 24 位 ADC 或为其编写驱动程序。估计没有市场了:) 但是,如果您正在做一个学校项目并且不制作最新的 Muse 专辑,请在以下位置获取从吉他到耳机线路的路径:
http://androidforums.com/android-media/194740-questions-about-audio-recording-droid.html
我可能会牺牲一个廉价或破损的耳机来获得耳机插头。 (也许他们在 Radio Shack 出售适当的提示,但我已经学会不再假设这样的事情了:-/)在制作电缆后,我会从吉他向其提供放大的信号,这样我就可以控制增益水平无论我想要什么。
根据延迟要求,您可以使用 Java 或 NDK。请注意这个答案:
需要有关声音处理的帮助
(我有一个原始的 Droid坐在抽屉里,我确信我可以用它来做点什么,但我只是不知道是什么!)
I wrote a MIDI guitar for a college project a long time ago, in assembly for a Texas Instruments DSP. As long as you just played exactly one note, and were really careful about it, it could tell what you'd played.
Not much amplification was needed. In fact, I could get some notes even on an unamplified signal. I had oscilloscopes and a pretty generalized ADC to work with, you might have to amplify the signal...but if you do, be careful not to fry your input. Start low...and really, the more you can read up on the tolerances the better.
Looks like they never made any hi-fi micro-USB 24-bit ADCs or wrote drivers for them. I guess there's no market. :) But if you're doing a school project and not producing the latest Muse album, get a path from your guitar to the headset line in:
http://androidforums.com/android-media/194740-questions-about-audio-recording-droid.html
I'd probably just sacrifice a cheap or broken headset to get the headset plug. ( Maybe they sell appropriate tips at Radio Shack but I've learned not to assume such things anymore :-/ ) After building a cable I'd I'd feed it an amplified signal from the guitar so I could control the gain level to whatever I wanted.
Depending on latency requirements you can use Java or NDK. Note this answer:
Need help about sound processing
(I have one of the original Droids sitting around in a drawer, I'm sure I could use it for something but I just haven't figured out what!)