<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>15318</bug_id>
          
          <creation_ts>2011-12-23 00:02:22 +0000</creation_ts>
          <short_desc>Define media.preservePitch attribute</short_desc>
          <delta_ts>2018-07-10 09:38:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NEEDSINFO</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ralph Giles">giles</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>hello</cc>
    
    <cc>ian</cc>
    
    <cc>kinetik</cc>
    
    <cc>mike</cc>
    
    <cc>mtanalin</cc>
    
    <cc>paul</cc>
    
    <cc>plh</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>robin</cc>
    
    <cc>teoli2003</cc>
    
    <cc>travil</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61970</commentid>
    <comment_count>0</comment_count>
    <who name="Ralph Giles">giles</who>
    <bug_when>2011-12-23 00:02:22 +0000</bug_when>
    <thetext>HTML media elements have a playbackRate attribute which can be used to adjust the playback rate. For video this just involves changing the display rate for frames. For audio the situation is more complicated.

The simplest method is to resampling the audio relative to the audio device&apos;s playback rate. This results in a pitch shift: playbackRate &gt; 1.5 or so is high and squeeky, playbackRate &lt; 0.8 is low and echo-y. There are also more sophisticated methods which attempt to preserve the spectral character so that perceived pitches are preserved, though usually with some reduction in fidelity where music is concerned.

There are reasonable use cases for both pitch-preserving and pitch-shifting cases, and the specification currently leaves the decision to implementors.

Apple initially implemented the pitch-preserving case, but later added a &apos;webkitPreservesPitch&apos; boolean attribute to control this choice.[1]

Looking at how we&apos;d support playbackRate in Firefox, we found this a useful distinction and suggest such an attribute be added to the specification. e.g.:

interface HTMLMediaElement : HTMLElement {
    attribute boolean preservePitch;
};

The element could default to true, since this is the less objectional behaviour and is compabtible with webkitPreservesPitch.

[1] http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-July/021100.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63497</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-02-01 00:45:06 +0000</bug_when>
    <thetext>When would you _not_ want to preserve pitch in a media player? (I understand that you might want to do a pitch change for special sound effect purposes, but that&apos;s the kind of thing I&apos;d expect to see in Web Audio, not in media elements.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70089</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 06:52:58 +0000</bug_when>
    <thetext>This bug was cloned to create bug 17809 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81745</commentid>
    <comment_count>3</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2013-01-21 16:00:06 +0000</bug_when>
    <thetext>Mass move to &quot;HTML WG&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81863</commentid>
    <comment_count>4</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2013-01-21 16:02:51 +0000</bug_when>
    <thetext>Mass move to &quot;HTML WG&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84797</commentid>
    <comment_count>5</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2013-03-21 21:52:49 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:


   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Additional Information Needed
Change Description: No Spec Change
Rationale: 

For IE&apos;s playbackRate support, we preserve pitch and do not offer a way to change this behavior--so both Chrome and IE agree on the default anyway. I&apos;d love to hear from someone on the Chrome team that knows the motivation behind their property, or what &quot;reasonable use cases&quot; there are for the non-pitch preserving scenario--the folks I polled at Microsoft haven&apos;t had any customer requests for this and couldn&apos;t come up with compelling use cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129308</commentid>
    <comment_count>6</comment_count>
    <who name="">hello</who>
    <bug_when>2018-07-10 09:38:35 +0000</bug_when>
    <thetext>This is absolutely essential for creative uses (pitch-able DJ-style players that work akin to record/tape players) and very much desirable for a wide range of applications. Could it be please reconsidered? In many cases, preserved pitch is also not aesthetically pleasing for slow motion video. The pitch down effect has cultural significance and would be highly appreciated in several scenes (skateboarding videos, for example).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>