Skip to content

Commit

Permalink
Fix typos in README
Browse files Browse the repository at this point in the history
  • Loading branch information
rochars committed Jan 20, 2020
1 parent 4c43c3c commit 0842559
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -390,7 +390,7 @@ You can change the sample rate of the audio with the **toSampleRate()** method.
// Load a wav file with 16kHz audio
let wav = new WaveFile(fs.readFileSync("16kHz-file.wav"));

// Change the bit depth to 44.1kHz
// Change the sample rate to 44.1kHz
// using the default configuration
wav.toSampleRate(44100);
// this is the same as:
Expand All @@ -402,7 +402,7 @@ fs.writeFileSync("44100Hz-file.wav", wav.toBuffer());

To use another method:
```javascript
// Change the bit depth to 44.1kHz using sinc
// Change the sample rate to 44.1kHz using sinc
wav.toSampleRate(44100, {method: "sinc"});
```

Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Expand Up @@ -378,7 +378,7 @@ <h3>Change the sample rate</h3>
<pre class="prettyprint source lang-javascript"><code>// Load a wav file with 16kHz audio
let wav = new WaveFile(fs.readFileSync(&quot;16kHz-file.wav&quot;));

// Change the bit depth to 44.1kHz
// Change the sample rate to 44.1kHz
// using the default configuration
wav.toSampleRate(44100);
// this is the same as:
Expand All @@ -388,7 +388,7 @@ <h3>Change the sample rate</h3>
fs.writeFileSync(&quot;44100Hz-file.wav&quot;, wav.toBuffer());
</code></pre>
<p>To use another method:</p>
<pre class="prettyprint source lang-javascript"><code>// Change the bit depth to 44.1kHz using sinc
<pre class="prettyprint source lang-javascript"><code>// Change the sample rate to 44.1kHz using sinc
wav.toSampleRate(44100, {method: &quot;sinc&quot;});
</code></pre>
<h4>Resampling methods</h4>
Expand Down

0 comments on commit 0842559

Please sign in to comment.