From a4026ac6cb2afe5804ca826f7e8fa04254d36d46 Mon Sep 17 00:00:00 2001 From: pin Date: Tue, 23 Mar 2010 15:03:02 +0000 Subject: [PATCH] Prise en charge du mode. git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@113 fe552daf-6dbe-4428-90eb-1537e0879342 --- src/app/globals.py | 12 ++++++++---- src/app/minwii.py | 9 ++++++--- src/app/widgets/data/accueil.png | Bin 13842 -> 11907 bytes src/app/widgets/home.py | 11 ++++++----- src/app/widgets/playingscreen.py | 8 ++++---- 5 files changed, 24 insertions(+), 16 deletions(-) diff --git a/src/app/globals.py b/src/app/globals.py index ef51d78..0dde5f3 100755 --- a/src/app/globals.py +++ b/src/app/globals.py @@ -11,10 +11,14 @@ from math import floor BACKGROUND_LAYER = 0 FOREGROUND_LAYER = 1 CURSOR_LAYER = 2 -PLAYING_MODES = {'EASY':0 - ,'NORMAL':1 - ,'ADVANCED':2 - ,'EXPERT':3} +PLAYING_MODES = (('EASY' , u'Facile'), + ('NORMAL' , u'Normal'), + ('ADVANCED', u'Avancé'), + ('EXPERT' , u'Expert')) + + + +PLAYING_MODES_DICT = dict([(v[0], i) for i, v in enumerate(PLAYING_MODES)]) def hls_to_rgba_8bits(h, l, s, a=1) : #convert to rgb ranging from 0 to 255 diff --git a/src/app/minwii.py b/src/app/minwii.py index 06e33f7..2e65952 100755 --- a/src/app/minwii.py +++ b/src/app/minwii.py @@ -17,7 +17,7 @@ from synth import Synth from eventutils import EventDispatcher from musicxml import musicXml2Song from config import SONG_FILE_PATH -from time import sleep +from globals import PLAYING_MODES_DICT class MinWii(object): @@ -49,10 +49,13 @@ class MinWii(object): instrumentDescription = selector.selectedInstrument # lancement du lecteur / clavier - song = musicXml2Song(home.songFile) + songFile = home.songFile + playMode = home.modeSelect.value + playMode = PLAYING_MODES_DICT[playMode] + song = musicXml2Song(songFile) bank, preset = instrumentDescription['bank'], instrumentDescription['preset'] synth.program_select(0, bank, preset) - playingScreen = SongPlayingScreen(synth, song) + playingScreen = SongPlayingScreen(synth, song, mode=playMode) playingScreen.run() pygame.event.clear() EventDispatcher.reset() diff --git a/src/app/widgets/data/accueil.png b/src/app/widgets/data/accueil.png index cd3224b5172098f5ff49567df1dc27e46ae4b9d3..9be4901d8207a038fe66707593d5717ef48bb6d6 100644 GIT binary patch literal 11907 zcmZ8nbzD?kw;mOx6i`Y9L_oTfZUjWS89Ee(p+jKkQU_F8V1@>1m?5M)MClmm?v(D1 zd%*Ag?tAb2bAD&fIy=^0d++CY_WGi#EOQU@y4hQZ`@1$X5fF%jUhb8IrrYRRqNjs_ zcH)wLQU8R8xSo9*l1-nsjCc(WdwS#MEt(P9?^w{cZ(WhP!>GL2iOV+^k7GthO=85$ zpis06zLizx8!~7RRt)`(h<>66cZBi3*vcmSiXaw;bRZ$CW}<94#t|Dno1!bLXrCN< z-JeHv{OkpD}YY7VsbfM)DL66yVSRZv{++Z1}9e z+Y{goB#HC?4X%qEur(U{h(VxfYnr=Qs*)hk7U$g%pql?{evt|<<+?U{g?$6mfO*aX zc=6%@$32t?1oGm5$IoV%itBPKKYzF~Ix;r?{d5tkuccLnPAku;<6a$^s@V>*aJDm) zD|>I8=mvFn7i9mQot<4&wDbF7iuHNq`yU!VwXt_%%#1NJfkmT|MJHXWoUcuH|D<6x zHSzNDdI}LD{ZahTwz0k=5J;aEj-hs^r6l+ynPPCiA3ZoYsHKS{K z6RqC0lBQgCZvRN>Ykx(`^t_Glx${D2Lq=Uh#Dg!%5|R!KlbMRgL-7%KE5omaz6;?_s+fq{X<#6&O{?7kD_#-x{T)3M;YHcAf;Um=Ns zP`I@udCn>H!C)}EykL(ux?lzdbUXfo#ve1~kc7-k2788lCuXodM<7{mGpi}NYZM7= zeG)B9s*RIjWN2u}9+GHBK=J)=7uF;z+I-raXOI1#KfJraR7y6hVU|+$0lrnl4qr(` zIOPinE$kI%RIV7;n98`jSF$V~G+8r@+_6GYXi^J0MX<7#PF3RSa>$dY7ve{s2D<7v zj;3ek*CSkl!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BonVl)Q;EC6sX4MHSO5}Q~rqk9_NiVw=$peW5lYEzZ ze5Hb}{vTLwaj}$;9vPepB6HK)#gG`?gS6<`&T|d0i^aL(81CdMXWJngRdq*FSgBrY zelzxcs+%*^vxsM2V_G@o(X>AQU9K%dgxju)L1*Go<4jP24=JH@6Ma+b6Bs^p$x7eG zmGq8g-3slf!%}Qxc+(tbGWwq>-v6jpnBn$aAuH9|`7)95P!AtwRrru9t?n88>1cJB z8pI|eLj{Mxjs?aXvM zMu=IzT8>y;bp~4Iv0moh-L3*#9;2Hcdx4l~4Vg1y=tZ?OIuE&W>t`-$L zi7B*))EwJO)?u@rWV3WxiDR>3Jl50Fj#HRn6&Y)Sc!7wDb0Ng-shWGR68{Siv}r*e zt=ZZ($%Jq-jJCm3ysq+8b%7TUo}Txep0(w<4H02m2kmijHUwcK-uztl*Lfr6&v!g> z>q#eKafXq vfZb^FKWI{AuZw!_Z^+{EKd;tzIZp#XDONEjScUHFMu5Aw4Q`cb+CTq46H&C_ diff --git a/src/app/widgets/home.py b/src/app/widgets/home.py index 6d9d7d5..1aa74d3 100755 --- a/src/app/widgets/home.py +++ b/src/app/widgets/home.py @@ -15,7 +15,7 @@ from pgu.gui import CLICK from pgu.gui import QUIT from pgu.gui import CHANGE import pygame -from gui.constants import reversedReadabilityDict, modeDict +from globals import PLAYING_MODES from songfilebrowser import FileOpenDialog import os.path @@ -53,9 +53,9 @@ class Home(Table) : # choix du niveau self.tr() self.td(self.createLabel("Niveau :")) - self.modeSelect = Select('easy') - for key in modeDict.keys() : - self.modeSelect.add(self.createLabel(reversedReadabilityDict[key]),key) + self.modeSelect = Select('EASY') + for k, caption in PLAYING_MODES : + self.modeSelect.add(self.createLabel(caption), k) self.td(self.modeSelect,colspan=3) self.tr() @@ -80,7 +80,7 @@ class Home(Table) : self.tr() self.quitButton = Button(self.createLabel("Quitter")) self.td(self.quitButton) - self.playButton = Button(self.createLabel("Jouer")) + self.playButton = Button(self.createLabel("Jouer"), disabled=True) self.td(self.playButton,colspan=3) self.tr() @@ -114,6 +114,7 @@ class Home(Table) : def handle_file_browser_closed(self, dlg) : if dlg.value and os.path.isfile(dlg.value): self.songFile = dlg.value + self.playButton.disabled = False \ No newline at end of file diff --git a/src/app/widgets/playingscreen.py b/src/app/widgets/playingscreen.py index f5cbdb6..2fad9c2 100755 --- a/src/app/widgets/playingscreen.py +++ b/src/app/widgets/playingscreen.py @@ -21,7 +21,7 @@ from config import DEFAULT_MIDI_VELOCITY from globals import BACKGROUND_LAYER from globals import CURSOR_LAYER -from globals import PLAYING_MODES +from globals import PLAYING_MODES_DICT class _PlayingScreenBase(pygame.sprite.LayeredDirty, EventHandlerMixin) : @@ -169,17 +169,17 @@ class PlayingScreen(_PlayingScreenBase) : class SongPlayingScreen(_PlayingScreenBase) : - def __init__(self, synth, song, mode=PLAYING_MODES['EASY']) : + def __init__(self, synth, song, mode=PLAYING_MODES_DICT['EASY']) : super(SongPlayingScreen, self).__init__(synth, song.distinctNotes) self.song = song self.quarterNoteDuration = song.quarterNoteDuration self.currentColumn = None self.noteIterator = self.song.iterNotes() self.displayNext() - if mode == PLAYING_MODES['NORMAL'] : + if mode == PLAYING_MODES_DICT['NORMAL'] : EventDispatcher.addEventListener(events.COLDOWN, self.handleColumnDown) EventDispatcher.addEventListener(events.COLUP, self.handleColumnUp) - elif mode == PLAYING_MODES['EASY'] : + elif mode == PLAYING_MODES_DICT['EASY'] : EventDispatcher.addEventListener(events.COLOVER, self.handleColumnOver) -- 2.20.1