Snick
Snick

Reputation: 1042

Manipulating audio object to change bpm

I'm investigating the possibility to manipulate the beat per second of an html5 audio tag.

Natively the tag offers the playbackspeed. Unfortunately the granularity is not fine enough.

Let's for example assume a modern pop song, and let's say the current BPM values is 128.

I'd love to be able to slow done the track by 1bpm, or probably even 0.1bpm, or even better 0.05 bpm (which is today pretty normal for almost all audio software).

Also, consider there are 2 way to change BPM, once is by maintaining the key and the other by not maintaining it.

In the first case, you speed up the track but the pitch doesn't change, in the second case it does.

Was wondering if anyone out there has been working on this, manipalting directly the byte data.

Upvotes: 0

Views: 1723

Answers (1)

Quicker
Quicker

Reputation: 1246

I liked the both statements

"According to WebAudio specification (http://www.w3.org/TR/webaudio/) you CAN" AND

"When I found out that IE doesn't support webaudio, it made it pointless."

at: http://www.html5gamedevs.com/topic/6255-can-you-change-audio-pitch-at-runtime/

Anyway a nice demo to 'steal with pride':

https://github.com/urtzurd/html-audio

Upvotes: 1

Related Questions