Last minute fix to fade test

This commit is contained in:
2016-04-14 10:16:12 +01:00
parent d9d64e5b02
commit b6f11a4889
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -630,7 +630,7 @@ class AudioFile(object):
position = self.ms_to_samps(position)
# multiply samples by the fade values from the start position for
# the duration of the fade
audio[-position:position-fade.size] *= fade
audio[-position-1-fade.size:-position-1] *= fade
# zero any samples after the fade in
audio[-position-fade.size:] *= 0
else:
+1 -1
View File
@@ -472,7 +472,7 @@ class FadeAudioTest(globalTests):
self.test_audio = np.ones(88200)
faded_audio = self.TestAudio.fade_audio(
self.test_audio,
500,
0,
1000,
"out"
)