Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/instruments/piano.py
diff options
context:
space:
mode:
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)