aboutsummaryrefslogtreecommitdiff
path: root/helpers/music_effect.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-20 23:17:01 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-21 09:12:34 +0200
commit9925ce3b588fc449a3e0f5a6506a2d29207928d3 (patch)
tree34f58149c0b0fbf06f9b089b3f562b73eb61ea53 /helpers/music_effect.py
parent0cb786e3c003745a3bde2b7f6ab06871147ce6f4 (diff)
downloadMusicSampler-9925ce3b588fc449a3e0f5a6506a2d29207928d3.tar.gz
MusicSampler-9925ce3b588fc449a3e0f5a6506a2d29207928d3.tar.zst
MusicSampler-9925ce3b588fc449a3e0f5a6506a2d29207928d3.zip
Make seek work well with loops
Diffstat (limited to 'helpers/music_effect.py')
-rw-r--r--helpers/music_effect.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/helpers/music_effect.py b/helpers/music_effect.py
index 23583cd..4bdbb26 100644
--- a/helpers/music_effect.py
+++ b/helpers/music_effect.py
@@ -3,7 +3,8 @@ class GainEffect:
3 'fade' 3 'fade'
4 ] 4 ]
5 5
6 def __init__(self, effect, audio_segment, initial_loop, start, end, **kwargs): 6 def __init__(self, effect, audio_segment, initial_loop, start, end,
7 **kwargs):
7 if effect in self.effect_types: 8 if effect in self.effect_types:
8 self.effect = effect 9 self.effect = effect
9 else: 10 else: