W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2016

Re: [whatwg] VIDEO and pitchAdjustment

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Fri, 4 Mar 2016 15:19:32 -0800
Message-ID: <CABZUbM1aF6dej38Dbz3bK8a4UrnWn-6-WBB88V-3EKG+fF5DQA@mail.gmail.com>
To: Jer Noble <jer.noble@apple.com>
Cc: Philip Jägenstedt <philipj@opera.com>, Eric Carlson <eric.carlson@apple.com>, WHAT Working Group <whatwg@lists.whatwg.org>, Michael Enright <mike@kmcardiff.com>, Domenic Denicola <d@domenic.me>, "robert@ocallahan.org" <robert@ocallahan.org>
On Fri, Mar 4, 2016 at 1:55 PM, Jer Noble <jer.noble@apple.com> wrote:
>
>> On Mar 1, 2016, at 8:00 PM, Philip Jägenstedt <philipj@opera.com> wrote:
>>
>> On Wed, Mar 2, 2016 at 9:19 AM, Garrett Smith <dhtmlkitchen@gmail.com> wrote:
>>> On Thu, Nov 12, 2015 at 11:32 AM, Philip Jägenstedt <philipj@opera.com> wrote:
>>>> On Thu, Nov 12, 2015 at 10:55 AM, Garrett Smith <dhtmlkitchen@gmail.com>
>>>> wrote:
>>>>> On 11/12/15, Philip Jägenstedt <philipj@opera.com> wrote:
>>>>>> On Thu, Nov 12, 2015 at 9:07 AM, Garrett Smith <dhtmlkitchen@gmail.com>
>>>>>> wrote:
>>>>>>>
>>>>>>> On 10/19/15, Philip Jägenstedt <philipj@opera.com> wrote:
>>>>>>>> On Tue, Sep 1, 2015 at 11:21 AM, Philip Jägenstedt <philipj@opera.com>
>>>>>>>> wrote:
>>>>>>>>> On Mon, Aug 31, 2015 at 9:48 PM, Domenic Denicola <d@domenic.me>
>>>>>>>>> wrote:
>>>>>>>>>> From: Eric Carlson [mailto:eric.carlson@apple.com]
>>>
>>>> Two things.
>>>>
>>>> 1. Do the underlying media frameworks that browsers are using support
>>>> arbitrary pitch changes, or do they also only have the limited
>>>> preservesPitch-style API?
>>>
>>> Are there any problems getting in the way of pitch adjustment (without
>>> depending on playbackRate)?
>>
>> I don't know, that was basically my question too. If the underlying
>> APIs don't support it, that's a problem that needs to be fixed first.
>
>
> There are no such APIs on OS X which would allow an arbitrary pitch shift to be added to an otherwise normally playing piece of audio.
>
> IMO, this is a more appropriate request for the Web Audio API (adding a Audio Node which can add an arbitrary amount of pitch shift).  At which point, there would be no need for this in HTMLMediaElement, as authors could make a simple node graph consisting of an MediaElementAudioSourceNode and a PitchShiftNode.
>
> -Jer

But that can't work on OSX, right?  I wonder how audio software on mac
does it, Audacity, Amazing Slow Downer, and Garage Band, Logic, and
many others can all do this.

Plus how would web Audio API solve for the use case?

To frame an example, go to YT and pull up "Take it Easy" (Eagles). The
song is about a 50 cents flat of standard tuning. The pitch can be
adjusted by setting playbackRate to 1.023 and setting
MozPreservesPitch to false:—

var vv = document.querySelector("video");
vv.mozPreservesPitch = 0;
vv.playbackRate = 1.023

— but that speeds it up. I don't want speed coupled with pitch.

Thanks,
-- 
Garrett
@xkit
ChordCycles.wordpress.com
garretts.github.io
personx.tumblr.com
Received on Friday, 4 March 2016 23:20:00 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:37 UTC