]> CRI, Mines Paris - PSL - minwii.git/blobdiff - src/minwii/synth.py
refactoring du fichier de configuration. On peut maintenant modifier les paramètres...
[minwii.git] / src / minwii / synth.py
index c1faee7feacf7ebc55f354761a2d5348ca8e0f93..f8e87982e66015e69c4c76847e62e660a68fecfd 100755 (executable)
@@ -10,6 +10,7 @@ from  fluidsynth import Synth as FSynth
 from log import console, envLogger, eventLogger
 import pygame
 import events
+from config import SOUND_FONT
 
 class Synth(FSynth) :
     """
@@ -23,13 +24,7 @@ class Synth(FSynth) :
         FSynth.__init__(self, gain=gain, samplerate=samplerate)
         
         if not sfPath :
-            sfPath = realpath(__file__).split(sep)
-            sfPath = sfPath[:-1]
-            sfPath.append('soundfonts')
-
-            sfPath.append('FluidR3_GM.sf2')
-            sfPath = sep.join(sfPath)
-
+            sfPath = SOUND_FONT
         assert exists(sfPath)
 
         self.start()