Skip to content

Commit

Permalink
Added a bit more of a 'safety margin' on the inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
clone45 committed Aug 7, 2014
1 parent 3897db9 commit 66e5255
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions EquationBankSobek.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ uint32_t EquationBankSobek::compute(int equation_number, uint32_t t, uint32_t p1
w=(((570%((t>>2)%(1613+p1)))-((p2|(t>>2))>>(710-p2)))-1-p3);
break;

// More "solid tone" sounds

case 11: // Tone Sweeper
w = ((t&p2&t)*p1+(t>>(p3>>6)))>>1;
break;
Expand Down
2 changes: 1 addition & 1 deletion ModuleAnalogInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ uint32_t ModuleAnalogInput::read()
// wiggle room to get the full range. However, as a side effect, it reduces
// the overall knob range.

map(this->value,5,4095,0,4095);
map(this->value,10,4095,0,4095);
this->value = constrain(this->value,0,4094);

return(this->value);
Expand Down

0 comments on commit 66e5255

Please sign in to comment.