X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/46f3ffd7fdde386f41020171b5733e55a8e64a85..6ac0f3c83c7f2b916038acfed564ba6c7fe8e9f4:/src/minwii/synth.py?ds=sidebyside diff --git a/src/minwii/synth.py b/src/minwii/synth.py index c1faee7..f8e8798 100755 --- a/src/minwii/synth.py +++ b/src/minwii/synth.py @@ -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()