Skip to content

Commit

Permalink
v2.7.0-beta2
Browse files Browse the repository at this point in the history
  • Loading branch information
chinenual committed Apr 14, 2024
1 parent a523336 commit 869ef3a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Harp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ namespace Harp {
int scaleSize = 11; // default to chromatic
if (inputs[SCALE_INPUT].isConnected()) {
scaleSize = inputs[SCALE_INPUT].getChannels();
scaledPitch = inputs[SCALE_INPUT].getPolyVoltage(degree);
}
int degree = s % scaleSize;
int octave = s / scaleSize;
if (! inputs[SCALE_INPUT].isConnected()) {
if (inputs[SCALE_INPUT].isConnected()) {
scaledPitch = inputs[SCALE_INPUT].getPolyVoltage(degree);
} else {
// default is chromatic with root at C4
const float C4 = 0.0f;
const float SEMITONE = 1.0f/12.f;
Expand Down

0 comments on commit 869ef3a

Please sign in to comment.