MCPcopy Create free account
hub / github.com/bspaans/python-mingus / Guitar

Class Guitar

mingus/containers/instrument.py:110–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109
110class Guitar(Instrument):
111
112 name = "Guitar"
113 range = (Note("E", 3), Note("E", 7))
114 clef = "Treble"
115
116 def __init__(self):
117 Instrument.__init__(self)
118
119 def can_play_notes(self, notes):
120 if len(notes) > 6:
121 return False
122 return Instrument.can_play_notes(self, notes)
123
124
125class MidiInstrument(Instrument):

Callers 2

setUpMethod · 0.90
setUpMethod · 0.90

Calls 1

NoteClass · 0.90

Tested by 2

setUpMethod · 0.72
setUpMethod · 0.72