From a8a3bc828ad172225c884b89faaf3ab4311df169 Mon Sep 17 00:00:00 2001 From: Tim Barrass Date: Sun, 20 Nov 2016 21:53:47 +1100 Subject: [PATCH] tweak for speed --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 70c4bd71b..8f6325cc4 100644 --- a/README.md +++ b/README.md @@ -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