Skip to content

Commit

Permalink
Dr. Crusher: small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Chysn committed Nov 29, 2018
1 parent 10b3bf1 commit 72ed833
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions software/o_c_REV/HEM_DrCrusher.ino
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ public:

void Controller() {
if (!Gate(0)) {
int cv = In(0);
int mod_depth = depth;
if (DetentedIn(1)) {
mod_depth += Proportion(In(1), HEMISPHERE_3V_CV, 13);
mod_depth = constrain(mod_depth, 1, 13);
}
if (++count >= crusher_ticks[rate]) {
count = 0;
int cv = In(0);
// Convert CV to positive, 16-bit
int p_cv = cv + HEMISPHERE_MAX_CV;
uint16_t p_cv16 = static_cast<uint16_t>(p_cv);
Expand Down Expand Up @@ -90,7 +85,7 @@ protected:
void SetHelp() {
// "------------------" <-- Size Guide
help[HEMISPHERE_HELP_DIGITALS] = "1=Defeat";
help[HEMISPHERE_HELP_CVS] = "1=Input 2=Depth";
help[HEMISPHERE_HELP_CVS] = "1=Input";
help[HEMISPHERE_HELP_OUTS] = "A=Crush B=Thru";
help[HEMISPHERE_HELP_ENCODER] = "Rate/Depth";
// "------------------" <-- Size Guide
Expand Down

0 comments on commit 72ed833

Please sign in to comment.