From e966dd1f6143d15cbfa0f92d4b414206dec90972 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 25 May 2018 00:28:36 +0200 Subject: counting --- datasets/dataset.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/datasets/dataset.pl b/datasets/dataset.pl index 532a172..cd068bf 100755 --- a/datasets/dataset.pl +++ b/datasets/dataset.pl @@ -71,9 +71,12 @@ sub process($) { system 'sox', glob('tmp_*'), $b_tmp; system 'rm', glob 'tmp_*'; system './split44k.sh', $b_tmp, 8, $name; + print "pitchshifting...\n"; + my $i = 0; opendir my $dh, $name or die "cant opendir $name: $!"; while (readdir $dh) { next if /^\./; + print "$i...\n" if ++$i % 100 == 0; my $fn = $_; my $n = rand( 2 * $opt_j ) - $opt_j; system 'sox', $name . '/' . $fn, $name . '/z_' . $fn, 'pitch', $n; -- cgit v1.2.3-70-g09d2