使用网络音频API没有改变音高更改音频速度 [英] Changing Speed of Audio Using the Web Audio API Without Changing Pitch

查看:261
本文介绍了使用网络音频API没有改变音高更改音频速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能改变音频的速度(在加载的MP3文件的形式),而无需使用网络音频API改变音高

Is it possible to change the tempo of audio (in the form of loaded MP3 files) without changing the pitch using the Web Audio API?

我知道的<一个href=\"https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/playbackRate\">playbackRate财产上AudioBufferSourceNode,但也改变音高。我也知道的<一个href=\"https://developer.mozilla.org/en-US/Apps/Build/Audio_and_video_delivery/WebAudio_playbackRate_explained\">playbackRate财产&LT;音频&GT; &lt;视频方式&gt; 元素,但我需要使用网络音频API

I'm aware of the playbackRate property on the AudioBufferSourceNode, but that also changes pitch. I'm also aware of the playbackRate property for <audio> and <video> elements, but I need to use the Web Audio API.

我很新的网络音频API。有什么我可以做什么?

I'm very new to the Web Audio API. Is there anything I can do?

推荐答案

有一种方法可以做到这一点 - 其所谓的颗粒状合成(链接指向PD理论联系,但理论是普遍的)。粒状合成的想法是,声音是在原来的速度进行采样,但它是在从每一个样本点不同的速度播放,但是与节距不会改变的优点。

There is a way to do this - its called granular synthesis (link points to a pd theory link, but the theory is universal). The idea of granular synthesis is that a sound is sampled at the original speed, but it is played at a different speed from each sample point, however with the advantage that the pitch is not altered.

这些Github的网络音频颗粒合成器链接可以帮助你(第一个是更好的)[ HTTP ://www.github.com/urtzurd/html-audio/ 网络音频颗粒合成​​]
[ http://zya.github.io/granular/ <​​/A>在Github上的另一个链接] <一个HREF =htt​​p://zya.github.io/granular/相对=nofollow称号=在Github上的另一个链接> 2

These Github Web Audio Granular Synthesiser links may help you (the first one is better) [http://www.github.com/urtzurd/html-audio/ "Web-Audio-Granular-synthesis"] [http://zya.github.io/granular/ "Another link on Github"]2

未能与任何WebAudio成功,还有就是选择;把MP3变成胆略和改变速度的方式,然后使用新的文件! ;)

Failing any success with WebAudio, there is the alternative; bring the mp3 into Audacity and change the tempo that way, and then use the new file! ;)

相信我,我理解你的痛苦,我只花了几周时间试图做的正是与PD-扩展同样的事情。近来到撕裂我的头发。我的教授向我介绍了粒子合成的概念!

Believe me, I understand your pain, I just spent weeks trying to do exactly the same thing with pd-extended. Came near to tearing my hair out. My professor introduced me to the concept of granular synthesis!

祝你好运!

这篇关于使用网络音频API没有改变音高更改音频速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