passage en V1 du format de log.
authorpin <pin@fe552daf-6dbe-4428-90eb-1537e0879342>
Wed, 12 May 2010 13:18:45 +0000 (13:18 +0000)
committerpin <pin@fe552daf-6dbe-4428-90eb-1537e0879342>
Wed, 12 May 2010 13:18:45 +0000 (13:18 +0000)
git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@164 fe552daf-6dbe-4428-90eb-1537e0879342

src/app/eventutils.py
src/app/log.py
src/app/logfilereader.py
src/app/minwii.py
src/app/synth.py

index 505455c..11e0d5c 100755 (executable)
@@ -45,7 +45,7 @@ class _EventDispatcher :
         try :
             del self.registry[eventType][listener]
         except KeyError :
-            console.warn("no listener to remove")
+            console.debug("no listener to remove")
     
     def dispatchEvents(self) :
         events = pygame.event.get()
index e30daa9..3cffbb3 100755 (executable)
@@ -13,7 +13,7 @@ import pygame
 import logging
 import os
 import datetime
-LOG_FORMAT_VERSION='1.0-alpha'
+LOG_FORMAT_VERSION='1.0'
 
 hiddenEvents = {pygame.MOUSEMOTION:True,
                 pygame.MOUSEBUTTONDOWN:True,
index 9955623..2df5653 100755 (executable)
@@ -13,7 +13,7 @@ from synth import Synth
 from musicxml import musicXml2Song
 import pygame
 
-SUPPORTED_FILE_HEADER = 'ENV winwii log format version : 1.0-alpha'
+SUPPORTED_FILE_HEADER = 'ENV winwii log format version : 1.0'
 
 class LogFileReader(object) :
     
index 2475d66..55ea722 100755 (executable)
@@ -40,7 +40,7 @@ class MinWii(object):
             from pywiiuse import pygame_wiimouse
             pygame_wiimouse.init(4, 5, self.screenResolution) # look for 4, wait 5 seconds
             self.nwiimotes = nwiimotes = pygame_wiimouse.get_count()
-            console.debug('%d wiimotes found', nwiimotes)
+            console.debug('wiimotes found : %d', nwiimotes)
             self.WT = WT = pygame_wiimouse.WT
             WT.pause()
         else :
@@ -87,7 +87,7 @@ class MinWii(object):
         
         #logging
         if home.exitApp :
-            console.info("sortie de l'application")
+            console.debug("sortie de l'application")
         else :
             actual_wiimotes = self.WT.get_count()
             if self.firstSong :
index 469fd04..c1faee7 100755 (executable)
@@ -35,11 +35,11 @@ class Synth(FSynth) :
         self.start()
         self.fsid = self.sfload(sfPath)
         self._octaveAjusts = {}
-        console.info('démarrage du synthétiseur')
+        console.debug('démarrage du synthétiseur')
         envLogger.info('soundfont : %s', sfPath)
     
     def __del__(self) :
-        console.info('arrêt du synthétiseur')
+        console.debug('arrêt du synthétiseur')
         self.delete()
     
     def adjust_octave(self, chan, octave) :