aboutsummaryrefslogtreecommitdiff
path: root/helpers/music_file.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-27 02:27:23 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-27 02:27:23 +0200
commit940bb6ad6cbd823ed245577093bd8959e189d43f (patch)
treea3e80900fbb33518d83a0ea3240172bdc821bce6 /helpers/music_file.py
parent62a8b07a2264101fd6d9c201267966e3c5de0cd4 (diff)
downloadMusicSampler-940bb6ad6cbd823ed245577093bd8959e189d43f.tar.gz
MusicSampler-940bb6ad6cbd823ed245577093bd8959e189d43f.tar.zst
MusicSampler-940bb6ad6cbd823ed245577093bd8959e189d43f.zip
Add music-path option to the command line
Diffstat (limited to 'helpers/music_file.py')
-rw-r--r--helpers/music_file.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/music_file.py b/helpers/music_file.py
index ba86142..916b955 100644
--- a/helpers/music_file.py
+++ b/helpers/music_file.py
@@ -104,7 +104,7 @@ class MusicFile:
104 debug_print("Reloading « {} »".format(self.name)) 104 debug_print("Reloading « {} »".format(self.name))
105 initial_db_gain = gain(self.initial_volume_factor * 100) 105 initial_db_gain = gain(self.initial_volume_factor * 100)
106 self.audio_segment = pydub.AudioSegment \ 106 self.audio_segment = pydub.AudioSegment \
107 .from_file(self.filename) \ 107 .from_file(Config.music_path + self.filename) \
108 .set_frame_rate(Config.frame_rate) \ 108 .set_frame_rate(Config.frame_rate) \
109 .set_channels(Config.channels) \ 109 .set_channels(Config.channels) \
110 .set_sample_width(Config.sample_width) \ 110 .set_sample_width(Config.sample_width) \
@@ -125,7 +125,7 @@ class MusicFile:
125 self.mixer = self.mapping.mixer or Mixer() 125 self.mixer = self.mapping.mixer or Mixer()
126 initial_db_gain = gain(self.initial_volume_factor * 100) 126 initial_db_gain = gain(self.initial_volume_factor * 100)
127 self.audio_segment = pydub.AudioSegment \ 127 self.audio_segment = pydub.AudioSegment \
128 .from_file(self.filename) \ 128 .from_file(Config.music_path + self.filename) \
129 .set_frame_rate(Config.frame_rate) \ 129 .set_frame_rate(Config.frame_rate) \
130 .set_channels(Config.channels) \ 130 .set_channels(Config.channels) \
131 .set_sample_width(Config.sample_width) \ 131 .set_sample_width(Config.sample_width) \