如何在 Flash 中操作客户端多个声音对象的位置,然后将它们混合在一起?
如果您想创建一个基于 Flash 的客户端声音编辑器,允许您将多个声音加载到一个界面,该界面允许您操纵声音的各个位置,并实时混合/播放它们,您将如何完成这?
我希望创建一个可以混合 2 个 mp3 的简单版本,允许用户调整每个 mp3 的位置。有点像 Aviary 的 Myna 音频编辑器的简化版本。
在混合结束时,我还希望我们的服务器将 2 个 mp3 文件以正确的位置混合到 1 个 mp3 文件中...
If you wanted to create a client-side Flash-based sound editor that lets you load more than 1 sound to an interface that allows you to manipulate the individual positions of the sounds, and mix/play them in real time, how would you accomplish this?
I'm looking to create a simple version that can mix 2 mp3s, allowing the user to adjust the positions of each. Sort of a dumbed down version of Aviary's Myna audio editor.
At the end of the mixing, I would also like our server to mix the 2 mp3 files with the proper positioning into 1 mp3 file...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据输出的类型,您需要考虑匹配的正确策略。您说在编辑结束时您需要一台服务器来混合多个 mp3 文件。您还可以考虑在 Flash 播放器中创建该组合,它现在已经足够强大了。您可以发送到服务器的二进制结果,服务器只需将字节写入 .mp3 文件。
我认为您需要深入研究音频处理领域并决定您想要制作哪种工具。看看 Andre Michelle 的 Tonfall,他使用的技术几乎与它一样高科技得到。
另一方面,您可以编写自己的 mp3 音序器,并将
Timer
设置为调用Sound
实例的.play()
方法在适当的时候。这几乎是技术含量最低的事情了。您可能希望处于中间位置,然后您可以带着更容易回答的具体问题返回。祝你好运。
Depending on the kind of output you need to think of the right strategy to match. You say at the end of the editing you need a server to mix down multiple mp3 files. You could also think of creating that mix in the flash player, it's powerful enough these days. The binary result you could send to the server, which only needs to write out the bytes into a .mp3 file.
I think you need to delve into the realm of audio processing a bit and decide on what kind of tool you want to make. Check out Tonfall, by Andre Michelle, the techniques he uses are about as high-tech as it gets.
On the other end of the spectrum, you could write your own mp3 sequencer, with
Timer
s set to call aSound
instance's.play()
method at the right moment. That's about as low-tech as it gets.You'll probably want to be somewhere in the middle, and then you can return with specific questions that are easier to answer. Good luck.