在 Flash Player 11 中按通道分析声音
参考我的老问题 AS3:分析声谱一个接一个,一次一个通道,使用 Flash Player 11 并使用 Sound.extract,是否可以提取单个通道并操纵/可视化其频谱?
我的意思是,如果我将两种声音混合到一个文件中,我可以单独控制它们,作用于它们的声波或音量之类的东西吗?
referring to my old question AS3: Analyzing sound spectrums one by one, one channel at once , with flash player 11 and using Sound.extract,is it possible to extract a single channel and manipulate/visualize it's spectrum?
I mean, if i mix 2 sounds into one file, can i control them separately, acting on thing like their soundwaves or volume?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 Sound.extract,您可以获得 44100 Hz 立体声的原始声音数据,这实际上意味着两个“通道”。
如果您将两种声音合并到一个文件中,并且想要单独处理它们,则必须将每个声音保留在自己的通道中,然后您可以以编程方式单独对它们执行任何您想要的操作。
请注意,您无法使用 SoundMixer.computeSpectrum() 创建可视化,因为当前不允许动态执行此操作(请参阅 API 文档),您必须自己处理原始声音数据。
With Sound.extract you get raw sound data at 44100 Hz Stereo, which actually means two "channels".
If you merge two sounds into one file and you want to process them individually you'll have to keep each one in its own channel, then you can programatically do anything you want with them in isolation.
Note that you cannot use SoundMixer.computeSpectrum() to create visualizations as it's not currently allowed to do so dynamically (see API docs), you'll have to process the raw sound data yourself.