Skip to content

Commit

Permalink
fixes for Gemma M0
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianfreed committed Mar 31, 2018
1 parent 27edfbd commit ca7266a
Show file tree
Hide file tree
Showing 3 changed files with 1,973 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Talkie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ void timerInterrupt(void) {
u0 = u1 - (((int16_t)synthK1*x0) >> 7); // but this is a speed shortcut.
#endif
// Output clamp
if (u0 > ((512<<RESSHIFT)-1) u0 = ((512<<RESSHIFT)-1);
if (u0 > ((512<<RESSHIFT)-1)) u0 = ((512<<RESSHIFT)-1);
if (u0 < -1*(512<<RESSHIFT)) u0 = -1*(512<<RESSHIFT);
// Lattice filter reverse path
x9 = x8 + (((int16_t)synthK9*u8) >> (8-1-RESSHIFT));
Expand Down
Loading

0 comments on commit ca7266a

Please sign in to comment.