Skip to content

Commit dc20bdb

Browse files
committed
Update README
1 parent bb66a1b commit dc20bdb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Usage:
88
use simple_src::{sinc, Convert};
99

1010
let samples = vec![1.0, 2.0, 3.0, 4.0];
11-
let manager = sinc::Manager::new(2.0, 48.0, 8, 0.1);
11+
let manager = sinc::Manager::new(2.0, 48.0, 8, 0.1).unwrap();
1212
let mut converter = manager.converter();
1313
for s in converter.process(samples.into_iter()) {
1414
println!("{s}");
@@ -43,9 +43,11 @@ For multi-channel example see [examples/two_channels.rs](/examples/two_channels.
4343

4444
The *linear* Converter is not recommended unless performance is really important.
4545

46-
Use [plots.py](/plots.py) to show the result of tests. It need *numpy*, *scipy*
46+
Use [plots.py](/plots.py) to show the results of conversion. It needs *numpy*, *scipy*
4747
and *matplotlib*.
4848

49+
Here is an example showing the results of a downsampling 96kHz:
50+
4951
```
5052
$ cargo test -r --test testwav -- --ignored --exact --show-output generate
5153
$ cargo test -r --test sinc -- --ignored --exact --show-output ta120_2_96k_down
@@ -59,6 +61,6 @@ $ python
5961
>>> plots.impulse('impulse_96k_44k_s_a120_2.wav', True)
6062
```
6163

62-
See [tests](/tests/) for more details.
64+
See code in [tests](/tests/) for more details.
6365

6466
Reference <https://ccrma.stanford.edu/~jos/resample/resample.html>

0 commit comments

Comments
 (0)