8000 reformulated pitch properties percentage values. · xfq/csswg-drafts@cbaefe9 · GitHub
Skip to content

Commit cbaefe9

Browse files
committed
reformulated pitch properties percentage values.
1 parent d487da9 commit cbaefe9

2 files changed

Lines changed: 77 additions & 46 deletions

File tree

css3-speech/Overview.html

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,23 +2174,23 @@ <h3 id=voice-props-voice-pitch><span class=secno>10.3. </span>The &lsquo;<a
21742174
<dd>
21752175
<p> A value in <a href="#frequency-def">frequency</a> units (Hertz or
21762176
kiloHertz, e.g. "100Hz", "+2kHz"). Values are restricted to positive
2177-
numbers (unless the &lsquo;<code class=property>relative</code>&rsquo;
2178-
keyword is used), and using negative numbers results in the property
2179-
value being ignored.</p>
2177+
numbers, unless the &lsquo;<code class=property>relative</code>&rsquo;
2178+
keyword is used. Computed frequency values that are negative numbers
2179+
result in the property being ignored.</p>
21802180

21812181
<dt> <strong>relative</strong>
21822182

21832183
<dd>
21842184
<p> This keyword specifies that the provided frequency value is expressed
21852185
relatively to the inherited value, with positive or negative numbers.
2186-
For example, "+2kHz relative" is an increment, unlike "+2kHz" which is a
2187-
positive absolute value.</p>
2186+
For example, "2kHz relative" is an increment, unlike "+2kHz" which is an
2187+
absolute value.</p>
21882188

21892189
<dt> <strong>&lt;semitones&gt;</strong>
21902190

21912191
<dd>
21922192
<p> Specifies a relative change (decrement or increment) to the inherited
2193-
value. The syntax of allowed values is a &lt;<a
2193+
frequency value. The syntax of allowed values is a &lt;<a
21942194
href="#number-def">number</a>&gt; followed immediately by "st"
21952195
(semitones). A semitone is half of a tone (a half step) on the standard
21962196
diatonic scale. As such, a semitone doesn't correspond to a fixed
@@ -2201,10 +2201,14 @@ <h3 id=voice-props-voice-pitch><span class=secno>10.3. </span>The &lsquo;<a
22012201
<dt> <strong>&lt;percentage&gt;</strong>
22022202

22032203
<dd>
2204-
<p> Only non-negative <a href="#percentage-def">percentage</a> values are
2205-
allowed. Computed values are calculated relative to the inherited value.
2206-
For example, 50% means that the inherited value gets multiplied by 0.5,
2207-
which results in half the inherited pitch of the voice.</p>
2204+
<p> Positive and negative <a href="#percentage-def">percentage</a> values
2205+
are allowed, to represent an increment or decrement (respectively)
2206+
relative to the inherited frequency value. Computed values are
2207+
calculated by adding (or subtracting) the specified fraction of the
2208+
inherited frequency value, to (from) the inherited frequency value. For
2209+
example, 50% (which is equivalent to +50%) with a inherited value of
2210+
200Hz results in <code>200 + (200*0.5)</code> = 300Hz. Conversely, -50%
2211+
results in <code>200-(200*0.5)</code> = 100Hz.</p>
22082212

22092213
<dt><strong>x-low</strong>, <strong>low</strong>, <strong>medium</strong>,
22102214
<strong>high</strong>, <strong>x-high</strong>
@@ -2297,9 +2301,9 @@ <h3 id=voice-props-voice-pitch-range><span class=secno>10.4. </span>The
22972301
<dd>
22982302
<p> A value in <a href="#frequency-def">frequency</a> units (Hertz or
22992303
kiloHertz, e.g. "100Hz", "+2kHz"). Values are restricted to positive
2300-
numbers (unless the &lsquo;<code class=property>relative</code>&rsquo;
2301-
keyword is used), and using negative numbers results in the property
2302-
value being ignored.</p>
2304+
numbers, unless the &lsquo;<code class=property>relative</code>&rsquo;
2305+
keyword is used. Computed frequency values that are negative numbers
2306+
result in the property being ignored.</p>
23032307

23042308
<dt> <strong>relative</strong>
23052309

@@ -2313,7 +2317,7 @@ <h3 id=voice-props-voice-pitch-range><span class=secno>10.4. </span>The
23132317

23142318
<dd>
23152319
<p> Specifies a relative change (decrement or increment) to the inherited
2316-
value. The syntax of allowed values is a &lt;<a
2320+
frequency value. The syntax of allowed values is a &lt;<a
23172321
href="#number-def">number</a>&gt; followed immediately by "st"
23182322
(semitones). A semitone is half of a tone (a half step) on the standard
23192323
diatonic scale. As such, a semitone doesn't correspond to a fixed
@@ -2323,10 +2327,14 @@ <h3 id=voice-props-voice-pitch-range><span class=secno>10.4. </span>The
23232327
<dt> <strong>&lt;percentage&gt;</strong>
23242328

