diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-04-19 16:58:59 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-04-19 16:58:59 +0200 |
| commit | 123ad50cbfb7c17dae8c04d94a7c8b7da53f4e5a (patch) | |
| tree | 2884db2743a13b7772adbd970dc3f6ab5f3254e9 /datasets/dataset.pl | |
| parent | 70502d8b2dc626d0a94e6bcde47383d3f4419404 (diff) | |
| parent | 55cdfa754eea6356ef425afdd2c374886be992ad (diff) | |
Merge branch 'master' of asdf.us:samplernn
Diffstat (limited to 'datasets/dataset.pl')
| -rwxr-xr-x | datasets/dataset.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/datasets/dataset.pl b/datasets/dataset.pl index 8b77af9..edde43f 100755 --- a/datasets/dataset.pl +++ b/datasets/dataset.pl @@ -48,7 +48,7 @@ sub process($) { my $a_tmp = "a_" . $filename; my $b_tmp = "b_" . $filename; - if ($opt_c) { + if (!$opt_c) { print "Normalizing..."; system("sox", "-v", 0.945, $filename, $a_tmp); } else { @@ -56,7 +56,7 @@ sub process($) { } system("./spread.sh", $a_tmp, $b_tmp, 0.999, $scale, 1.001); system("./split44k.sh", $b_tmp, 8, $name); - if ($opt_c) { + if (!$opt_c) { system("/bin/rm", $a_tmp); } system("/bin/rm", $b_tmp); |
