Skip to content

Commit

Permalink
tweak for speed
Browse files Browse the repository at this point in the history
  • Loading branch information
sensorium committed Nov 20, 2016
1 parent af6f301 commit a8a3bc8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,18 @@ Look for code and usage changes [here](extras/NEWS.txt).

***

## Tweaking Arduino for Faster Audio Code

If you need your synth to run fast, Arduino versions above 1.5 can be tweaked to optimise compiled code for speed instead of small size.

Find Arduino’s platform.txt (on OSX you can find it by searching in Users/your_name/Library/Arduino15). Search and replace -Os with -O2. Save.

It’s explained more thoroughly (for Windows) [here] (http://www.instructables.com/id/Arduino-IDE-16x-compiler-optimisations-faster-code/?ALLSTEPS).

If you still need more, Arduino 1.0.5 produces slightly faster code.

***

## Caveats and Workarounds

* While Mozzi is running, the Arduino time functions `millis()`, `micros()`, `delay()`, and
Expand Down

0 comments on commit a8a3bc8

Please sign in to comment.