xiRetimer

fit recorded audio to a tempo
git clone https://git.ce9e.org/xiRetimer.git

commit
b4f5b93696d0ff1c8278a4892df35077caff3365
parent
c59c9b45563f60ea305cc469fec75e4ad7eb3ec4
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-12-27 08:13
Gardening

Diffstat

M src/rbprocess.h 6 +++---

1 files changed, 3 insertions, 3 deletions


diff --git a/src/rbprocess.h b/src/rbprocess.h

@@ -52,8 +52,8 @@ int RBprocess(int olength, float* data, Marker* marker, Sample* sample, int n=1)
   52    52 	ts.process(ibuf, olength2, true);
   53    53 	sample->setFinished(0.9);
   54    54 
   55    -1 	int avail=ts.available();
   56    -1 	if (avail>length) avail=length;
   -1    55 	int avail = ts.available();
   -1    56 	if (avail > length) avail = length;
   57    57 	ts.retrieve(obuf, avail);
   58    58 
   59    59 	for (int j = 0; j < avail; ++j) {
@@ -64,7 +64,7 @@ int RBprocess(int olength, float* data, Marker* marker, Sample* sample, int n=1)
   64    64 	}
   65    65 
   66    66 	for (int i = avail; i < length; ++i) {
   67    -1 		data[i]=0;
   -1    67 		data[i] = 0;
   68    68 	}
   69    69 
   70    70 	delete[] ibuf[0];