diff --git a/README.md b/README.md index e3b23da..a631b7d 100644 --- a/README.md +++ b/README.md @@ -2679,14 +2679,14 @@ nframes = .getnframes() # Number of frames. ### Sample Values ```text -┏━━━━━━━━━━━┯━━━━━━━━━━━━━┯━━━━━━┯━━━━━━━━━━━━━┓ -┃ sampwidth │ min │ zero │ max ┃ -┠───────────┼─────────────┼──────┼─────────────┨ -┃ 1 │ 0 │ 128 │ 255 ┃ -┃ 2 │ -32768 │ 0 │ 32767 ┃ -┃ 3 │ -8388608 │ 0 │ 8388607 ┃ -┃ 4 │ -2147483648 │ 0 │ 2147483647 ┃ -┗━━━━━━━━━━━┷━━━━━━━━━━━━━┷━━━━━━┷━━━━━━━━━━━━━┛ ++-----------+-------------+------+-------------+ +| sampwidth | min | zero | max | ++-----------+-------------+------+-------------+ +| 1 | 0 | 128 | 255 | +| 2 | -32768 | 0 | 32767 | +| 3 | -8388608 | 0 | 8388607 | +| 4 | -2147483648 | 0 | 2147483647 | ++-----------+-------------+------+-------------+ ``` ### Read Float Samples from WAV File diff --git a/index.html b/index.html index 607f51d..84c2fde 100644 --- a/index.html +++ b/index.html @@ -2275,14 +2275,14 @@ nframes = <Wave_read>.getnframes() If sample width is one, then the integer should be encoded as unsigned.
  • For all other sizes the integer should be encoded as signed with little-endian byte order.
  • -

    Sample Values

    ┏━━━━━━━━━━━┯━━━━━━━━━━━━━┯━━━━━━┯━━━━━━━━━━━━━┓
    -┃ sampwidth │     min     │ zero │     max     ┃
    -┠───────────┼─────────────┼──────┼─────────────┨
    -┃     1     │           0 │  128 │         255 ┃
    -┃     2     │      -32768 │    0 │       32767 ┃
    -┃     3     │    -8388608 │    0 │     8388607 ┃
    -┃     4     │ -2147483648 │    0 │  2147483647 ┃
    -┗━━━━━━━━━━━┷━━━━━━━━━━━━━┷━━━━━━┷━━━━━━━━━━━━━┛
    +

    Sample Values

    +-----------+-------------+------+-------------+
    +| sampwidth |     min     | zero |     max     |
    ++-----------+-------------+------+-------------+
    +|     1     |           0 |  128 |         255 |
    +|     2     |      -32768 |    0 |       32767 |
    +|     3     |    -8388608 |    0 |     8388607 |
    +|     4     | -2147483648 |    0 |  2147483647 |
    ++-----------+-------------+------+-------------+
     

    Read Float Samples from WAV File

    def read_wav_file(filename):
    diff --git a/web/script_2.js b/web/script_2.js
    index a6a9f63..d1ab5fa 100644
    --- a/web/script_2.js
    +++ b/web/script_2.js
    @@ -177,6 +177,21 @@ const DIAGRAM_10_B =
       '┃ index()   │ ValueError │          │          ┃\n' +
       '┗━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┛\n';
     
    +const DIAGRAM_11_A =
    +  '+-----------+-------------+------+-------------+\n' +
    +  '| sampwidth |     min     | zero |     max     |\n' +
    +  '+-----------+-------------+------+-------------+\n';
    +
    +const DIAGRAM_11_B =
    +  '┏━━━━━━━━━━━┯━━━━━━━━━━━━━┯━━━━━━┯━━━━━━━━━━━━━┓\n' +
    +  '┃ sampwidth │     min     │ zero │     max     ┃\n' +
    +  '┠───────────┼─────────────┼──────┼─────────────┨\n' +
    +  '┃     1     │           0 │  128 │         255 ┃\n' +
    +  '┃     2     │      -32768 │    0 │       32767 ┃\n' +
    +  '┃     3     │    -8388608 │    0 │     8388607 ┃\n' +
    +  '┃     4     │ -2147483648 │    0 │  2147483647 ┃\n' +
    +  '┗━━━━━━━━━━━┷━━━━━━━━━━━━━┷━━━━━━┷━━━━━━━━━━━━━┛\n';
    +
     
     // isFontAvailable:
     (function(d){function c(c){b.style.fontFamily=c;e.appendChild(b);f=b.clientWidth;e.removeChild(b);return f}var f,e=d.body,b=d.createElement("span");b.innerHTML=Array(100).join("wi");b.style.cssText=["position:absolute","width:auto","font-size:128px","left:-99999px"].join(" !important;");var g=c("monospace"),h=c("serif"),k=c("sans-serif");window.isFontAvailable=function(b){return g!==c(b+",monospace")||k!==c(b+",sans-serif")||h!==c(b+",serif")}})(document);
    @@ -192,6 +207,7 @@ if (isFontAvailable('Menlo')) {
       $(`code:contains(${DIAGRAM_8_A})`).html(DIAGRAM_8_B);
       $(`code:contains(${DIAGRAM_9_A})`).html(DIAGRAM_9_B);
       $(`code:contains(${DIAGRAM_10_A})`).html(DIAGRAM_10_B);
    +  $(`code:contains(${DIAGRAM_11_A})`).html(DIAGRAM_11_B);
     }
     
     var isMobile = false;