Skip to content

Commit

Permalink
Merge PR #130
Browse files Browse the repository at this point in the history
  • Loading branch information
kosua20 committed Jul 31, 2023
1 parent 1222089 commit 34e7fe7
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion resources/shaders/flashes.frag
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#version 330
#define SETS_COUNT 8
#define SETS_COUNT 12


in INTERFACE {
Expand Down
2 changes: 1 addition & 1 deletion resources/shaders/majorKeys.frag
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ in INTERFACE {
vec2 uv;
} In ;

#define SETS_COUNT 8
#define SETS_COUNT 12
#define MAJOR_COUNT 75

uniform bool highlightKeys;
Expand Down
2 changes: 1 addition & 1 deletion resources/shaders/minorKeys.frag
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ in INTERFACE {
float id;
} In ;

#define SETS_COUNT 8
#define SETS_COUNT 12

uniform bool highlightKeys;
uniform bool horizontalMode = false;
Expand Down
2 changes: 1 addition & 1 deletion resources/shaders/notes.frag
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#version 330
#define SETS_COUNT 8
#define SETS_COUNT 12

in INTERFACE {
vec2 uv;
Expand Down
2 changes: 1 addition & 1 deletion resources/shaders/particles.vert
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#version 330
#define SETS_COUNT 8
#define SETS_COUNT 12

layout(location = 0) in vec2 v;

Expand Down
2 changes: 1 addition & 1 deletion src/rendering/SetOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ int SetOptions::apply(int note, int channel, int track, double start) const {
case SetMode::SPLIT:
return note < key ? 0 : 1;
case SetMode::KEY:
return noteShift[note % 12] % SETS_COUNT;
return (note % 12) % SETS_COUNT;
case SetMode::LIST:
{
// For each channel, find the corresponding key, and test
Expand Down
2 changes: 1 addition & 1 deletion src/rendering/SetOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <array>
#include <string>

#define SETS_COUNT 8
#define SETS_COUNT 12

enum class SetMode : int {
CHANNEL = 0,
Expand Down
12 changes: 6 additions & 6 deletions src/resources/shaders.cpp

Large diffs are not rendered by default.

0 comments on commit 34e7fe7

Please sign in to comment.