From 83cb8515345c0086b5765258fd70f3da51da4fd7 Mon Sep 17 00:00:00 2001 From: weirdpeople Date: Thu, 7 Apr 2011 20:37:44 -0500 Subject: [PATCH] and for drum notes also (some more not needed code) --- src/Instrument.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/Instrument.py b/src/Instrument.py index c183b9b9e..3de474902 100644 --- a/src/Instrument.py +++ b/src/Instrument.py @@ -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()