Skip to content

Commit

Permalink
and for drum notes also (some more not needed code)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsitton committed Apr 8, 2011
1 parent 61464f1 commit 83cb851
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/Instrument.py
Expand Up @@ -1646,18 +1646,20 @@ def renderOpenNotes(self, visibility, song, pos):


isTappable = False
if (event.played or event.hopod):
continue
if self.notedisappear == 0:#Notes keep on going when missed
if z < 0 and not (event.played or event.hopod):#if the note is missed
color = (.6, .6, .6, .5 * visibility * f)
elif self.notedisappear == 1:#Notes disappear when missed
if z < 0 and not (event.played or event.hopod):
continue
if self.notedisappear == 2:#turn red when missed
if z < 0 and not (event.played or event.hopod): #if the note is missed


if (event.played or event.hopod): #if the note is hit
continue

elif z < 0: #Notes past frets
#if none of the below they keep on going, it would be self.notedisappear == 1
if self.notedisappear == 0: #Notes disappear
continue

elif self.notedisappear == 2: #Notes turn red
color = (1, 0, 0, 1)#turn note red


sustain = False

glPushMatrix()
Expand Down

0 comments on commit 83cb851

Please sign in to comment.