Skip to content

Commit

Permalink
removed extra useless code in notes
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsitton committed Apr 8, 2011
1 parent ec5e4ec commit ced84b2
Showing 1 changed file with 11 additions and 29 deletions.
40 changes: 11 additions & 29 deletions src/Instrument.py
Expand Up @@ -1474,38 +1474,20 @@ def renderNotes(self, visibility, song, pos):
else:
isTappable = True

if self.notedisappear == 0:#Notes keep on going when missed
if event.played or event.hopod:#if the note isnt missed
tailOnly = True
length += z
z = 0
if length <= 0:
continue
if z < 0 and not (event.played or event.hopod):#if the note is missed
color = (.6, .6, .6, .5 * visibility * f)
flat = False
elif self.notedisappear == 1:#Notes disappear when missed
if z < 0:#if note past frets
if event.played or event.hopod:#if note was hit
tailOnly = True
length += z
z = 0
if length <= 0:
continue
else:#note missed
color = (.6, .6, .6, .5 * visibility * f)
flat = False
if self.notedisappear == 2:#turn red when missed
if event.played or event.hopod: #if the note isnt missed
tailOnly = True
length += z
z = 0
if length <= 0:
continue
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
flat = False


if self.isDrum:
sustain = False

Expand Down

0 comments on commit ced84b2

Please sign in to comment.