Skip to content

Commit

Permalink
Note border fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arduano committed Dec 18, 2019
1 parent 4a09c29 commit dc60216
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions Kiva-MIDI/Notes.fx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void GS_Note(point NOTE input[1], inout TriangleStream<PS_IN> OutputStream)
float4 cl = colorlConv;
float4 cr = colorrConv;

float noteBorder = 0.0013;
float noteBorder = 0.13;

cl.xyz *= 0.2f;
cr.xyz *= 0.2f;
Expand Down Expand Up @@ -91,13 +91,14 @@ void GS_Note(point NOTE input[1], inout TriangleStream<PS_IN> OutputStream)
cr.xyz = clamp(cr.xyz, 0, 1);


float borderTop = n.end - noteBorder / ScreenAspect;
float borderBottom = n.start + noteBorder / ScreenAspect;
float border = (NoteRight - NoteLeft) * noteBorder;
float borderTop = n.end - border / ScreenAspect;
float borderBottom = n.start + border / ScreenAspect;
if (borderTop < borderBottom) {
return;
}
float borderLeft = NoteLeft + noteBorder;
float borderRight = NoteRight - noteBorder;
float borderLeft = NoteLeft + border;
float borderRight = NoteRight - border;

v.col = cl;
v.pos = float4(borderLeft, borderBottom, 0, 1);
Expand Down
2 changes: 1 addition & 1 deletion Kiva-MIDI/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Settings
class loadingSettings { public dynamic version, midi, general; };
class versionSettings { public string version; public bool enableUpdates; public bool installed; };

public string VersionName { get; } = "v1.1.5";
public string VersionName { get; } = "v1.1.6";
public bool Installed { get; } = false;
public bool EnableUpdates { get; } = false;

Expand Down

0 comments on commit dc60216

Please sign in to comment.