23252329
<dd>
2326-
<p> Only non-negative <a href="#percentage-def">percentage</a> values are
2327-
allowed. Computed values are calculated relative to the inherited value.
2328-
For example, 50% means that the inherited value gets multiplied by 0.5,
2329-
which results in half the inherited pitch range of the voice.</p>
2330+
<p> Positive and negative <a href="#percentage-def">percentage</a> values
2331+
are allowed, to represent an increment or decrement (respectively)
2332+
relative to the inherited frequency value. Computed values are
2333+
calculated by adding (or subtracting) the specified fraction of the
2334+
inherited frequency value, to (from) the inherited frequency value. For
2335+
example, 50% (which is equivalent to +50%) with a inherited value of
2336+
200Hz results in <code>200 + (200*0.5)</code> = 300Hz. Conversely, -50%
2337+
results in <code>200-(200*0.5)</code> = 100Hz.</p>
23302338

23312339
<dt><strong>x-low</strong>, <strong>low</strong>, <strong>medium</strong>,
23322340
<strong>high</strong> and <strong>x-high</strong>
@@ -3505,6 +3513,17 @@ <h2 class=no-num id=changes>Appendix D &mdash; Changes from previous draft</h2>
35053513
class=property>voice-balance</code></a>&rsquo; values outside of the
35063514
allowed range (clamping).
35073515

3516+
<li>Fixed &lsquo;<a href="#voice-balance"><code
3517+
class=property>voice-balance</code></a>&rsquo; prose to better explain
3518+
the relationship between author intent (stereo sound distribution) and
3519+
actual user sound system setup (mono, stereo, or surround speaker layout
3520+
/ mixing capabilities).
3521+
3522+
<li>Added prose for &lsquo;<a href="#voice-balance"><code
3523+
class=property>voice-balance</code></a>&rsquo; to describe the mapping
3524+
between stereo left-right sound axis and three-dimensional sound stage
3525+
(azimuth support in future versions of CSS-Speech).
3526+
35083527
<li>Added the &lsquo;<code class=property>normal</code>&rsquo; value for
35093528
voice-rate ("default" in SSML 1.1).
35103529

css3-speech/Overview.src.html

