]> CRI, Mines Paris - PSL - minwii.git/blobdiff - src/app/synth.py
découpage des fichiers de log par chansons jouées.
[minwii.git] / src / app / synth.py
index 71fa12619fb63c9f32c15c9fe876a3f597ecc85a..eb192350d2738b7bbd3d63dd73fda43c949c39b1 100755 (executable)
@@ -7,7 +7,7 @@ $URL$
 """
 from os.path import realpath, sep, exists
 from  fluidsynth import Synth as FSynth
-from log import console
+from log import console, envLogger
 import pygame
 import events
 
@@ -35,10 +35,11 @@ class Synth(FSynth) :
         self.start()
         self.fsid = self.sfload(sfPath)
         self._octaveAjusts = {}
-        console.info('démarrage du synthétiseur\nsoundfont : %s', sfPath)
+        console.info('démarrage du synthétiseur')
+        envLogger.info('soundfont : %s', sfPath)
     
     def __del__(self) :
-        console.info('arrêt du synthétiseur.')
+        console.info('arrêt du synthétiseur')
         self.delete()
     
     def adjust_octave(self, chan, octave) :