Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/instruments/piano.py
diff options
context:
space:
mode:
authorDaniel Francis <francis@sugarlabs.org>2012-07-21 22:55:09 (GMT)
committer Daniel Francis <francis@sugarlabs.org>2012-07-21 22:55:09 (GMT)
commit271c6f29b5a4a9008cf9dd87cd4b9bf6ce35b09e (patch)
tree778b251f653278838980d960f5d5f9b38a0f5beb /instruments/piano.py
parentf2b318808a996705c22c65cd1f5ef29472dc679d (diff)
Solving some showing bugs, creating class for beats
Diffstat (limited to 'instruments/piano.py')
-rw-r--r--instruments/piano.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/instruments/piano.py b/instruments/piano.py
index 8bb975c..1be56fd 100644
--- a/instruments/piano.py
+++ b/instruments/piano.py
@@ -20,6 +20,7 @@
from gettext import gettext as _
+from staff import Beat
from staff import Staff
from instrument import Instrument
import clef
@@ -30,10 +31,14 @@ class Piano(Instrument):
def __init__(self):
Instrument.__init__(self)
- top_staff = Staff()
- top_staff.clef = clef.Clef()
- bottom_staff = Staff()
- bottom_staff.clef = clef.Clef()
- bottom_staff.clef.clef_type = clef.CLEF_F
+ top_beat = Beat()
+ top_beat.clef = clef.Clef()
+ top_staff = Staff(top_beat)
+
+ bottom_beat = Beat()
+ bottom_beat.clef = clef.Clef()
+ bottom_beat.clef.clef_type = clef.CLEF_F
+ bottom_staff = Staff(bottom_beat)
+
self.staves.append(top_staff)
self.staves.append(bottom_staff)