Lines changed: 40 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,37 +1721,40 @@ <h3 id="voice-props-voice-pitch">The 'voice-pitch' property</h3>
17211721
</dt>
17221722
<dd>
17231723
<p> A value in <a href="#frequency-def">frequency</a> units (Hertz or kiloHertz, e.g.
1724-
"100Hz", "+2kHz"). Values are restricted to positive numbers (unless the 'relative'
1725-
keyword is used), and using negative numbers results in the property value being ignored.
1726-
</p>
1724+
"100Hz", "+2kHz"). Values are restricted to positive numbers, unless the 'relative'
1725+
keyword is used. Computed frequency values that are negative numbers result in the
1726+
property being ignored. </p>
17271727
</dd>
17281728
<dt>
17291729
<strong>relative</strong>
17301730
</dt>
17311731
<dd>
17321732
<p> This keyword specifies that the provided frequency value is expressed relatively to the
1733-
inherited value, with positive or negative numbers. For example, "+2kHz relative" is an
1734-
increment, unlike "+2kHz" which is a positive absolute value. </p>
1733+
inherited value, with positive or negative numbers. For example, "2kHz relative" is an
1734+
increment, unlike "+2kHz" which is an absolute value. </p>
17351735
</dd>
17361736
<dt>
17371737
<strong>&lt;semitones&gt;</strong>
17381738
</dt>
17391739
<dd>
1740-
<p> Specifies a relative change (decrement or increment) to the inherited value. The syntax
1741-
of allowed values is a &lt;<a href="#number-def">number</a>&gt; followed immediately by
1742-
"st" (semitones). A semitone is half of a tone (a half step) on the standard diatonic
1743-
scale. As such, a semitone doesn't correspond to a fixed frequency: the ratio between two
1744-
consecutive frequencies separated by exactly one semitone is the twelfth root of two
1745-
(approximately 1.05946). </p>
1740+
<p> Specifies a relative change (decrement or increment) to the inherited frequency value.
1741+
The syntax of allowed values is a &lt;<a href="#number-def">number</a>&gt; followed
1742+
immediately by "st" (semitones). A semitone is half of a tone (a half step) on the
1743+
standard diatonic scale. As such, a semitone doesn't correspond to a fixed frequency: the
1744+
ratio between two consecutive frequencies separated by exactly one semitone is the twelfth
1745+
root of two (approximately 1.05946). </p>
17461746
</dd>
17471747
<dt>
17481748
<strong>&lt;percentage&gt;</strong>
17491749
</dt>
17501750
<dd>
1751-
<p> Only non-negative <a href="#percentage-def">percentage</a> values are allowed. Computed
1752-
values are calculated relative to the inherited value. For example, 50% means that the
1753-
inherited value gets multiplied by 0.5, which results in half the inherited pitch of the
1754-
voice. </p>
1751+
<p> Positive and negative <a href="#percentage-def">percentage</a> values are allowed, to
1752+
represent an increment or decrement (respectively) relative to the inherited frequency
1753+
value. Computed values are calculated by adding (or subtracting) the specified fraction of
1754+
the inherited frequency value, to (from) the inherited frequency value. For example, 50%
1755+
(which is equivalent to +50%) with a inherited value of 200Hz results in <code>200 +
1756+
(200*0.5)</code> = 300Hz. Conversely, -50% results in <code>200-(200*0.5)</code> =
1757+
100Hz. </p>
17551758
</dd>
17561759
<dt><strong>x-low</strong>, <strong>low</strong>, <strong>medium</strong>,
17571760
<strong>high</strong>, <strong>x-high</strong></dt>
@@ -1841,9 +1844,9 @@ <h3 id="voice-props-voice-pitch-range">The 'voice-pitch-range' property</h3>
18411844
</dt>
18421845
<dd>
18431846
<p> A value in <a href="#frequency-def">frequency</a> units (Hertz or kiloHertz, e.g.
1844-
"100Hz", "+2kHz"). Values are restricted to positive numbers (unless the 'relative'
1845-
keyword is used), and using negative numbers results in the property value being ignored.
1846-
</p>
1847+
"100Hz", "+2kHz"). Values are restricted to positive numbers, unless the 'relative'
1848+
keyword is used. Computed frequency values that are negative numbers result in the
1849+
property being ignored. </p>
18471850
</dd>
18481851
<dt>
18491852
<strong>relative</strong>
@@ -1857,21 +1860,24 @@ <h3 id="voice-props-voice-pitch-range">The 'voice-pitch-range' property</h3>
18571860
<strong>&lt;semitones&gt;</strong>
18581861
</dt>
18591862
<dd>
1860-
<p> Specifies a relative change (decrement or increment) to the inherited value. The syntax
1861-
of allowed values is a &lt;<a href="#number-def">number</a>&gt; followed immediately by
1862-
"st" (semitones). A semitone is half of a tone (a half step) on the standard diatonic
1863-
scale. As such, a semitone doesn't correspond to a fixed frequency: the ratio between two
1864-
consecutive frequencies separated by exactly one semitone is the twelfth root of two
1865-
(approximately 1.05946).</p>
1863+
<p> Specifies a relative change (decrement or increment) to the inherited frequency value.
1864+
The syntax of allowed values is a &lt;<a href="#number-def">number</a>&gt; followed
1865+
immediately by "st" (semitones). A semitone is half of a tone (a half step) on the
1866+
standard diatonic scale. As such, a semitone doesn't correspond to a fixed frequency: the
1867+
ratio between two consecutive frequencies separated by exactly one semitone is the twelfth
1868+
root of two (approximately 1.05946).</p>
18661869
</dd>
18671870
<dt>
18681871
<strong>&lt;percentage&gt;</strong>
18691872
</dt>
18701873
<dd>
1871-
<p> Only non-negative <a href="#percentage-def">percentage</a> values are allowed. Computed
1872-
values are calculated relative to the inherited value. For example, 50% means that the
1873-
inherited value gets multiplied by 0.5, which results in half the inherited pitch range of
1874-
the voice. </p>
1874+
<p> Positive and negative <a href="#percentage-def">percentage</a> values are allowed, to
1875+
represent an increment or decrement (respectively) relative to the inherited frequency
1876+
value. Computed values are calculated by adding (or subtracting) the specified fraction of
1877+
the inherited frequency value, to (from) the inherited frequency value. For example, 50%
1878+
(which is equivalent to +50%) with a inherited value of 200Hz results in <code>200 +
1879+
(200*0.5)</code> = 300Hz. Conversely, -50% results in <code>200-(200*0.5)</code> =
1880+
100Hz. </p>
18751881
</dd>
18761882
<dt><strong>x-low</strong>, <strong>low</strong>, <strong>medium</strong>,
18771883
<strong>high</strong> and <strong>x-high</strong></dt>
@@ -2461,6 +2467,12 @@ <h2 class="no-num" id="changes">Appendix D &mdash; Changes from previous draft</
24612467
<li>Added an "auto" value to 'voice-duration', which is the [initial] property value as
24622468
well.</li>
24632469
<li>Handling of 'voice-balance' values outside of the allowed range (clamping).</li>
2470+
<li>Fixed 'voice-balance' prose to better explain the relationship between author intent
2471+
(stereo sound distribution) and actual user sound system setup (mono, stereo, or surround
2472+
speaker layout / mixing capabilities).</li>
2473+
<li>Added prose for 'voice-balance' to describe the mapping between stereo left-right sound
2474+
axis and three-dimensional sound stage (azimuth support in future versions of
2475+
CSS-Speech).</li>
24642476
<li>Added the 'normal' value for voice-rate ("default" in SSML 1.1).</li>
24652477
<li>Renamed voice-family fields to be consistent with SSML.</li>
24662478
<li>Improved the 'voice-family' selection algorithm to cater for language changes.</li>

0 commit comments

Comments
 (0)