From a505f80ac2b9a5570006f70ebed6fb5b1651d5cd Mon Sep 17 00:00:00 2001 From: svsdval Date: Sun, 7 Jan 2024 14:40:56 +0700 Subject: [PATCH] =?UTF-8?q?-=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=83=20=D1=81=20=D0=B8?= =?UTF-8?q?=D1=81=D0=BA=D1=80=D0=B0=D0=BC=D0=B8=20=20-=20=D0=94=D0=BE?= =?UTF-8?q?=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B1=D0=B0=D0=B7=D0=BE?= =?UTF-8?q?=D0=B2=D0=BE=D0=B9=20=D0=BE=D0=BA=D1=82=D0=B0=D0=B2=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2m.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/v2m.py b/v2m.py index dca1d87..fe0e18b 100755 --- a/v2m.py +++ b/v2m.py @@ -1030,6 +1030,10 @@ def drawframe( lastimage = None): if ( separate_note_id == i ): glColor4f(0,1,0,1) DrawRect(-7,-12,7,12,2) + if prefs.octave * 12 == i: + glColor4f(1,0,0,1) + DrawRect(-9,9,9,12,3) + DrawQuad(-1,-1,1,1) glPopMatrix() @@ -1201,7 +1205,7 @@ def processmidi(): has_spark_delta = ((sparkkey[0] - prefs.keyp_colors[j][0] ) > prefs.keyp_colors_sparks_sensitivity[j] ) or ((sparkkey[1] - prefs.keyp_colors[j][1] ) > prefs.keyp_colors_sparks_sensitivity[j] ) or ((sparkkey[2] - prefs.keyp_colors[j][2] ) > prefs.keyp_colors_sparks_sensitivity[j] ) #if ( abs( int(sparkkey[0]) - keyp_colors[j][0] ) < keyp_colors_sparks_sensitivity[j] ) and ( abs( int(sparkkey[1]) - keyp_colors[j][1] ) < keyp_colors_sparks_sensitivity[j] ) and ( abs( int(sparkkey[2]) - keyp_colors[j][2] ) < keyp_colors_sparks_sensitivity[j] ): if ( not has_spark_delta ): - keypressed=2 + keypressed=0 # if ( keypressed != 0 ):