处理中的音量控制(java)?
我正在从事一个处理项目。我尝试设置最小库播放的音频的音量。 (setVolume
似乎不支持,并且setGain
没有效果)
所以,我想知道是否没有其他更简单的方法来控制Processing中的音频?或者有一些Java命令可以直接使用吗?
(事实上,我想淡入和淡出一个简短的音频文件,这意味着我要经历一个循环并在一些步骤后增加音量)
我感谢每一个帮助!
问候 尼古拉斯
I'm working on a Processing project. I tried to set the Volume of the audio played with the minim library. (setVolume
seems not to be supported, and setGain
has no effect)
So, I'm wondering whether there is no other, simpler way to control the audio in Processing? Or are there some Java commands, that can be used directly?
(In fact, I want to fade In and Out a short audio file, which means, I go through a loop and increase the volume after some steps)
I thank for every help!
Greetings
Nicolas
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试使用 Sonia 或 Beads(均在此处列出)。这两者都会让你做你想做的事。
自从 Minim 第一次被引入Processing 以来,我除了遇到问题之外什么也没有。其他库有更好的文档,更易于使用并且更稳定!
Try using Sonia or Beads (both listed here). Both of these will let you do what you're after.
I've had nothing but problems with Minim since it was first rolled into Processing; the other libraries are better documented, easier to use and a lot more stable!
我现在用 ESS 做到了。
ESS 是完美的,因为你还有一个pause() 和resume() 函数。它可以与 MP3 配合使用。
感谢您的帮助!
I did it now with ESS.
ESS is perfect, because you have also a pause() and resume() function. And it works with MP3's.
thanks for your help!