xiRetimer

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

commit
99ceab1d543f3af6391eda0a062dfcfd46c804a7
parent
b4f5b93696d0ff1c8278a4892df35077caff3365
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-12-27 08:13
fix normalization

Diffstat

M src/rbprocess.h 2 +-

1 files changed, 1 insertions, 1 deletions


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

@@ -38,7 +38,7 @@ int RBprocess(int olength, float* data, Marker* marker, Sample* sample, int n=1)
   38    38 	// map
   39    39 	std::map<long unsigned int, long unsigned int> fmap;
   40    40 	for (int i = 0; i < length; i += 1024) {
   41    -1 		float old = marker->nnew2new(marker->new2old(i / (float)length));
   -1    41 		float old = marker->new2old(marker->nnew2new(i / (float)length));
   42    42 		fmap[int(old * olength) - ostart] = int(i);
   43    43 	}
   44    44 	ts.setKeyFrameMap(fmap);