[gcompris/gcomprismusic] minor error corrected



commit 5e6833b860cd2145d0102797cc62b53b2acbedbd
Author: Karthik Subramanian <itskarthik s gmail com>
Date:   Tue Jul 12 11:59:08 2011 +0530

    minor error corrected

 src/piano-activity/piano.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/piano-activity/piano.py b/src/piano-activity/piano.py
index e8e5208..dd3ca47 100644
--- a/src/piano-activity/piano.py
+++ b/src/piano-activity/piano.py
@@ -454,9 +454,8 @@ class Gcompris_piano:
        notesarray = notes.split(' ')
        print notesarray
        for note in notesarray: 
-            if len(note)==3:
-              note[1]='#'
-            elif note=='':
+            note = note.replace('h','#')
+            if note=='':
               break
             song.append((''+note+'',3))
        song.append(('r',3))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]