diff --git a/daisyy/buttons.h b/code/daisy-looper/buttons.h
similarity index 88%
rename from daisyy/buttons.h
rename to code/daisy-looper/buttons.h
index e75dc0084a7554b67de95eefefd6a7c3f8c7db0d..04d27bf144d83d57c6f6262fc352f7030aff1e05 100644
--- a/daisyy/buttons.h
+++ b/code/daisy-looper/buttons.h
@@ -3,10 +3,15 @@
 #define Buttons_h
 
 #include "Arduino.h"
+#include "Adafruit_SH110X.h"
+#include "Adafruit_GFX.h"
+extern Adafruit_SH1106G display;
 
 #define DURATION_SHORT_PRESS 800
 #define DURATION_VERY_LONG_PRESS 2000
 
+
+
 typedef void (*callback_function)(void);
 
 
@@ -31,6 +36,11 @@ class Button {
     void onPressed(callback_function f);
     void onLongPress(callback_function f);
     void onVeryLongPress(callback_function f);
+
+    bool display_value_changes = false;
+    void setDisplayMode(const char *description);
+    const char *description;
+    
 };
 
 Button::Button(int pin) {
@@ -42,6 +52,9 @@ void Button::init() {
   this->has_been_pressed = false;
   this->press_start = 0;
   this->release_start = 0;
+  Serial.print("Button with pin ");
+  Serial.print(this->pin);
+  Serial.println(" has been initialized");
 }
 
 void Button::read() {
@@ -128,5 +141,10 @@ void Button::onVeryLongPress(callback_function f) {
   this->onVeryLongPressFunction = f;
 }
 
+void Button::setDisplayMode(const char *description) {
+  this->display_value_changes = true;
+  this->description = description;
+}
+
 
 #endif
\ No newline at end of file
diff --git a/code/daisy-looper/daisy-looper.ino b/code/daisy-looper/daisy-looper.ino
new file mode 100644
index 0000000000000000000000000000000000000000..97cc7ddff8d25e2f0619b725b6aae65734fcf30d
--- /dev/null
+++ b/code/daisy-looper/daisy-looper.ino
@@ -0,0 +1,351 @@
+
+
+// Title: moogladder
+// Description: Sweeps the cutoff with an lfo
+// Hardware: Daisy Seed
+// Author: Ben Sergentanis
+
+#include "DaisyDuino.h"
+#include <SPI.h>
+#include <Wire.h>
+#include <Adafruit_GFX.h>
+#include <Adafruit_SH110X.h>
+
+#include "leds.h"
+#include "potentiometers.h"
+#include "buttons.h"
+#include "looper.h"
+#include "env_follower.h"
+#include "helpers.h"
+
+#define UI_FPS 60.0
+#define WAVEFORM_OVERSAMPLING 2
+
+static const size_t buffer_length = 48000 * 5;
+static float DSY_SDRAM_BSS buffer[buffer_length];
+
+static atoav::Looper looper;
+static PitchShifter pitch_shifter;
+static atoav::EnvelopeFollower envelope_follower;
+DelayLine<float, 24000> delayline;
+Resonator res;
+
+// Buttons
+Button button_1 = Button(D7);
+Button button_2 = Button(D8);
+Button button_3 = Button(D9);
+Button button_4 = Button(D10);
+Button button_5 = Button(D13);
+Button button_6 = Button(D14);
+
+// Make Potentiometers
+Potentiometer pot_1 = Potentiometer(A0);
+Potentiometer pot_2 = Potentiometer(A1);
+Potentiometer pot_3 = Potentiometer(A3);
+Potentiometer pot_4 = Potentiometer(A2);
+Potentiometer pot_5 = Potentiometer(A4);
+Potentiometer pot_6 = Potentiometer(A5);
+Potentiometer pot_7 = Potentiometer(A6);
+
+// LED                  R    G    B
+RGBLed rgb_led = RGBLed(A10, A9, A11);
+
+
+#define SCREEN_WIDTH 128 // OLED display width, in pixels
+#define SCREEN_HEIGHT 64 // OLED display height, in pixels
+#define OLED_RESET -1   //   QT-PY / XIAO
+Adafruit_SH1106G display = Adafruit_SH1106G(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
+
+uint16_t waveform_cache[SCREEN_WIDTH] = {0};
+
+DaisyHardware hw;
+
+size_t num_channels;
+double last_render = 0.0;
+float drywetmix = 0.0f;
+float delaymix = 0.0f;
+float resmix = 0.0f;
+
+
+void AudioCallback(float **in, float **out, size_t size) {
+  float output = 0.0f;
+  float no_delay = 0.0f;
+  float wet_delay;
+  for (size_t i = 0; i < size; i++) {
+    res.SetDamping(0.1+delaymix*0.2f);
+    auto looper_out = looper.Process(in[1][i]);
+    // FIXME:
+    envelope_follower.Process(in[1][i]);
+    output = drywetmix * pitch_shifter.Process(looper_out) + in[1][i] * (1.0f - drywetmix);
+    // output = output * (1.0f - resmix) + res.Process(output*resmix);
+    // no_delay = output;
+    // wet_delay = delayline.Read();
+    // delayline.Write((wet_delay * delaymix * 0.99f) + no_delay*delaymix);
+
+    // output += wet_delay*delaymix;
+    out[0][i] = out[1][i] = output;
+  }
+}
+
+bool waveform_cache_dirty = false;
+auto record_on = false;
+auto overdub_on = false;
+auto loop_start = 0.0f;
+auto loop_length = 1.0f;
+auto pitch_val = 0.5f;
+bool rec_mode_limit_length_active = false;
+bool display_rec_mode = false;
+double last_displayed_rec_mode = 0.0;
+
+void activate_rec() {
+  record_on = true;
+  waveform_cache_dirty = true;
+}
+
+void toggleRecMode() {
+  rec_mode_limit_length_active = looper.toggleRecMode();
+  last_displayed_rec_mode = millis();
+  display_rec_mode = true;
+}
+
+void activate_overdub() {
+  overdub_on = true;
+  record_on = true;
+  waveform_cache_dirty = true;
+}
+
+void setup() {
+  float sample_rate;
+  // Initialize for Daisy pod at 48kHz
+  hw = DAISY.init(DAISY_SEED, AUDIO_SR_48K);
+  num_channels = hw.num_channels;
+  sample_rate = DAISY.get_samplerate();
+
+  looper.Init(buffer, buffer_length);
+  envelope_follower.Init(sample_rate);
+  envelope_follower.SetAttack(100.0);
+  envelope_follower.SetDecay(1000.0);
+
+  pitch_shifter.Init(sample_rate);
+  delayline.Init();
+  delayline.SetDelay(48000.0f);
+  res.Init(.015, 24, sample_rate);
+  res.SetStructure(-7.f);
+
+  Serial.begin(250000);
+
+  // Initialize Display
+  display.begin(0x3C, true);
+  delay(50);
+  display.setTextSize(1);
+  display.setTextColor(SH110X_BLACK);
+  // Play a fancy intro splash screen
+  for (int i=0; i < 91; i++) {
+    display.clearDisplay();
+    display.fillCircle(display.width()/2, display.height()/2, i, SH110X_WHITE);
+    display.setCursor(30, 30);
+    display.println("D A I S Y Y");
+    display.display();
+    delay(5);
+  }
+  display.clearDisplay();
+  display.setTextColor(SH110X_WHITE);
+  display.setCursor(30, 30);
+  display.println("D A I S Y Y");
+  display.display();
+  delay(500);
+  display.clearDisplay();
+  display.display();
+
+  DAISY.begin(AudioCallback);
+  Serial.println("Started");
+
+  rgb_led.init();
+
+  // Set the analog read and write resolution to 12 bits
+  analogReadResolution(12);
+
+  // Set Knob names and display functions
+  pot_1.name = "Start";
+  pot_2.name = "Length";
+  pot_3.setDisplayMode("Pitch", 12.0f, POT_DISPLAY_MODE_PITCH);
+  pot_4.setDisplayMode("Mix", 100.0f, POT_DISPLAY_MODE_PERCENT);
+  pot_5.setDisplayMode("Delay", 100.0f, POT_DISPLAY_MODE_PERCENT);
+  pot_6.setDisplayMode("Resonator", 100.0f, POT_DISPLAY_MODE_PERCENT);
+  pot_7.setDisplayMode("Structure", 100.0f, POT_DISPLAY_MODE_PERCENT);
+
+  // Set Knob Scaling Modes
+  pot_2.setExponential();
+  pot_3.setBipolar();
+  pot_5.setExponential();
+
+  // Initialize Buttons
+  button_1.init();
+  button_2.init();
+  button_3.init();
+  button_1.onPressed(activate_rec);
+  button_2.onPress(toggleRecMode);
+  button_3.onPressed(activate_overdub);
+}
+
+void loop() {
+  // hw.ProcessAllControls();
+  float p1 = pot_1.read();
+  float p2 = pot_2.read();
+  float p3 = pot_3.read();
+  float p4 = pot_4.read();
+  float p5 = pot_5.read();
+  float p6 = pot_6.read();
+  float p7 = pot_7.read();
+
+  // Deactivate recording and overdub before reading buttons
+  record_on = false;
+  overdub_on = false;
+
+  // Read buttons
+  button_1.read();
+  button_2.read();
+  button_3.read();
+
+  // Set loop parameters
+  loop_start = p1;
+  loop_length = p2;
+  looper.SetLoop(loop_start, loop_length);
+
+  // Value should go 1 octave up/down (12 semitones)
+  pitch_val = 12.0f * p3;
+  pitch_shifter.SetTransposition(pitch_val);
+  res.SetFreq(10.0f + p3 * 1500.0f);
+
+  // Set other parameters
+  drywetmix = p4;
+  delaymix = p5;
+  resmix = p6;
+  res.SetStructure(p7);
+
+  // Toggle record
+  looper.SetRecording(record_on, overdub_on);
+
+  // Render UI
+  renderBuffer();
+
+  Serial.println(envelope_follower.value);
+  rgb_led.setAudioLevelIndicator(int(envelope_follower.value * 255));
+}
+
+
+void renderBuffer() {
+  double now = millis();
+  if (now - last_render > UI_FPS) {
+    display.clearDisplay();
+    
+    // Render the waveform
+    int wave_height = display.height() * 1.0f;
+    int step = buffer_length / (display.width() * WAVEFORM_OVERSAMPLING);
+    int bottom = display.height()-1;
+    // Render the waveform
+    for (int i=0; i<display.width()*WAVEFORM_OVERSAMPLING; i+=WAVEFORM_OVERSAMPLING) {
+      uint16_t x = int(i / WAVEFORM_OVERSAMPLING);
+      // Only recalculate if needed, else use cache
+      if (waveform_cache_dirty) {
+        float sig = 0.0f;
+        for (int s=0; s<WAVEFORM_OVERSAMPLING; s++) {
+          float abs_sig = buffer[step*i];
+          abs_sig = abs(abs_sig) * 100.0f;
+          sig += abs_sig;
+        }
+        sig = sig / float(WAVEFORM_OVERSAMPLING);
+        if (sig != 0.0f) {
+          sig = log10(sig)/3.6f;
+        }
+        waveform_cache[x] = int(sig * wave_height);
+      }
+      // Serial.print(waveform_cache[x]);
+      // Serial.print(",");
+      display.drawFastVLine(x, bottom, -waveform_cache[x], SH110X_WHITE);
+      display.drawFastHLine(0, bottom, display.width(), SH110X_WHITE);
+    }
+    waveform_cache_dirty = false;
+
+    // Draw Line for loop start 
+    int x_start_loop = int(loop_start * display.width());
+    display.drawLine(x_start_loop, 0, x_start_loop, bottom, SH110X_WHITE);
+    display.fillTriangle(x_start_loop, 6, x_start_loop, 0, x_start_loop+3, 0, SH110X_WHITE);
+
+    // Draw Line for Loop End
+    int x_loop_length = int(loop_length * display.width());
+    int x_loop_end = (x_start_loop + x_loop_length) % display.width();
+    display.drawLine(x_loop_end, 0, x_loop_end, bottom, SH110X_WHITE);
+    display.fillTriangle(x_loop_end, 6, x_loop_end-3, 0, x_loop_end, 0, SH110X_WHITE);
+
+    // Connecting line for start and end
+    if (x_loop_end >= x_start_loop) {
+      display.drawLine(x_start_loop, 0, x_loop_end, 0, SH110X_WHITE);
+    } else {
+      display.drawLine(x_start_loop, 0, display.width(), 0, SH110X_WHITE);
+      display.drawLine(0, 0, x_loop_end, 0, SH110X_WHITE);
+    }
+
+    // Draw Playhead
+    int x_playhead = int(looper.GetPlayhead() * display.width()) + x_start_loop;
+    display.drawLine(x_playhead, 6, x_playhead, 24, SH110X_WHITE);
+
+    // Draw Recording stuff
+    if (record_on && ! overdub_on) {
+       // Draw Rec Head
+      int x_rec_head = int(looper.GetRecHead() * display.width());
+      display.drawLine(x_rec_head, 10, x_rec_head, bottom, SH110X_WHITE);
+      display.fillCircle(x_rec_head, 10, 3, SH110X_WHITE);
+      // Record sign
+      display.fillRect(0, 0, 13, 13, SH110X_WHITE);
+      display.fillRect(2, 2, 12, 12, SH110X_WHITE);
+      display.fillRect(1, 1, 11, 11, SH110X_BLACK);
+      display.fillCircle(6, 6, 3, SH110X_WHITE);
+    }
+
+    // Draw Overdub stuff
+    if (overdub_on) {
+      // Overdub sign (a "plus")
+      display.fillRect(0, 0, 13, 13, SH110X_WHITE);
+      display.fillRect(2, 2, 12, 12, SH110X_WHITE);
+      display.fillRect(1, 1, 11, 11, SH110X_BLACK);
+      display.drawLine(6, 2, 6, 10, SH110X_WHITE);
+      display.drawLine(2, 6, 10, 6, SH110X_WHITE);
+    }
+
+    // Render potentiometer UIs in case a knob is changed
+    pot_1.renderUi();
+    pot_2.renderUi();
+    pot_3.renderUi();
+    pot_4.renderUi();
+    pot_5.renderUi();
+    pot_6.renderUi();
+    pot_7.renderUi();
+
+    // After pressing the rec mode button display info
+    if (display_rec_mode) {
+        int x_margin = 10;
+        int y_margin = 13;
+        int x_center = display.width()/2;
+        int y_center = display.height()/2;
+        // Render a rectangle Backdrop for the text
+        display.fillRect(3+x_margin, 3+y_margin, display.width()-x_margin*2, display.height()-y_margin*2, SH110X_WHITE);
+        display.fillRect(x_margin, y_margin, display.width()-x_margin*2, display.height()-y_margin*2, SH110X_WHITE);
+        display.fillRect(x_margin+1, y_margin+1, display.width()-(x_margin+1)*2, display.height()-(y_margin+1)*2, SH110X_BLACK);
+      if (rec_mode_limit_length_active) {
+       centeredText("Limit recording", x_center, y_center-4, SH110X_WHITE);
+       centeredText("to loop length", x_center, y_center+4, SH110X_WHITE);
+      } else {
+       centeredText("Record into", x_center, y_center-4, SH110X_WHITE);
+       centeredText("full buffer", x_center, y_center+4, SH110X_WHITE);
+      }
+    }
+    if (now - last_displayed_rec_mode > 500.0) {
+      display_rec_mode = false;
+    }
+
+    // Display all that stuff and store the time of the last render
+    display.display();
+    last_render = now;
+  }
+}
diff --git a/code/daisy-looper/env_follower.h b/code/daisy-looper/env_follower.h
new file mode 100644
index 0000000000000000000000000000000000000000..910ad1060c3f01453694505a6d576f8dbfd74efa
--- /dev/null
+++ b/code/daisy-looper/env_follower.h
@@ -0,0 +1,44 @@
+#ifndef Env_follower_h
+#define Env_follower_h
+#include "Arduino.h"
+
+namespace atoav {
+
+class EnvelopeFollower {
+  public:
+    void Init(float sample_rate) {
+      sample_rate = sample_rate;
+    }
+
+    void SetAttack(float attack_ms) {
+      attack = pow(0.01, 1.0 / (attack_ms * sample_rate * 0.001));
+    }
+
+    void SetDecay(float decay_ms) {
+      decay = pow(0.01, 1.0 / (decay_ms * sample_rate * 0.001));
+    }
+
+    float Process(float in) {
+      abs_value = abs(in);
+      if (abs_value > value)
+        value = attack * (value - abs_value) + abs_value;
+      else
+        value = decay * (value - abs_value) + abs_value;
+      return value;
+    }
+
+    float value = 0.0f;
+
+
+  private:
+    float sample_rate;
+    float attack;
+    float decay;
+    float abs_value = 0.0f;
+};
+};
+
+
+
+
+#endif
\ No newline at end of file
diff --git a/code/daisy-looper/helpers.h b/code/daisy-looper/helpers.h
new file mode 100644
index 0000000000000000000000000000000000000000..3148436d076744a8bd406d439dd79fcd5fd255cc
--- /dev/null
+++ b/code/daisy-looper/helpers.h
@@ -0,0 +1,20 @@
+#ifndef Helpers_h
+#define Helpers_h
+
+#include "Adafruit_SH110X.h"
+#include "Adafruit_GFX.h"
+extern Adafruit_SH1106G display;
+
+int centeredText(const char *buf, int x, int y, int color) {
+  int16_t x1, y1;
+  uint16_t w, h;
+  display.setTextColor(color);
+  display.getTextBounds(buf, 0, 0, &x1, &y1, &w, &h); //calc width of new string
+  display.setCursor(x - (w / 2), y - (h / 2));
+  display.print(buf);
+  return w;
+}
+
+
+
+#endif
\ No newline at end of file
diff --git a/daisyy/leds.h b/code/daisy-looper/leds.h
similarity index 100%
rename from daisyy/leds.h
rename to code/daisy-looper/leds.h
diff --git a/code/daisy-looper/looper.h b/code/daisy-looper/looper.h
new file mode 100644
index 0000000000000000000000000000000000000000..0d3a77dd92538172b7c46b9f883abee3fd490831
--- /dev/null
+++ b/code/daisy-looper/looper.h
@@ -0,0 +1,154 @@
+#ifndef Looper_h
+#define Looper_h
+
+namespace atoav {
+
+class Looper {
+  public:
+    void Init(float *buf, size_t length) {
+      _buffer = buf;
+      _buffer_length = length;
+      // Reset buffer contents to zero
+      memset(_buffer, 0, sizeof(float) * _buffer_length);
+    }
+
+    void SetRecording(bool is_rec_on, bool is_overdub_on) {
+      this->_is_overdub_on = is_overdub_on;
+        //Initialize recording head position on start
+        if (_rec_env_pos_inc <= 0 && is_rec_on) {
+            // _rec_head = (_loop_start + _play_head) % _buffer_length; 
+            _rec_head = (_loop_start) % _buffer_length; 
+            _is_empty = false;
+        }
+        // When record switch changes state it effectively
+        // sets ramp to rising/falling, providing a
+        // fade in/out in the beginning and at the end of 
+        // the recorded region.
+        _rec_env_pos_inc = is_rec_on ? 1 : -1;
+    }
+
+    void SetLoop(const float loop_start, const float loop_length) {
+      // Set the start of the next loop
+      _pending_loop_start = static_cast<size_t>(loop_start * (_buffer_length - 1));
+
+      // If the current loop start is not set yet, set it too
+      if (!_is_loop_set) _loop_start = _pending_loop_start;
+
+      // Set the length of the next loop
+      _pending_loop_length = max(kMinLoopLength, static_cast<size_t>(loop_length * _buffer_length));
+
+      // CHECK if this is truly good
+      _loop_length = _pending_loop_length;
+
+      //If the current loop length is not set yet, set it too
+      if (!_is_loop_set) _loop_length = _pending_loop_length;
+      _is_loop_set = true;
+    }
+  
+    float Process(float in) {
+      // Calculate iterator position on the record level ramp.
+      if (_rec_env_pos_inc > 0 && _rec_env_pos < kFadeLength
+       || _rec_env_pos_inc < 0 && _rec_env_pos > 0) {
+          _rec_env_pos += _rec_env_pos_inc;
+      }
+      // If we're in the middle of the ramp - record to the buffer.
+      if (_rec_env_pos > 0) {
+        // Calculate fade in/out
+        float rec_attenuation = static_cast<float>(_rec_env_pos) / static_cast<float>(kFadeLength);
+        if (this->_is_overdub_on) {
+          _buffer[_rec_head] += in * rec_attenuation;
+        } else {
+          _buffer[_rec_head] = in * rec_attenuation + _buffer[_rec_head] * (1.f - rec_attenuation);
+        }
+        _rec_head ++;
+
+        // Different recording modes
+        if (!_limit_rec_length) {
+          _rec_head %= _buffer_length;
+        } else {
+          // Limit rec head to stay inside the loop
+          _rec_head %= (_loop_start + _loop_length);
+          _rec_head = max(_loop_start, _rec_head);
+        }
+        
+      }
+      
+      if (_is_empty) {
+        return 0;
+      }
+
+      // Playback from the buffer
+      float attenuation = 1;
+      float output = 0;
+      //Calculate fade in/out
+      if (_play_head < kFadeLength) {
+        attenuation = static_cast<float>(_play_head) / static_cast<float>(kFadeLength);
+      }
+      else if (_play_head >= _loop_length - kFadeLength) {
+        attenuation = static_cast<float>(_loop_length - _play_head) / static_cast<float>(kFadeLength);
+      }
+      
+      // Read from the buffer
+      auto play_pos = (_loop_start + _play_head) % _buffer_length;
+      output = _buffer[play_pos] * attenuation;
+
+      // Advance playhead
+      _play_head ++;
+      if (_play_head >= _loop_length) {
+        _loop_start = _pending_loop_start;
+        _loop_length = _pending_loop_length;
+        _play_head = 0;
+      }
+      
+      return output * attenuation;
+    }
+
+    float GetPlayhead() {
+      return  float(_play_head) / float(_buffer_length);
+    }
+
+    float GetLoopStart() {
+      return  float(_loop_start) / float(_buffer_length);
+    }
+
+    float GetLoopLength() {
+      return  float(_loop_length) / float(_buffer_length);
+    }
+
+    float GetRecHead() {
+      return  float(_rec_head) / float(_buffer_length);
+    }
+
+    bool toggleRecMode() {
+      _limit_rec_length = !_limit_rec_length;
+      return _limit_rec_length;
+    }
+
+  private:
+    static const size_t kFadeLength = 20; //orig: 600
+    static const size_t kMinLoopLength = 2 * kFadeLength;
+
+    float* _buffer;
+
+    size_t _buffer_length       = 0;
+    size_t _loop_length         = 0;
+    size_t _pending_loop_length = 0;
+    size_t _loop_start          = 0;
+    size_t _pending_loop_start  = 0;
+
+    size_t _play_head = 0;
+    size_t _rec_head  = 0;
+
+    size_t _rec_env_pos      = 0;
+    int32_t _rec_env_pos_inc = 0;
+    bool _is_empty  = true;
+    bool _is_loop_set = false;
+    bool _limit_rec_length = false;
+    bool _is_overdub_on = false;
+};
+};
+
+
+
+
+#endif
\ No newline at end of file
diff --git a/code/daisy-looper/luts.h b/code/daisy-looper/luts.h
new file mode 100644
index 0000000000000000000000000000000000000000..50ca93e53268b5e6fb8f82197972f86f99c53fb0
--- /dev/null
+++ b/code/daisy-looper/luts.h
@@ -0,0 +1,10 @@
+#ifndef LUTs_h
+#define LUTs_h
+
+// Lookup Table for Exponential Curve
+int exp_lookup[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 76, 76, 76, 76, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 79, 79, 79, 79, 80, 80, 80, 80, 80, 81, 81, 81, 81, 82, 82, 82, 82, 82, 83, 83, 83, 83, 84, 84, 84, 84, 84, 85, 85, 85, 85, 86, 86, 86, 86, 86, 87, 87, 87, 87, 88, 88, 88, 88, 89, 89, 89, 89, 90, 90, 90, 90, 90, 91, 91, 91, 91, 92, 92, 92, 92, 93, 93, 93, 93, 94, 94, 94, 94, 95, 95, 95, 95, 96, 96, 96, 96, 97, 97, 97, 97, 98, 98, 98, 98, 99, 99, 99, 99, 100, 100, 100, 100, 101, 101, 101, 101, 102, 102, 102, 102, 103, 103, 103, 103, 104, 104, 104, 104, 105, 105, 105, 105, 106, 106, 106, 106, 107, 107, 107, 108, 108, 108, 108, 109, 109, 109, 109, 110, 110, 110, 110, 111, 111, 111, 112, 112, 112, 112, 113, 113, 113, 114, 114, 114, 114, 115, 115, 115, 115, 116, 116, 116, 117, 117, 117, 117, 118, 118, 118, 119, 119, 119, 119, 120, 120, 120, 121, 121, 121, 121, 122, 122, 122, 123, 123, 123, 123, 124, 124, 124, 125, 125, 125, 125, 126, 126, 126, 127, 127, 127, 128, 128, 128, 128, 129, 129, 129, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 133, 133, 133, 134, 134, 134, 135, 135, 135, 135, 136, 136, 136, 137, 137, 137, 138, 138, 138, 139, 139, 139, 140, 140, 140, 140, 141, 141, 141, 142, 142, 142, 143, 143, 143, 144, 144, 144, 145, 145, 145, 146, 146, 146, 147, 147, 147, 148, 148, 148, 149, 149, 149, 150, 150, 150, 151, 151, 151, 152, 152, 152, 153, 153, 153, 154, 154, 154, 155, 155, 155, 156, 156, 156, 157, 157, 157, 158, 158, 158, 159, 159, 159, 160, 160, 160, 161, 161, 161, 162, 162, 162, 163, 163, 164, 164, 164, 165, 165, 165, 166, 166, 166, 167, 167, 167, 168, 168, 168, 169, 169, 170, 170, 170, 171, 171, 171, 172, 172, 172, 173, 173, 174, 174, 174, 175, 175, 175, 176, 176, 176, 177, 177, 178, 178, 178, 179, 179, 179, 180, 180, 181, 181, 181, 182, 182, 182, 183, 183, 184, 184, 184, 185, 185, 186, 186, 186, 187, 187, 187, 188, 188, 189, 189, 189, 190, 190, 191, 191, 191, 192, 192, 192, 193, 193, 194, 194, 194, 195, 195, 196, 196, 196, 197, 197, 198, 198, 198, 199, 199, 200, 200, 200, 201, 201, 202, 202, 202, 203, 203, 204, 204, 204, 205, 205, 206, 206, 207, 207, 207, 208, 208, 209, 209, 209, 210, 210, 211, 211, 211, 212, 212, 213, 213, 214, 214, 214, 215, 215, 216, 216, 217, 217, 217, 218, 218, 219, 219, 219, 220, 220, 221, 221, 222, 222, 222, 223, 223, 224, 224, 225, 225, 226, 226, 226, 227, 227, 228, 228, 229, 229, 229, 230, 230, 231, 231, 232, 232, 233, 233, 233, 234, 234, 235, 235, 236, 236, 237, 237, 237, 238, 238, 239, 239, 240, 240, 241, 241, 242, 242, 242, 243, 243, 244, 244, 245, 245, 246, 246, 247, 247, 248, 248, 248, 249, 249, 250, 250, 251, 251, 252, 252, 253, 253, 254, 254, 255, 255, 255, 256, 256, 257, 257, 258, 258, 259, 259, 260, 260, 261, 261, 262, 262, 263, 263, 264, 264, 265, 265, 266, 266, 266, 267, 267, 268, 268, 269, 269, 270, 270, 271, 271, 272, 272, 273, 273, 274, 274, 275, 275, 276, 276, 277, 277, 278, 278, 279, 279, 280, 280, 281, 281, 282, 282, 283, 283, 284, 284, 285, 285, 286, 286, 287, 287, 288, 288, 289, 289, 290, 290, 291, 292, 292, 293, 293, 294, 294, 295, 295, 296, 296, 297, 297, 298, 298, 299, 299, 300, 300, 301, 301, 302, 302, 303, 304, 304, 305, 305, 306, 306, 307, 307, 308, 308, 309, 309, 310, 310, 311, 312, 312, 313, 313, 314, 314, 315, 315, 316, 316, 317, 318, 318, 319, 319, 320, 320, 321, 321, 322, 322, 323, 324, 324, 325, 325, 326, 326, 327, 327, 328, 329, 329, 330, 330, 331, 331, 332, 333, 333, 334, 334, 335, 335, 336, 336, 337, 338, 338, 339, 339, 340, 340, 341, 342, 342, 343, 343, 344, 344, 345, 346, 346, 347, 347, 348, 349, 349, 350, 350, 351, 351, 352, 353, 353, 354, 354, 355, 356, 356, 357, 357, 358, 359, 359, 360, 360, 361, 361, 362, 363, 363, 364, 364, 365, 366, 366, 367, 367, 368, 369, 369, 370, 370, 371, 372, 372, 373, 374, 374, 375, 375, 376, 377, 377, 378, 378, 379, 380, 380, 381, 381, 382, 383, 383, 384, 385, 385, 386, 386, 387, 388, 388, 389, 390, 390, 391, 391, 392, 393, 393, 394, 395, 395, 396, 396, 397, 398, 398, 399, 400, 400, 401, 402, 402, 403, 403, 404, 405, 405, 406, 407, 407, 408, 409, 409, 410, 411, 411, 412, 413, 413, 414, 414, 415, 416, 416, 417, 418, 418, 419, 420, 420, 421, 422, 422, 423, 424, 424, 425, 426, 426, 427, 428, 428, 429, 430, 430, 431, 432, 432, 433, 434, 434, 435, 436, 436, 437, 438, 438, 439, 440, 440, 441, 442, 442, 443, 444, 445, 445, 446, 447, 447, 448, 449, 449, 450, 451, 451, 452, 453, 453, 454, 455, 456, 456, 457, 458, 458, 459, 460, 460, 461, 462, 463, 463, 464, 465, 465, 466, 467, 467, 468, 469, 470, 470, 471, 472, 472, 473, 474, 475, 475, 476, 477, 477, 478, 479, 480, 480, 481, 482, 482, 483, 484, 485, 485, 486, 487, 488, 488, 489, 490, 490, 491, 492, 493, 493, 494, 495, 496, 496, 497, 498, 498, 499, 500, 501, 501, 502, 503, 504, 504, 505, 506, 507, 507, 508, 509, 510, 510, 511, 512, 513, 513, 514, 515, 516, 516, 517, 518, 519, 519, 520, 521, 522, 522, 523, 524, 525, 526, 526, 527, 528, 529, 529, 530, 531, 532, 532, 533, 534, 535, 535, 536, 537, 538, 539, 539, 540, 541, 542, 542, 543, 544, 545, 546, 546, 547, 548, 549, 550, 550, 551, 552, 553, 553, 554, 555, 556, 557, 557, 558, 559, 560, 561, 561, 562, 563, 564, 565, 565, 566, 567, 568, 569, 569, 570, 571, 572, 573, 573, 574, 575, 576, 577, 578, 578, 579, 580, 581, 582, 582, 583, 584, 585, 586, 587, 587, 588, 589, 590, 591, 591, 592, 593, 594, 595, 596, 596, 597, 598, 599, 600, 601, 601, 602, 603, 604, 605, 606, 606, 607, 608, 609, 610, 611, 612, 612, 613, 614, 615, 616, 617, 617, 618, 619, 620, 621, 622, 623, 623, 624, 625, 626, 627, 628, 629, 629, 630, 631, 632, 633, 634, 635, 636, 636, 637, 638, 639, 640, 641, 642, 642, 643, 644, 645, 646, 647, 648, 649, 649, 650, 651, 652, 653, 654, 655, 656, 657, 657, 658, 659, 660, 661, 662, 663, 664, 665, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 923, 924, 925, 926, 927, 928, 929, 930, 932, 933, 934, 935, 936, 937, 938, 939, 940, 942, 943, 944, 945, 946, 947, 948, 950, 951, 952, 953, 954, 955, 956, 957, 959, 960, 961, 962, 963, 964, 965, 967, 968, 969, 970, 971, 972, 974, 975, 976, 977, 978, 979, 980, 982, 983, 984, 985, 986, 987, 989, 990, 991, 992, 993, 994, 996, 997, 998, 999, 1000, 1001, 1003, 1004, 1005, 1006, 1007, 1008, 1010, 1011, 1012, 1013, 1014, 1016, 1017, 1018, 1019, 1020, 1021, 1023, 1024, 1025, 1026, 1027, 1029, 1030, 1031, 1032, 1033, 1035, 1036, 1037, 1038, 1039, 1041, 1042, 1043, 1044, 1045, 1047, 1048, 1049, 1050, 1052, 1053, 1054, 1055, 1056, 1058, 1059, 1060, 1061, 1062, 1064, 1065, 1066, 1067, 1069, 1070, 1071, 1072, 1073, 1075, 1076, 1077, 1078, 1080, 1081, 1082, 1083, 1085, 1086, 1087, 1088, 1090, 1091, 1092, 1093, 1095, 1096, 1097, 1098, 1100, 1101, 1102, 1103, 1105, 1106, 1107, 1108, 1110, 1111, 1112, 1113, 1115, 1116, 1117, 1118, 1120, 1121, 1122, 1123, 1125, 1126, 1127, 1128, 1130, 1131, 1132, 1134, 1135, 1136, 1137, 1139, 1140, 1141, 1143, 1144, 1145, 1146, 1148, 1149, 1150, 1152, 1153, 1154, 1155, 1157, 1158, 1159, 1161, 1162, 1163, 1164, 1166, 1167, 1168, 1170, 1171, 1172, 1174, 1175, 1176, 1177, 1179, 1180, 1181, 1183, 1184, 1185, 1187, 1188, 1189, 1191, 1192, 1193, 1195, 1196, 1197, 1199, 1200, 1201, 1202, 1204, 1205, 1206, 1208, 1209, 1210, 1212, 1213, 1214, 1216, 1217, 1218, 1220, 1221, 1222, 1224, 1225, 1227, 1228, 1229, 1231, 1232, 1233, 1235, 1236, 1237, 1239, 1240, 1241, 1243, 1244, 1245, 1247, 1248, 1249, 1251, 1252, 1254, 1255, 1256, 1258, 1259, 1260, 1262, 1263, 1265, 1266, 1267, 1269, 1270, 1271, 1273, 1274, 1276, 1277, 1278, 1280, 1281, 1282, 1284, 1285, 1287, 1288, 1289, 1291, 1292, 1294, 1295, 1296, 1298, 1299, 1301, 1302, 1303, 1305, 1306, 1307, 1309, 1310, 1312, 1313, 1315, 1316, 1317, 1319, 1320, 1322, 1323, 1324, 1326, 1327, 1329, 1330, 1331, 1333, 1334, 1336, 1337, 1339, 1340, 1341, 1343, 1344, 1346, 1347, 1349, 1350, 1351, 1353, 1354, 1356, 1357, 1359, 1360, 1361, 1363, 1364, 1366, 1367, 1369, 1370, 1372, 1373, 1375, 1376, 1377, 1379, 1380, 1382, 1383, 1385, 1386, 1388, 1389, 1391, 1392, 1393, 1395, 1396, 1398, 1399, 1401, 1402, 1404, 1405, 1407, 1408, 1410, 1411, 1413, 1414, 1415, 1417, 1418, 1420, 1421, 1423, 1424, 1426, 1427, 1429, 1430, 1432, 1433, 1435, 1436, 1438, 1439, 1441, 1442, 1444, 1445, 1447, 1448, 1450, 1451, 1453, 1454, 1456, 1457, 1459, 1460, 1462, 1463, 1465, 1466, 1468, 1469, 1471, 1472, 1474, 1475, 1477, 1478, 1480, 1482, 1483, 1485, 1486, 1488, 1489, 1491, 1492, 1494, 1495, 1497, 1498, 1500, 1501, 1503, 1504, 1506, 1508, 1509, 1511, 1512, 1514, 1515, 1517, 1518, 1520, 1521, 1523, 1525, 1526, 1528, 1529, 1531, 1532, 1534, 1535, 1537, 1539, 1540, 1542, 1543, 1545, 1546, 1548, 1550, 1551, 1553, 1554, 1556, 1557, 1559, 1561, 1562, 1564, 1565, 1567, 1568, 1570, 1572, 1573, 1575, 1576, 1578, 1580, 1581, 1583, 1584, 1586, 1588, 1589, 1591, 1592, 1594, 1596, 1597, 1599, 1600, 1602, 1604, 1605, 1607, 1608, 1610, 1612, 1613, 1615, 1616, 1618, 1620, 1621, 1623, 1625, 1626, 1628, 1629, 1631, 1633, 1634, 1636, 1638, 1639, 1641, 1642, 1644, 1646, 1647, 1649, 1651, 1652, 1654, 1656, 1657, 1659, 1660, 1662, 1664, 1665, 1667, 1669, 1670, 1672, 1674, 1675, 1677, 1679, 1680, 1682, 1684, 1685, 1687, 1689, 1690, 1692, 1694, 1695, 1697, 1699, 1700, 1702, 1704, 1705, 1707, 1709, 1710, 1712, 1714, 1715, 1717, 1719, 1720, 1722, 1724, 1725, 1727, 1729, 1730, 1732, 1734, 1736, 1737, 1739, 1741, 1742, 1744, 1746, 1747, 1749, 1751, 1753, 1754, 1756, 1758, 1759, 1761, 1763, 1764, 1766, 1768, 1770, 1771, 1773, 1775, 1776, 1778, 1780, 1782, 1783, 1785, 1787, 1789, 1790, 1792, 1794, 1795, 1797, 1799, 1801, 1802, 1804, 1806, 1808, 1809, 1811, 1813, 1815, 1816, 1818, 1820, 1822, 1823, 1825, 1827, 1829, 1830, 1832, 1834, 1836, 1837, 1839, 1841, 1843, 1844, 1846, 1848, 1850, 1851, 1853, 1855, 1857, 1859, 1860, 1862, 1864, 1866, 1867, 1869, 1871, 1873, 1875, 1876, 1878, 1880, 1882, 1883, 1885, 1887, 1889, 1891, 1892, 1894, 1896, 1898, 1900, 1901, 1903, 1905, 1907, 1909, 1910, 1912, 1914, 1916, 1918, 1919, 1921, 1923, 1925, 1927, 1929, 1930, 1932, 1934, 1936, 1938, 1939, 1941, 1943, 1945, 1947, 1949, 1950, 1952, 1954, 1956, 1958, 1960, 1961, 1963, 1965, 1967, 1969, 1971, 1972, 1974, 1976, 1978, 1980, 1982, 1984, 1985, 1987, 1989, 1991, 1993, 1995, 1997, 1998, 2000, 2002, 2004, 2006, 2008, 2010, 2011, 2013, 2015, 2017, 2019, 2021, 2023, 2025, 2026, 2028, 2030, 2032, 2034, 2036, 2038, 2040, 2041, 2043, 2045, 2047, 2049, 2051, 2053, 2055, 2057, 2058, 2060, 2062, 2064, 2066, 2068, 2070, 2072, 2074, 2076, 2078, 2079, 2081, 2083, 2085, 2087, 2089, 2091, 2093, 2095, 2097, 2099, 2100, 2102, 2104, 2106, 2108, 2110, 2112, 2114, 2116, 2118, 2120, 2122, 2124, 2126, 2128, 2129, 2131, 2133, 2135, 2137, 2139, 2141, 2143, 2145, 2147, 2149, 2151, 2153, 2155, 2157, 2159, 2161, 2163, 2165, 2167, 2169, 2170, 2172, 2174, 2176, 2178, 2180, 2182, 2184, 2186, 2188, 2190, 2192, 2194, 2196, 2198, 2200, 2202, 2204, 2206, 2208, 2210, 2212, 2214, 2216, 2218, 2220, 2222, 2224, 2226, 2228, 2230, 2232, 2234, 2236, 2238, 2240, 2242, 2244, 2246, 2248, 2250, 2252, 2254, 2256, 2258, 2260, 2262, 2264, 2266, 2268, 2270, 2272, 2274, 2276, 2278, 2280, 2282, 2284, 2286, 2289, 2291, 2293, 2295, 2297, 2299, 2301, 2303, 2305, 2307, 2309, 2311, 2313, 2315, 2317, 2319, 2321, 2323, 2325, 2327, 2329, 2332, 2334, 2336, 2338, 2340, 2342, 2344, 2346, 2348, 2350, 2352, 2354, 2356, 2358, 2361, 2363, 2365, 2367, 2369, 2371, 2373, 2375, 2377, 2379, 2381, 2383, 2386, 2388, 2390, 2392, 2394, 2396, 2398, 2400, 2402, 2404, 2407, 2409, 2411, 2413, 2415, 2417, 2419, 2421, 2423, 2426, 2428, 2430, 2432, 2434, 2436, 2438, 2440, 2442, 2445, 2447, 2449, 2451, 2453, 2455, 2457, 2460, 2462, 2464, 2466, 2468, 2470, 2472, 2475, 2477, 2479, 2481, 2483, 2485, 2487, 2490, 2492, 2494, 2496, 2498, 2500, 2503, 2505, 2507, 2509, 2511, 2513, 2515, 2518, 2520, 2522, 2524, 2526, 2529, 2531, 2533, 2535, 2537, 2539, 2542, 2544, 2546, 2548, 2550, 2553, 2555, 2557, 2559, 2561, 2564, 2566, 2568, 2570, 2572, 2574, 2577, 2579, 2581, 2583, 2586, 2588, 2590, 2592, 2594, 2597, 2599, 2601, 2603, 2605, 2608, 2610, 2612, 2614, 2617, 2619, 2621, 2623, 2625, 2628, 2630, 2632, 2634, 2637, 2639, 2641, 2643, 2646, 2648, 2650, 2652, 2655, 2657, 2659, 2661, 2664, 2666, 2668, 2670, 2673, 2675, 2677, 2679, 2682, 2684, 2686, 2688, 2691, 2693, 2695, 2698, 2700, 2702, 2704, 2707, 2709, 2711, 2713, 2716, 2718, 2720, 2723, 2725, 2727, 2729, 2732, 2734, 2736, 2739, 2741, 2743, 2746, 2748, 2750, 2752, 2755, 2757, 2759, 2762, 2764, 2766, 2769, 2771, 2773, 2776, 2778, 2780, 2782, 2785, 2787, 2789, 2792, 2794, 2796, 2799, 2801, 2803, 2806, 2808, 2810, 2813, 2815, 2817, 2820, 2822, 2824, 2827, 2829, 2831, 2834, 2836, 2838, 2841, 2843, 2846, 2848, 2850, 2853, 2855, 2857, 2860, 2862, 2864, 2867, 2869, 2872, 2874, 2876, 2879, 2881, 2883, 2886, 2888, 2891, 2893, 2895, 2898, 2900, 2902, 2905, 2907, 2910, 2912, 2914, 2917, 2919, 2922, 2924, 2926, 2929, 2931, 2934, 2936, 2938, 2941, 2943, 2946, 2948, 2950, 2953, 2955, 2958, 2960, 2962, 2965, 2967, 2970, 2972, 2975, 2977, 2979, 2982, 2984, 2987, 2989, 2992, 2994, 2996, 2999, 3001, 3004, 3006, 3009, 3011, 3014, 3016, 3018, 3021, 3023, 3026, 3028, 3031, 3033, 3036, 3038, 3041, 3043, 3045, 3048, 3050, 3053, 3055, 3058, 3060, 3063, 3065, 3068, 3070, 3073, 3075, 3078, 3080, 3083, 3085, 3087, 3090, 3092, 3095, 3097, 3100, 3102, 3105, 3107, 3110, 3112, 3115, 3117, 3120, 3122, 3125, 3127, 3130, 3132, 3135, 3137, 3140, 3143, 3145, 3148, 3150, 3153, 3155, 3158, 3160, 3163, 3165, 3168, 3170, 3173, 3175, 3178, 3180, 3183, 3185, 3188, 3191, 3193, 3196, 3198, 3201, 3203, 3206, 3208, 3211, 3213, 3216, 3219, 3221, 3224, 3226, 3229, 3231, 3234, 3236, 3239, 3242, 3244, 3247, 3249, 3252, 3254, 3257, 3260, 3262, 3265, 3267, 3270, 3273, 3275, 3278, 3280, 3283, 3285, 3288, 3291, 3293, 3296, 3298, 3301, 3304, 3306, 3309, 3311, 3314, 3317, 3319, 3322, 3324, 3327, 3330, 3332, 3335, 3338, 3340, 3343, 3345, 3348, 3351, 3353, 3356, 3359, 3361, 3364, 3366, 3369, 3372, 3374, 3377, 3380, 3382, 3385, 3388, 3390, 3393, 3395, 3398, 3401, 3403, 3406, 3409, 3411, 3414, 3417, 3419, 3422, 3425, 3427, 3430, 3433, 3435, 3438, 3441, 3443, 3446, 3449, 3451, 3454, 3457, 3459, 3462, 3465, 3467, 3470, 3473, 3476, 3478, 3481, 3484, 3486, 3489, 3492, 3494, 3497, 3500, 3503, 3505, 3508, 3511, 3513, 3516, 3519, 3521, 3524, 3527, 3530, 3532, 3535, 3538, 3541, 3543, 3546, 3549, 3551, 3554, 3557, 3560, 3562, 3565, 3568, 3571, 3573, 3576, 3579, 3582, 3584, 3587, 3590, 3592, 3595, 3598, 3601, 3604, 3606, 3609, 3612, 3615, 3617, 3620, 3623, 3626, 3628, 3631, 3634, 3637, 3639, 3642, 3645, 3648, 3651, 3653, 3656, 3659, 3662, 3664, 3667, 3670, 3673, 3676, 3678, 3681, 3684, 3687, 3690, 3692, 3695, 3698, 3701, 3704, 3706, 3709, 3712, 3715, 3718, 3720, 3723, 3726, 3729, 3732, 3735, 3737, 3740, 3743, 3746, 3749, 3752, 3754, 3757, 3760, 3763, 3766, 3769, 3771, 3774, 3777, 3780, 3783, 3786, 3788, 3791, 3794, 3797, 3800, 3803, 3806, 3808, 3811, 3814, 3817, 3820, 3823, 3826, 3828, 3831, 3834, 3837, 3840, 3843, 3846, 3849, 3851, 3854, 3857, 3860, 3863, 3866, 3869, 3872, 3875, 3877, 3880, 3883, 3886, 3889, 3892, 3895, 3898, 3901, 3904, 3906, 3909, 3912, 3915, 3918, 3921, 3924, 3927, 3930, 3933, 3936, 3939, 3941, 3944, 3947, 3950, 3953, 3956, 3959, 3962, 3965, 3968, 3971, 3974, 3977, 3980, 3983, 3985, 3988, 3991, 3994, 3997, 4000, 4003, 4006, 4009, 4012, 4015, 4018, 4021, 4024, 4027, 4030, 4033, 4036, 4039, 4042, 4045, 4048, 4051, 4054, 4057, 4060, 4063, 4066, 4069, 4072, 4075, 4078, 4081, 4084, 4087, 4090, 4093, 4096};
+
+// Lookup Table for Bipolar Curve with deadband
+int bip_lookup[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 33, 35, 36, 37, 38, 39, 40, 41, 43, 44, 45, 46, 47, 48, 49, 51, 52, 53, 54, 55, 56, 57, 59, 60, 61, 62, 63, 64, 65, 67, 68, 69, 70, 71, 72, 73, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 91, 92, 93, 94, 95, 96, 97, 98, 100, 101, 102, 103, 104, 105, 106, 108, 109, 110, 111, 112, 113, 114, 116, 117, 118, 119, 120, 121, 122, 124, 125, 126, 127, 128, 129, 130, 132, 133, 134, 135, 136, 137, 138, 140, 141, 142, 143, 144, 145, 146, 148, 149, 150, 151, 152, 153, 154, 156, 157, 158, 159, 160, 161, 162, 164, 165, 166, 167, 168, 169, 170, 172, 173, 174, 175, 176, 177, 178, 180, 181, 182, 183, 184, 185, 186, 188, 189, 190, 191, 192, 193, 194, 196, 197, 198, 199, 200, 201, 202, 204, 205, 206, 207, 208, 209, 210, 212, 213, 214, 215, 216, 217, 218, 220, 221, 222, 223, 224, 225, 226, 228, 229, 230, 231, 232, 233, 234, 235, 237, 238, 239, 240, 241, 242, 243, 245, 246, 247, 248, 249, 250, 251, 253, 254, 255, 256, 257, 258, 259, 261, 262, 263, 264, 265, 266, 267, 269, 270, 271, 272, 273, 274, 275, 277, 278, 279, 280, 281, 282, 283, 285, 286, 287, 288, 289, 290, 291, 293, 294, 295, 296, 297, 298, 299, 301, 302, 303, 304, 305, 306, 307, 309, 310, 311, 312, 313, 314, 315, 317, 318, 319, 320, 321, 322, 323, 325, 326, 327, 328, 329, 330, 331, 333, 334, 335, 336, 337, 338, 339, 341, 342, 343, 344, 345, 346, 347, 349, 350, 351, 352, 353, 354, 355, 357, 358, 359, 360, 361, 362, 363, 365, 366, 367, 368, 369, 370, 371, 372, 374, 375, 376, 377, 378, 379, 380, 382, 383, 384, 385, 386, 387, 388, 390, 391, 392, 393, 394, 395, 396, 398, 399, 400, 401, 402, 403, 404, 406, 407, 408, 409, 410, 411, 412, 414, 415, 416, 417, 418, 419, 420, 422, 423, 424, 425, 426, 427, 428, 430, 431, 432, 433, 434, 435, 436, 438, 439, 440, 441, 442, 443, 444, 446, 447, 448, 449, 450, 451, 452, 454, 455, 456, 457, 458, 459, 460, 462, 463, 464, 465, 466, 467, 468, 470, 471, 472, 473, 474, 475, 476, 478, 479, 480, 481, 482, 483, 484, 486, 487, 488, 489, 490, 491, 492, 494, 495, 496, 497, 498, 499, 500, 502, 503, 504, 505, 506, 507, 508, 509, 511, 512, 513, 514, 515, 516, 517, 519, 520, 521, 522, 523, 524, 525, 527, 528, 529, 530, 531, 532, 533, 535, 536, 537, 538, 539, 540, 541, 543, 544, 545, 546, 547, 548, 549, 551, 552, 553, 554, 555, 556, 557, 559, 560, 561, 562, 563, 564, 565, 567, 568, 569, 570, 571, 572, 573, 575, 576, 577, 578, 579, 580, 581, 583, 584, 585, 586, 587, 588, 589, 591, 592, 593, 594, 595, 596, 597, 599, 600, 601, 602, 603, 604, 605, 607, 608, 609, 610, 611, 612, 613, 615, 616, 617, 618, 619, 620, 621, 623, 624, 625, 626, 627, 628, 629, 631, 632, 633, 634, 635, 636, 637, 639, 640, 641, 642, 643, 644, 645, 646, 648, 649, 650, 651, 652, 653, 654, 656, 657, 658, 659, 660, 661, 662, 664, 665, 666, 667, 668, 669, 670, 672, 673, 674, 675, 676, 677, 678, 680, 681, 682, 683, 684, 685, 686, 688, 689, 690, 691, 692, 693, 694, 696, 697, 698, 699, 700, 701, 702, 704, 705, 706, 707, 708, 709, 710, 712, 713, 714, 715, 716, 717, 718, 720, 721, 722, 723, 724, 725, 726, 728, 729, 730, 731, 732, 733, 734, 736, 737, 738, 739, 740, 741, 742, 744, 745, 746, 747, 748, 749, 750, 752, 753, 754, 755, 756, 757, 758, 760, 761, 762, 763, 764, 765, 766, 768, 769, 770, 771, 772, 773, 774, 776, 777, 778, 779, 780, 781, 782, 783, 785, 786, 787, 788, 789, 790, 791, 793, 794, 795, 796, 797, 798, 799, 801, 802, 803, 804, 805, 806, 807, 809, 810, 811, 812, 813, 814, 815, 817, 818, 819, 820, 821, 822, 823, 825, 826, 827, 828, 829, 830, 831, 833, 834, 835, 836, 837, 838, 839, 841, 842, 843, 844, 845, 846, 847, 849, 850, 851, 852, 853, 854, 855, 857, 858, 859, 860, 861, 862, 863, 865, 866, 867, 868, 869, 870, 871, 873, 874, 875, 876, 877, 878, 879, 881, 882, 883, 884, 885, 886, 887, 889, 890, 891, 892, 893, 894, 895, 897, 898, 899, 900, 901, 902, 903, 905, 906, 907, 908, 909, 910, 911, 913, 914, 915, 916, 917, 918, 919, 920, 922, 923, 924, 925, 926, 927, 928, 930, 931, 932, 933, 934, 935, 936, 938, 939, 940, 941, 942, 943, 944, 946, 947, 948, 949, 950, 951, 952, 954, 955, 956, 957, 958, 959, 960, 962, 963, 964, 965, 966, 967, 968, 970, 971, 972, 973, 974, 975, 976, 978, 979, 980, 981, 982, 983, 984, 986, 987, 988, 989, 990, 991, 992, 994, 995, 996, 997, 998, 999, 1000, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1067, 1068, 1069, 1070, 1071, 1072, 1073, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1083, 1084, 1085, 1086, 1087, 1088, 1089, 1091, 1092, 1093, 1094, 1095, 1096, 1097, 1099, 1100, 1101, 1102, 1103, 1104, 1105, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1115, 1116, 1117, 1118, 1119, 1120, 1121, 1123, 1124, 1125, 1126, 1127, 1128, 1129, 1131, 1132, 1133, 1134, 1135, 1136, 1137, 1139, 1140, 1141, 1142, 1143, 1144, 1145, 1147, 1148, 1149, 1150, 1151, 1152, 1153, 1155, 1156, 1157, 1158, 1159, 1160, 1161, 1163, 1164, 1165, 1166, 1167, 1168, 1169, 1171, 1172, 1173, 1174, 1175, 1176, 1177, 1179, 1180, 1181, 1182, 1183, 1184, 1185, 1187, 1188, 1189, 1190, 1191, 1192, 1193, 1194, 1196, 1197, 1198, 1199, 1200, 1201, 1202, 1204, 1205, 1206, 1207, 1208, 1209, 1210, 1212, 1213, 1214, 1215, 1216, 1217, 1218, 1220, 1221, 1222, 1223, 1224, 1225, 1226, 1228, 1229, 1230, 1231, 1232, 1233, 1234, 1236, 1237, 1238, 1239, 1240, 1241, 1242, 1244, 1245, 1246, 1247, 1248, 1249, 1250, 1252, 1253, 1254, 1255, 1256, 1257, 1258, 1260, 1261, 1262, 1263, 1264, 1265, 1266, 1268, 1269, 1270, 1271, 1272, 1273, 1274, 1276, 1277, 1278, 1279, 1280, 1281, 1282, 1284, 1285, 1286, 1287, 1288, 1289, 1290, 1292, 1293, 1294, 1295, 1296, 1297, 1298, 1300, 1301, 1302, 1303, 1304, 1305, 1306, 1308, 1309, 1310, 1311, 1312, 1313, 1314, 1316, 1317, 1318, 1319, 1320, 1321, 1322, 1324, 1325, 1326, 1327, 1328, 1329, 1330, 1331, 1333, 1334, 1335, 1336, 1337, 1338, 1339, 1341, 1342, 1343, 1344, 1345, 1346, 1347, 1349, 1350, 1351, 1352, 1353, 1354, 1355, 1357, 1358, 1359, 1360, 1361, 1362, 1363, 1365, 1366, 1367, 1368, 1369, 1370, 1371, 1373, 1374, 1375, 1376, 1377, 1378, 1379, 1381, 1382, 1383, 1384, 1385, 1386, 1387, 1389, 1390, 1391, 1392, 1393, 1394, 1395, 1397, 1398, 1399, 1400, 1401, 1402, 1403, 1405, 1406, 1407, 1408, 1409, 1410, 1411, 1413, 1414, 1415, 1416, 1417, 1418, 1419, 1421, 1422, 1423, 1424, 1425, 1426, 1427, 1429, 1430, 1431, 1432, 1433, 1434, 1435, 1437, 1438, 1439, 1440, 1441, 1442, 1443, 1445, 1446, 1447, 1448, 1449, 1450, 1451, 1453, 1454, 1455, 1456, 1457, 1458, 1459, 1461, 1462, 1463, 1464, 1465, 1466, 1467, 1468, 1470, 1471, 1472, 1473, 1474, 1475, 1476, 1478, 1479, 1480, 1481, 1482, 1483, 1484, 1486, 1487, 1488, 1489, 1490, 1491, 1492, 1494, 1495, 1496, 1497, 1498, 1499, 1500, 1502, 1503, 1504, 1505, 1506, 1507, 1508, 1510, 1511, 1512, 1513, 1514, 1515, 1516, 1518, 1519, 1520, 1521, 1522, 1523, 1524, 1526, 1527, 1528, 1529, 1530, 1531, 1532, 1534, 1535, 1536, 1537, 1538, 1539, 1540, 1542, 1543, 1544, 1545, 1546, 1547, 1548, 1550, 1551, 1552, 1553, 1554, 1555, 1556, 1558, 1559, 1560, 1561, 1562, 1563, 1564, 1566, 1567, 1568, 1569, 1570, 1571, 1572, 1574, 1575, 1576, 1577, 1578, 1579, 1580, 1582, 1583, 1584, 1585, 1586, 1587, 1588, 1590, 1591, 1592, 1593, 1594, 1595, 1596, 1598, 1599, 1600, 1601, 1602, 1603, 1604, 1605, 1607, 1608, 1609, 1610, 1611, 1612, 1613, 1615, 1616, 1617, 1618, 1619, 1620, 1621, 1623, 1624, 1625, 1626, 1627, 1628, 1629, 1631, 1632, 1633, 1634, 1635, 1636, 1637, 1639, 1640, 1641, 1642, 1643, 1644, 1645, 1647, 1648, 1649, 1650, 1651, 1652, 1653, 1655, 1656, 1657, 1658, 1659, 1660, 1661, 1663, 1664, 1665, 1666, 1667, 1668, 1669, 1671, 1672, 1673, 1674, 1675, 1676, 1677, 1679, 1680, 1681, 1682, 1683, 1684, 1685, 1687, 1688, 1689, 1690, 1691, 1692, 1693, 1695, 1696, 1697, 1698, 1699, 1700, 1701, 1703, 1704, 1705, 1706, 1707, 1708, 1709, 1711, 1712, 1713, 1714, 1715, 1716, 1717, 1719, 1720, 1721, 1722, 1723, 1724, 1725, 1727, 1728, 1729, 1730, 1731, 1732, 1733, 1735, 1736, 1737, 1738, 1739, 1740, 1741, 1742, 1744, 1745, 1746, 1747, 1748, 1749, 1750, 1752, 1753, 1754, 1755, 1756, 1757, 1758, 1760, 1761, 1762, 1763, 1764, 1765, 1766, 1768, 1769, 1770, 1771, 1772, 1773, 1774, 1776, 1777, 1778, 1779, 1780, 1781, 1782, 1784, 1785, 1786, 1787, 1788, 1789, 1790, 1792, 1793, 1794, 1795, 1796, 1797, 1798, 1800, 1801, 1802, 1803, 1804, 1805, 1806, 1808, 1809, 1810, 1811, 1812, 1813, 1814, 1816, 1817, 1818, 1819, 1820, 1821, 1822, 1824, 1825, 1826, 1827, 1828, 1829, 1830, 1832, 1833, 1834, 1835, 1836, 1837, 1838, 1840, 1841, 1842, 1843, 1844, 1845, 1846, 1848, 1849, 1850, 1851, 1852, 1853, 1854, 1856, 1857, 1858, 1859, 1860, 1861, 1862, 1864, 1865, 1866, 1867, 1868, 1869, 1870, 1872, 1873, 1874, 1875, 1876, 1877, 1878, 1879, 1881, 1882, 1883, 1884, 1885, 1886, 1887, 1889, 1890, 1891, 1892, 1893, 1894, 1895, 1897, 1898, 1899, 1900, 1901, 1902, 1903, 1905, 1906, 1907, 1908, 1909, 1910, 1911, 1913, 1914, 1915, 1916, 1917, 1918, 1919, 1921, 1922, 1923, 1924, 1925, 1926, 1927, 1929, 1930, 1931, 1932, 1933, 1934, 1935, 1937, 1938, 1939, 1940, 1941, 1942, 1943, 1945, 1946, 1947, 1948, 1949, 1950, 1951, 1953, 1954, 1955, 1956, 1957, 1958, 1959, 1961, 1962, 1963, 1964, 1965, 1966, 1967, 1969, 1970, 1971, 1972, 1973, 1974, 1975, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2026, 2027, 2028, 2029, 2030, 2031, 2032, 2034, 2035, 2036, 2037, 2038, 2039, 2040, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2049, 2050, 2051, 2052, 2053, 2055, 2056, 2057, 2058, 2059, 2060, 2061, 2063, 2064, 2065, 2066, 2067, 2068, 2069, 2071, 2072, 2073, 2074, 2075, 2076, 2077, 2079, 2080, 2081, 2082, 2083, 2084, 2085, 2086, 2088, 2089, 2090, 2091, 2092, 2093, 2094, 2096, 2097, 2098, 2099, 2100, 2101, 2102, 2104, 2105, 2106, 2107, 2108, 2109, 2110, 2112, 2113, 2114, 2115, 2116, 2117, 2118, 2120, 2121, 2122, 2123, 2124, 2125, 2126, 2128, 2129, 2130, 2131, 2132, 2133, 2134, 2136, 2137, 2138, 2139, 2140, 2141, 2142, 2144, 2145, 2146, 2147, 2148, 2149, 2150, 2152, 2153, 2154, 2155, 2156, 2157, 2158, 2160, 2161, 2162, 2163, 2164, 2165, 2166, 2168, 2169, 2170, 2171, 2172, 2173, 2174, 2176, 2177, 2178, 2179, 2180, 2181, 2182, 2184, 2185, 2186, 2187, 2188, 2189, 2190, 2192, 2193, 2194, 2195, 2196, 2197, 2198, 2200, 2201, 2202, 2203, 2204, 2205, 2206, 2208, 2209, 2210, 2211, 2212, 2213, 2214, 2216, 2217, 2218, 2219, 2220, 2221, 2222, 2223, 2225, 2226, 2227, 2228, 2229, 2230, 2231, 2233, 2234, 2235, 2236, 2237, 2238, 2239, 2241, 2242, 2243, 2244, 2245, 2246, 2247, 2249, 2250, 2251, 2252, 2253, 2254, 2255, 2257, 2258, 2259, 2260, 2261, 2262, 2263, 2265, 2266, 2267, 2268, 2269, 2270, 2271, 2273, 2274, 2275, 2276, 2277, 2278, 2279, 2281, 2282, 2283, 2284, 2285, 2286, 2287, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2297, 2298, 2299, 2300, 2301, 2302, 2303, 2305, 2306, 2307, 2308, 2309, 2310, 2311, 2313, 2314, 2315, 2316, 2317, 2318, 2319, 2321, 2322, 2323, 2324, 2325, 2326, 2327, 2329, 2330, 2331, 2332, 2333, 2334, 2335, 2337, 2338, 2339, 2340, 2341, 2342, 2343, 2345, 2346, 2347, 2348, 2349, 2350, 2351, 2353, 2354, 2355, 2356, 2357, 2358, 2359, 2360, 2362, 2363, 2364, 2365, 2366, 2367, 2368, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2378, 2379, 2380, 2381, 2382, 2383, 2384, 2386, 2387, 2388, 2389, 2390, 2391, 2392, 2394, 2395, 2396, 2397, 2398, 2399, 2400, 2402, 2403, 2404, 2405, 2406, 2407, 2408, 2410, 2411, 2412, 2413, 2414, 2415, 2416, 2418, 2419, 2420, 2421, 2422, 2423, 2424, 2426, 2427, 2428, 2429, 2430, 2431, 2432, 2434, 2435, 2436, 2437, 2438, 2439, 2440, 2442, 2443, 2444, 2445, 2446, 2447, 2448, 2450, 2451, 2452, 2453, 2454, 2455, 2456, 2458, 2459, 2460, 2461, 2462, 2463, 2464, 2466, 2467, 2468, 2469, 2470, 2471, 2472, 2474, 2475, 2476, 2477, 2478, 2479, 2480, 2482, 2483, 2484, 2485, 2486, 2487, 2488, 2490, 2491, 2492, 2493, 2494, 2495, 2496, 2497, 2499, 2500, 2501, 2502, 2503, 2504, 2505, 2507, 2508, 2509, 2510, 2511, 2512, 2513, 2515, 2516, 2517, 2518, 2519, 2520, 2521, 2523, 2524, 2525, 2526, 2527, 2528, 2529, 2531, 2532, 2533, 2534, 2535, 2536, 2537, 2539, 2540, 2541, 2542, 2543, 2544, 2545, 2547, 2548, 2549, 2550, 2551, 2552, 2553, 2555, 2556, 2557, 2558, 2559, 2560, 2561, 2563, 2564, 2565, 2566, 2567, 2568, 2569, 2571, 2572, 2573, 2574, 2575, 2576, 2577, 2579, 2580, 2581, 2582, 2583, 2584, 2585, 2587, 2588, 2589, 2590, 2591, 2592, 2593, 2595, 2596, 2597, 2598, 2599, 2600, 2601, 2603, 2604, 2605, 2606, 2607, 2608, 2609, 2611, 2612, 2613, 2614, 2615, 2616, 2617, 2619, 2620, 2621, 2622, 2623, 2624, 2625, 2627, 2628, 2629, 2630, 2631, 2632, 2633, 2634, 2636, 2637, 2638, 2639, 2640, 2641, 2642, 2644, 2645, 2646, 2647, 2648, 2649, 2650, 2652, 2653, 2654, 2655, 2656, 2657, 2658, 2660, 2661, 2662, 2663, 2664, 2665, 2666, 2668, 2669, 2670, 2671, 2672, 2673, 2674, 2676, 2677, 2678, 2679, 2680, 2681, 2682, 2684, 2685, 2686, 2687, 2688, 2689, 2690, 2692, 2693, 2694, 2695, 2696, 2697, 2698, 2700, 2701, 2702, 2703, 2704, 2705, 2706, 2708, 2709, 2710, 2711, 2712, 2713, 2714, 2716, 2717, 2718, 2719, 2720, 2721, 2722, 2724, 2725, 2726, 2727, 2728, 2729, 2730, 2732, 2733, 2734, 2735, 2736, 2737, 2738, 2740, 2741, 2742, 2743, 2744, 2745, 2746, 2748, 2749, 2750, 2751, 2752, 2753, 2754, 2756, 2757, 2758, 2759, 2760, 2761, 2762, 2764, 2765, 2766, 2767, 2768, 2769, 2770, 2771, 2773, 2774, 2775, 2776, 2777, 2778, 2779, 2781, 2782, 2783, 2784, 2785, 2786, 2787, 2789, 2790, 2791, 2792, 2793, 2794, 2795, 2797, 2798, 2799, 2800, 2801, 2802, 2803, 2805, 2806, 2807, 2808, 2809, 2810, 2811, 2813, 2814, 2815, 2816, 2817, 2818, 2819, 2821, 2822, 2823, 2824, 2825, 2826, 2827, 2829, 2830, 2831, 2832, 2833, 2834, 2835, 2837, 2838, 2839, 2840, 2841, 2842, 2843, 2845, 2846, 2847, 2848, 2849, 2850, 2851, 2853, 2854, 2855, 2856, 2857, 2858, 2859, 2861, 2862, 2863, 2864, 2865, 2866, 2867, 2869, 2870, 2871, 2872, 2873, 2874, 2875, 2877, 2878, 2879, 2880, 2881, 2882, 2883, 2885, 2886, 2887, 2888, 2889, 2890, 2891, 2893, 2894, 2895, 2896, 2897, 2898, 2899, 2901, 2902, 2903, 2904, 2905, 2906, 2907, 2908, 2910, 2911, 2912, 2913, 2914, 2915, 2916, 2918, 2919, 2920, 2921, 2922, 2923, 2924, 2926, 2927, 2928, 2929, 2930, 2931, 2932, 2934, 2935, 2936, 2937, 2938, 2939, 2940, 2942, 2943, 2944, 2945, 2946, 2947, 2948, 2950, 2951, 2952, 2953, 2954, 2955, 2956, 2958, 2959, 2960, 2961, 2962, 2963, 2964, 2966, 2967, 2968, 2969, 2970, 2971, 2972, 2974, 2975, 2976, 2977, 2978, 2979, 2980, 2982, 2983, 2984, 2985, 2986, 2987, 2988, 2990, 2991, 2992, 2993, 2994, 2995, 2996, 2998, 2999, 3000, 3001, 3002, 3003, 3004, 3006, 3007, 3008, 3009, 3010, 3011, 3012, 3014, 3015, 3016, 3017, 3018, 3019, 3020, 3022, 3023, 3024, 3025, 3026, 3027, 3028, 3030, 3031, 3032, 3033, 3034, 3035, 3036, 3038, 3039, 3040, 3041, 3042, 3043, 3044, 3045, 3047, 3048, 3049, 3050, 3051, 3052, 3053, 3055, 3056, 3057, 3058, 3059, 3060, 3061, 3063, 3064, 3065, 3066, 3067, 3068, 3069, 3071, 3072, 3073, 3074, 3075, 3076, 3077, 3079, 3080, 3081, 3082, 3083, 3084, 3085, 3087, 3088, 3089, 3090, 3091, 3092, 3093, 3095, 3096, 3097, 3098, 3099, 3100, 3101, 3103, 3104, 3105, 3106, 3107, 3108, 3109, 3111, 3112, 3113, 3114, 3115, 3116, 3117, 3119, 3120, 3121, 3122, 3123, 3124, 3125, 3127, 3128, 3129, 3130, 3131, 3132, 3133, 3135, 3136, 3137, 3138, 3139, 3140, 3141, 3143, 3144, 3145, 3146, 3147, 3148, 3149, 3151, 3152, 3153, 3154, 3155, 3156, 3157, 3159, 3160, 3161, 3162, 3163, 3164, 3165, 3167, 3168, 3169, 3170, 3171, 3172, 3173, 3175, 3176, 3177, 3178, 3179, 3180, 3181, 3182, 3184, 3185, 3186, 3187, 3188, 3189, 3190, 3192, 3193, 3194, 3195, 3196, 3197, 3198, 3200, 3201, 3202, 3203, 3204, 3205, 3206, 3208, 3209, 3210, 3211, 3212, 3213, 3214, 3216, 3217, 3218, 3219, 3220, 3221, 3222, 3224, 3225, 3226, 3227, 3228, 3229, 3230, 3232, 3233, 3234, 3235, 3236, 3237, 3238, 3240, 3241, 3242, 3243, 3244, 3245, 3246, 3248, 3249, 3250, 3251, 3252, 3253, 3254, 3256, 3257, 3258, 3259, 3260, 3261, 3262, 3264, 3265, 3266, 3267, 3268, 3269, 3270, 3272, 3273, 3274, 3275, 3276, 3277, 3278, 3280, 3281, 3282, 3283, 3284, 3285, 3286, 3288, 3289, 3290, 3291, 3292, 3293, 3294, 3296, 3297, 3298, 3299, 3300, 3301, 3302, 3304, 3305, 3306, 3307, 3308, 3309, 3310, 3312, 3313, 3314, 3315, 3316, 3317, 3318, 3319, 3321, 3322, 3323, 3324, 3325, 3326, 3327, 3329, 3330, 3331, 3332, 3333, 3334, 3335, 3337, 3338, 3339, 3340, 3341, 3342, 3343, 3345, 3346, 3347, 3348, 3349, 3350, 3351, 3353, 3354, 3355, 3356, 3357, 3358, 3359, 3361, 3362, 3363, 3364, 3365, 3366, 3367, 3369, 3370, 3371, 3372, 3373, 3374, 3375, 3377, 3378, 3379, 3380, 3381, 3382, 3383, 3385, 3386, 3387, 3388, 3389, 3390, 3391, 3393, 3394, 3395, 3396, 3397, 3398, 3399, 3401, 3402, 3403, 3404, 3405, 3406, 3407, 3409, 3410, 3411, 3412, 3413, 3414, 3415, 3417, 3418, 3419, 3420, 3421, 3422, 3423, 3425, 3426, 3427, 3428, 3429, 3430, 3431, 3433, 3434, 3435, 3436, 3437, 3438, 3439, 3441, 3442, 3443, 3444, 3445, 3446, 3447, 3449, 3450, 3451, 3452, 3453, 3454, 3455, 3456, 3458, 3459, 3460, 3461, 3462, 3463, 3464, 3466, 3467, 3468, 3469, 3470, 3471, 3472, 3474, 3475, 3476, 3477, 3478, 3479, 3480, 3482, 3483, 3484, 3485, 3486, 3487, 3488, 3490, 3491, 3492, 3493, 3494, 3495, 3496, 3498, 3499, 3500, 3501, 3502, 3503, 3504, 3506, 3507, 3508, 3509, 3510, 3511, 3512, 3514, 3515, 3516, 3517, 3518, 3519, 3520, 3522, 3523, 3524, 3525, 3526, 3527, 3528, 3530, 3531, 3532, 3533, 3534, 3535, 3536, 3538, 3539, 3540, 3541, 3542, 3543, 3544, 3546, 3547, 3548, 3549, 3550, 3551, 3552, 3554, 3555, 3556, 3557, 3558, 3559, 3560, 3562, 3563, 3564, 3565, 3566, 3567, 3568, 3570, 3571, 3572, 3573, 3574, 3575, 3576, 3578, 3579, 3580, 3581, 3582, 3583, 3584, 3586, 3587, 3588, 3589, 3590, 3591, 3592, 3593, 3595, 3596, 3597, 3598, 3599, 3600, 3601, 3603, 3604, 3605, 3606, 3607, 3608, 3609, 3611, 3612, 3613, 3614, 3615, 3616, 3617, 3619, 3620, 3621, 3622, 3623, 3624, 3625, 3627, 3628, 3629, 3630, 3631, 3632, 3633, 3635, 3636, 3637, 3638, 3639, 3640, 3641, 3643, 3644, 3645, 3646, 3647, 3648, 3649, 3651, 3652, 3653, 3654, 3655, 3656, 3657, 3659, 3660, 3661, 3662, 3663, 3664, 3665, 3667, 3668, 3669, 3670, 3671, 3672, 3673, 3675, 3676, 3677, 3678, 3679, 3680, 3681, 3683, 3684, 3685, 3686, 3687, 3688, 3689, 3691, 3692, 3693, 3694, 3695, 3696, 3697, 3699, 3700, 3701, 3702, 3703, 3704, 3705, 3707, 3708, 3709, 3710, 3711, 3712, 3713, 3715, 3716, 3717, 3718, 3719, 3720, 3721, 3723, 3724, 3725, 3726, 3727, 3728, 3729, 3730, 3732, 3733, 3734, 3735, 3736, 3737, 3738, 3740, 3741, 3742, 3743, 3744, 3745, 3746, 3748, 3749, 3750, 3751, 3752, 3753, 3754, 3756, 3757, 3758, 3759, 3760, 3761, 3762, 3764, 3765, 3766, 3767, 3768, 3769, 3770, 3772, 3773, 3774, 3775, 3776, 3777, 3778, 3780, 3781, 3782, 3783, 3784, 3785, 3786, 3788, 3789, 3790, 3791, 3792, 3793, 3794, 3796, 3797, 3798, 3799, 3800, 3801, 3802, 3804, 3805, 3806, 3807, 3808, 3809, 3810, 3812, 3813, 3814, 3815, 3816, 3817, 3818, 3820, 3821, 3822, 3823, 3824, 3825, 3826, 3828, 3829, 3830, 3831, 3832, 3833, 3834, 3836, 3837, 3838, 3839, 3840, 3841, 3842, 3844, 3845, 3846, 3847, 3848, 3849, 3850, 3852, 3853, 3854, 3855, 3856, 3857, 3858, 3860, 3861, 3862, 3863, 3864, 3865, 3866, 3867, 3869, 3870, 3871, 3872, 3873, 3874, 3875, 3877, 3878, 3879, 3880, 3881, 3882, 3883, 3885, 3886, 3887, 3888, 3889, 3890, 3891, 3893, 3894, 3895, 3896, 3897, 3898, 3899, 3901, 3902, 3903, 3904, 3905, 3906, 3907, 3909, 3910, 3911, 3912, 3913, 3914, 3915, 3917, 3918, 3919, 3920, 3921, 3922, 3923, 3925, 3926, 3927, 3928, 3929, 3930, 3931, 3933, 3934, 3935, 3936, 3937, 3938, 3939, 3941, 3942, 3943, 3944, 3945, 3946, 3947, 3949, 3950, 3951, 3952, 3953, 3954, 3955, 3957, 3958, 3959, 3960, 3961, 3962, 3963, 3965, 3966, 3967, 3968, 3969, 3970, 3971, 3973, 3974, 3975, 3976, 3977, 3978, 3979, 3981, 3982, 3983, 3984, 3985, 3986, 3987, 3989, 3990, 3991, 3992, 3993, 3994, 3995, 3997, 3998, 3999, 4000, 4001, 4002, 4003, 4004, 4006, 4007, 4008, 4009, 4010, 4011, 4012, 4014, 4015, 4016, 4017, 4018, 4019, 4020, 4022, 4023, 4024, 4025, 4026, 4027, 4028, 4030, 4031, 4032, 4033, 4034, 4035, 4036, 4038, 4039, 4040, 4041, 4042, 4043, 4044, 4046, 4047, 4048, 4049, 4050, 4051, 4052, 4054, 4055, 4056, 4057, 4058, 4059, 4060, 4062, 4063, 4064, 4065, 4066, 4067, 4068, 4070, 4071, 4072, 4073, 4074, 4075, 4076, 4078, 4079, 4080, 4081, 4082, 4083, 4084, 4086, 4087, 4088, 4089, 4090, 4091, 4092, 4094, 4095, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096};
+
+#endif
\ No newline at end of file
diff --git a/code/daisy-looper/potentiometers.h b/code/daisy-looper/potentiometers.h
new file mode 100644
index 0000000000000000000000000000000000000000..6ae4adae1d9348baeb8c9447b7dc631399083e18
--- /dev/null
+++ b/code/daisy-looper/potentiometers.h
@@ -0,0 +1,221 @@
+#include "WCharacter.h"
+#include "wiring_analog.h"
+#include <stdint.h>
+#ifndef Potentiometers_h
+#define Potentiometers_h
+#include "Arduino.h"
+#include "luts.h"
+#include "helpers.h"
+
+#include "Adafruit_SH110X.h"
+#include "Adafruit_GFX.h"
+extern Adafruit_SH1106G display;
+
+// The length of the moving average filter that smooths the
+// controls. Higher number is smoother, but less responsive
+// and needs more memory.
+#define POT_MOVING_AVERAGE_SIZE 4
+
+// Length of the Textbuffer for floats in the UI
+#define UI_TEXTBUFFER_LENGTH 8
+
+// Modes
+enum PotMode {
+  POT_MODE_LIN,
+  POT_MODE_EXP,
+  POT_MODE_BIP,
+  POT_MODE_LAST
+};
+
+// Display Modes
+enum PotDisplayMode {
+  POT_DISPLAY_MODE_DEFAULT,
+  POT_DISPLAY_MODE_PITCH,
+  POT_DISPLAY_MODE_PERCENT,
+  POT_DISPLAY_MODE_LAST
+};
+
+typedef void (*callback_function)(void);
+
+class Potentiometer {
+  int pin;
+  int readings[POT_MOVING_AVERAGE_SIZE];
+  PotMode mode = POT_MODE_LIN;
+  PotDisplayMode display_mode = POT_DISPLAY_MODE_DEFAULT;
+  float last_reading;
+  float display_scale = 1.0f;
+  callback_function onChangeFunction;
+
+  public:
+    Potentiometer(int pin);
+    void init();
+    void setLinear();
+    void setExponential();
+    void setBipolar();
+    float read();
+    void setOnChange(callback_function f);
+    void renderUi();
+    void setDisplayMode(const char *name, float display_scale, PotDisplayMode display_mode);
+    const char *name;
+    double last_displayed = 0.0;
+    bool should_display = false;
+    bool display_value_changes = false;
+};
+
+Potentiometer::Potentiometer(int pin) {
+  this->pin = pin;
+}
+
+void Potentiometer::init() {
+  analogReadResolution(12);
+}
+
+void Potentiometer::setLinear() {
+  this->mode = POT_MODE_LIN;
+}
+
+void Potentiometer::setExponential() {
+  this->mode = POT_MODE_EXP;
+}
+
+void Potentiometer::setBipolar() {
+  this->mode = POT_MODE_BIP;
+}
+
+float Potentiometer::read() {
+  int reading = analogRead(this->pin);
+  // Shift all readings in the buffer over by one position, deleting the oldest
+  // and adding the newest
+  for (int i=0; i<POT_MOVING_AVERAGE_SIZE; i++) {
+    int next = i+1;
+    if (next < POT_MOVING_AVERAGE_SIZE) {
+      (this->readings)[i] = (this->readings)[next];
+    }
+  }
+  (this->readings)[POT_MOVING_AVERAGE_SIZE-1] = reading;
+
+  // Get the average of the last readings
+  reading = 0;
+  for (int i=0; i<POT_MOVING_AVERAGE_SIZE; i++) {
+    reading += (this->readings)[i];
+  }
+
+  // Depending on the Mode
+  reading = reading / POT_MOVING_AVERAGE_SIZE;
+  if (this->mode == POT_MODE_EXP ) {
+    reading = exp_lookup[reading];
+  } else if (this->mode == POT_MODE_BIP) {
+    reading = bip_lookup[reading];
+  }
+  // Convert the last reading to a float and return
+  float current_reading = reading / 4096.0f;
+
+  // Bipolar Knobs go from -1.0 to +1.0 (Centered = 0.0)
+  if (this->mode == POT_MODE_BIP) {
+    current_reading = (current_reading - 0.5f) * 2.0f;
+  }
+
+  // If the difference to the last reading is big enough assume the knob has been touched
+  if (this->last_reading && abs(current_reading - this->last_reading) > 0.002) {
+    // Serial.print("Touched Potentiometer: ");
+    // Serial.println(current_reading);
+    if (display_value_changes) {
+      last_displayed = millis();
+      should_display = true;
+    }
+    if (this->onChangeFunction) { this->onChangeFunction(); }
+  }
+  this->last_reading = current_reading;
+  return current_reading;
+}
+
+void Potentiometer::setOnChange(callback_function f) {
+  this->onChangeFunction = f;
+}
+
+void Potentiometer::setDisplayMode(const char *name, float display_scale, PotDisplayMode display_mode) {
+  this->display_value_changes = true;
+  this->name = name;
+  this->display_scale = display_scale;
+  this->display_mode = display_mode;
+}
+
+void Potentiometer::renderUi() {
+  double now = millis();
+    if (this->should_display) {
+      int x_margin = 28;
+      int y_margin = 13;
+      int x_center = display.width()/2;
+      int y_center = display.height()/2;
+      // Render a rectangle Backdrop for the text
+      display.fillRect(3+x_margin, 3+y_margin, display.width()-x_margin*2, display.height()-y_margin*2, SH110X_WHITE);
+      display.fillRect(x_margin, y_margin, display.width()-x_margin*2, display.height()-y_margin*2, SH110X_WHITE);
+      display.fillRect(x_margin+1, y_margin+1, display.width()-(x_margin+1)*2, display.height()-(y_margin+1)*2, SH110X_BLACK);
+      
+
+      // Render the name of the parameter (e.g. "Pitch")
+      centeredText(this->name, x_center, y_center-4, SH110X_WHITE);
+      
+      // Choose how many digits to display depending on the mode
+      int digits = 2;
+      if (this->display_mode == POT_DISPLAY_MODE_PERCENT) { digits = 0; }
+      // Allocate a buffer for the float and convert it into characters
+      char value_buffer[UI_TEXTBUFFER_LENGTH]; // Buffer big enough for 7-character float
+      dtostrf(this->last_reading*display_scale, 6, digits, value_buffer); // Leave room for too large numbers!
+      
+      // If we are on a bipolar pot display an indicator if we are in the center
+      if (this->mode == POT_MODE_BIP && this->last_reading > -0.0001 && this->last_reading < 0.0001) {
+        display.fillTriangle(x_center, y_center+10, x_center+3, y_center+15, x_center-3, y_center+15, SH110X_WHITE);
+      }
+
+      // The float value may contain some empty whitespace characters, remove them by
+      // first figuring out which the first actual character is
+      int nonwhite = 0;
+      for (int i=0; i<UI_TEXTBUFFER_LENGTH; i++) {
+        if (value_buffer[i] == ' ') {
+          nonwhite++;
+        }
+      }
+
+      // Create a new buffer that can hold everything
+      char text_buffer[UI_TEXTBUFFER_LENGTH+6];
+
+      // Copy all non-white characters over
+      for (int i = 0; i<UI_TEXTBUFFER_LENGTH; i++) {
+        text_buffer[i] = value_buffer[i+int(nonwhite)];
+      }
+
+      // Figure out where the last character (\0) in our new buffer is
+      int last = UI_TEXTBUFFER_LENGTH+6;
+      for (int i=16; i>0; i--) {
+        if (text_buffer[i] == '\0') {
+          last = i;
+        }
+      }
+
+      // Add units depending on the display mode : )
+      if (this->display_mode == POT_DISPLAY_MODE_PERCENT) {
+        text_buffer[last] = ' ';
+        text_buffer[last+1] = '%';
+        text_buffer[last+2] = '\0';
+      } else if (this->display_mode == POT_DISPLAY_MODE_PITCH) {
+        text_buffer[last] = ' ';
+        text_buffer[last+1] = 'S';
+        text_buffer[last+2] = 'e';
+        text_buffer[last+3] = 'm';
+        text_buffer[last+4] = 'i';
+        text_buffer[last+5] = '\0';
+      }
+
+      // Render that new text
+      centeredText(text_buffer, x_center, y_center+4, SH110X_WHITE);
+    }
+
+    // Show this for 200 ms after it has been last touched
+    if (now - this->last_displayed > 700.0) {
+      this->should_display = false;
+    }
+}
+
+
+#endif
\ No newline at end of file
diff --git a/daisyy/daisyy.ino b/daisyy/daisyy.ino
deleted file mode 100644
index ec2e06b15dcdd7447fffc102f8d6e2103cb68af6..0000000000000000000000000000000000000000
--- a/daisyy/daisyy.ino
+++ /dev/null
@@ -1,107 +0,0 @@
-
-
-// Title: daisyy
-// Description: Multisynth with display
-// Hardware: Daisy Seed
-// Author: David Huss
-
-#include "DaisyDuino.h"
-#include <SPI.h>
-#include <Wire.h>
-#include <Adafruit_GFX.h>
-#include <Adafruit_SH110X.h>
-
-#include "ui.h"
-#include "patch.h"
-#include "hardware.h"
-
-#define UI_FPS 60.0
-
-Ui ui;
-Hardware hardware;
-Patch patch;
-
-
-
-double last_render = 0.0;
-float current_freq = 0.0f;
-float current_filt_freq = 0.0f;
-
-void AudioCallback(float **in, float **out, size_t size) {
-  // if (ui.mode == UI_MODE_SYNTH) {
-    patch.render(in, out, size);
-  // }
-}
-
-
-void setup() {
-  Serial.begin(9600);
-  hardware.init();
-  patch.init(hardware.sample_rate, hardware.num_channels);
-  ui.init(&patch, &hardware);
-  DAISY.begin(AudioCallback);
-}
-
-void loop() {
-  ui.poll();
-  // float f = pot_1.read();
-  // osc_freq = 20.0f + f * 4000.0f;
-  // f = pot_2.read();
-  // rgb_led.setAudioLevelIndicator(int(f*255));
-  // filt_freq = 10.0f + f * 19000.0f;
-  // osc_amp = pot_3.read();
-  // filt_res = pot_4.read();
-  // lfo_freq = pot_5.read()*500.0f;
-  // // LFO needs to modulate more as it gets higher!
-  // lfo_mod_filter = pot_6.read() * 2.0f * filt_freq;
-  // lfo_mod_oscillator = pot_7.read() * 1.0f * osc_freq;
-
-
-  
-  // button_2.read();
-  // button_2.onPress(switchWaveForm);
-
-  // render_display();
-}
-
-
-// void render_display() {
-//   double now = millis();
-//   if (now - last_render > 1000.0/UI_FPS) {
-//     // Text Display
-//     display.clearDisplay();
-//     display.setCursor(0, 0);
-//     display.print("OSC FREQ    ");
-//     display.print(int(round(osc_freq)));
-//     display.println(" Hz");
-//     display.print("FILT FREQ   ");
-//     display.print(int(round(filt_freq)));
-//     display.println(" Hz");
-//     display.print("OSC AMP     ");
-//     display.print(int(round(osc_amp * 100)));
-//     display.println(" %");
-//     display.print("FILT RES    ");
-//     display.print(int(round(filt_res * 100)));
-//     display.println(" %");
-    
-
-//     int osc_pitch_line_x = map(current_freq, 10, 19000, 0, display.width());
-//     int filt_freq_line_x = map(current_filt_freq, 10, 19000, 0, display.width());
-//     for (int i=0; i<30; i++) {
-//       float j = ((30-i)/30.0f);
-//       j = 1.0f - (j*j);
-//       float neg_h = -30+(30*j);
-//       display.drawLine(osc_pitch_line_x+(i*3), display.height(), osc_pitch_line_x+(i*3), display.height()+neg_h * osc_amp, SH110X_WHITE);
-//     }
-//     // Filter
-//     // Straight line
-//     display.drawLine(filt_freq_line_x-20, display.height()-20, 0, display.height()-20, SH110X_WHITE);
-//     display.drawLine(filt_freq_line_x-20, display.height()-20, filt_freq_line_x-10, display.height()-20 - (10*filt_res), SH110X_WHITE);
-//     display.drawLine(filt_freq_line_x-10, display.height()-20 - (10*filt_res), filt_freq_line_x, display.height()-20, SH110X_WHITE);
-//     // right down
-//     display.drawLine(filt_freq_line_x+16, display.height(), filt_freq_line_x, display.height()-20, SH110X_WHITE);
-
-//     display.display();
-//     last_render = now;
-//   }
-// }
diff --git a/daisyy/hardware.h b/daisyy/hardware.h
deleted file mode 100644
index c6706e4fbfce8d8953623f0e472c32a3645fe3d8..0000000000000000000000000000000000000000
--- a/daisyy/hardware.h
+++ /dev/null
@@ -1,89 +0,0 @@
-#ifndef Hardware_h
-#define Hardware_h
-
-#include "Arduino.h"
-#include "DaisyDuino.h"
-
-#include "leds.h"
-#include "potentiometers.h"
-#include "buttons.h"
-
-#define SCREEN_WIDTH 128 // OLED display width, in pixels
-#define SCREEN_HEIGHT 64 // OLED display height, in pixels
-#define OLED_RESET -1   //   QT-PY / XIAO
-
-#define N_BUTTONS 6
-#define N_POTS 7
-
-
-class Hardware {
-  
-
-  public:
-    size_t num_channels;
-    float sample_rate;
-    void init();
-    void process_all_controls();
-
-    Button buttons[N_BUTTONS] = { Button(D7), Button(D8), Button(D9), Button(D10), Button(D11), Button(D12) };;
-    Potentiometer controls[N_POTS] = { Potentiometer(A0), Potentiometer(A1), Potentiometer(A3), Potentiometer(A2), Potentiometer(A4), Potentiometer(A5), Potentiometer(A6) };
-    RGBLed rgb_led = RGBLed(D25, D24, D28);
-    Adafruit_SH1106G display = Adafruit_SH1106G(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
-    DaisyHardware hw;
-};
-
-
-void Hardware::init() {
-  // Initialize all buttons
-  for (int i=0; i<N_BUTTONS; i++) { this->buttons[i].init(); }
-
-  // Initialize all potentiometers
-  for (int i=0; i<N_POTS; i++) { this->controls[i].init(); }
-
-  this->hw = DAISY.init(DAISY_SEED, AUDIO_SR_48K);
-  this->num_channels = this->hw.num_channels;
-  this->sample_rate = DAISY.get_samplerate();
-
-  // Initialize Display
-  this->display.begin(0x3C, true);
-  delay(50);
-  this->display.setTextSize(1);
-  this->display.setTextColor(SH110X_BLACK);
-  // Play a fancy intro splash screen
-  for (int i=0; i < 91; i++) {
-    this->display.clearDisplay();
-    this->display.fillCircle(this->display.width()/2, this->display.height()/2, i, SH110X_WHITE);
-    this->display.setCursor(30, 30);
-    this->display.println("D A I S Y Y");
-    this->display.display();
-    delay(5);
-  }
-  this->display.clearDisplay();
-  this->display.setTextColor(SH110X_WHITE);
-  this->display.setCursor(30, 30);
-  this->display.println("D A I S Y Y");
-  this->display.display();
-  delay(500);
-  this->display.clearDisplay();
-  this->display.display();
-
-  // Initialize the RGB-LED
-  this->rgb_led.init();
-
-  // Set the analog read and write resolution to 12 bits
-  analogReadResolution(12);
-}
-
-void Hardware::process_all_controls() {
-  this->hw.ProcessAllControls();
-  // Initialize all buttons
-  for (int i=0; i<N_BUTTONS; i++) { this->buttons[i].read(); }
-
-  // Initialize all potentiometers
-  for (int i=0; i<N_POTS; i++) { this->controls[i].read(); }
-}
-
-
-
-
-#endif
\ No newline at end of file
diff --git a/daisyy/luts.h b/daisyy/luts.h
deleted file mode 100644
index 0fdcf692ede787d2c1de75e30241e08e283b2dc7..0000000000000000000000000000000000000000
--- a/daisyy/luts.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#ifndef LUTs_h
-#define LUTs_h
-
-// Lookup Table for Exponential Curve
-int exp_lookup[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 55, 55, 55, 55, 55, 55, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 76, 76, 76, 76, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 79, 79, 79, 79, 80, 80, 80, 80, 80, 81, 81, 81, 81, 82, 82, 82, 82, 82, 83, 83, 83, 83, 84, 84, 84, 84, 84, 85, 85, 85, 85, 86, 86, 86, 86, 86, 87, 87, 87, 87, 88, 88, 88, 88, 89, 89, 89, 89, 90, 90, 90, 90, 90, 91, 91, 91, 91, 92, 92, 92, 92, 93, 93, 93, 93, 94, 94, 94, 94, 95, 95, 95, 95, 96, 96, 96, 96, 97, 97, 97, 97, 98, 98, 98, 98, 99, 99, 99, 99, 100, 100, 100, 100, 101, 101, 101, 101, 102, 102, 102, 102, 103, 103, 103, 103, 104, 104, 104, 104, 105, 105, 105, 105, 106, 106, 106, 106, 107, 107, 107, 108, 108, 108, 108, 109, 109, 109, 109, 110, 110, 110, 110, 111, 111, 111, 112, 112, 112, 112, 113, 113, 113, 114, 114, 114, 114, 115, 115, 115, 115, 116, 116, 116, 117, 117, 117, 117, 118, 118, 118, 119, 119, 119, 119, 120, 120, 120, 121, 121, 121, 121, 122, 122, 122, 123, 123, 123, 123, 124, 124, 124, 125, 125, 125, 125, 126, 126, 126, 127, 127, 127, 128, 128, 128, 128, 129, 129, 129, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 133, 133, 133, 134, 134, 134, 135, 135, 135, 135, 136, 136, 136, 137, 137, 137, 138, 138, 138, 139, 139, 139, 140, 140, 140, 140, 141, 141, 141, 142, 142, 142, 143, 143, 143, 144, 144, 144, 145, 145, 145, 146, 146, 146, 147, 147, 147, 148, 148, 148, 149, 149, 149, 150, 150, 150, 151, 151, 151, 152, 152, 152, 153, 153, 153, 154, 154, 154, 155, 155, 155, 156, 156, 156, 157, 157, 157, 158, 158, 158, 159, 159, 159, 160, 160, 160, 161, 161, 161, 162, 162, 162, 163, 163, 164, 164, 164, 165, 165, 165, 166, 166, 166, 167, 167, 167, 168, 168, 168, 169, 169, 170, 170, 170, 171, 171, 171, 172, 172, 172, 173, 173, 174, 174, 174, 175, 175, 175, 176, 176, 176, 177, 177, 178, 178, 178, 179, 179, 179, 180, 180, 181, 181, 181, 182, 182, 182, 183, 183, 184, 184, 184, 185, 185, 186, 186, 186, 187, 187, 187, 188, 188, 189, 189, 189, 190, 190, 191, 191, 191, 192, 192, 192, 193, 193, 194, 194, 194, 195, 195, 196, 196, 196, 197, 197, 198, 198, 198, 199, 199, 200, 200, 200, 201, 201, 202, 202, 202, 203, 203, 204, 204, 204, 205, 205, 206, 206, 207, 207, 207, 208, 208, 209, 209, 209, 210, 210, 211, 211, 211, 212, 212, 213, 213, 214, 214, 214, 215, 215, 216, 216, 217, 217, 217, 218, 218, 219, 219, 219, 220, 220, 221, 221, 222, 222, 222, 223, 223, 224, 224, 225, 225, 226, 226, 226, 227, 227, 228, 228, 229, 229, 229, 230, 230, 231, 231, 232, 232, 233, 233, 233, 234, 234, 235, 235, 236, 236, 237, 237, 237, 238, 238, 239, 239, 240, 240, 241, 241, 242, 242, 242, 243, 243, 244, 244, 245, 245, 246, 246, 247, 247, 248, 248, 248, 249, 249, 250, 250, 251, 251, 252, 252, 253, 253, 254, 254, 255, 255, 255, 256, 256, 257, 257, 258, 258, 259, 259, 260, 260, 261, 261, 262, 262, 263, 263, 264, 264, 265, 265, 266, 266, 266, 267, 267, 268, 268, 269, 269, 270, 270, 271, 271, 272, 272, 273, 273, 274, 274, 275, 275, 276, 276, 277, 277, 278, 278, 279, 279, 280, 280, 281, 281, 282, 282, 283, 283, 284, 284, 285, 285, 286, 286, 287, 287, 288, 288, 289, 289, 290, 290, 291, 292, 292, 293, 293, 294, 294, 295, 295, 296, 296, 297, 297, 298, 298, 299, 299, 300, 300, 301, 301, 302, 302, 303, 304, 304, 305, 305, 306, 306, 307, 307, 308, 308, 309, 309, 310, 310, 311, 312, 312, 313, 313, 314, 314, 315, 315, 316, 316, 317, 318, 318, 319, 319, 320, 320, 321, 321, 322, 322, 323, 324, 324, 325, 325, 326, 326, 327, 327, 328, 329, 329, 330, 330, 331, 331, 332, 333, 333, 334, 334, 335, 335, 336, 336, 337, 338, 338, 339, 339, 340, 340, 341, 342, 342, 343, 343, 344, 344, 345, 346, 346, 347, 347, 348, 349, 349, 350, 350, 351, 351, 352, 353, 353, 354, 354, 355, 356, 356, 357, 357, 358, 359, 359, 360, 360, 361, 361, 362, 363, 363, 364, 364, 365, 366, 366, 367, 367, 368, 369, 369, 370, 370, 371, 372, 372, 373, 374, 374, 375, 375, 376, 377, 377, 378, 378, 379, 380, 380, 381, 381, 382, 383, 383, 384, 385, 385, 386, 386, 387, 388, 388, 389, 390, 390, 391, 391, 392, 393, 393, 394, 395, 395, 396, 396, 397, 398, 398, 399, 400, 400, 401, 402, 402, 403, 403, 404, 405, 405, 406, 407, 407, 408, 409, 409, 410, 411, 411, 412, 413, 413, 414, 414, 415, 416, 416, 417, 418, 418, 419, 420, 420, 421, 422, 422, 423, 424, 424, 425, 426, 426, 427, 428, 428, 429, 430, 430, 431, 432, 432, 433, 434, 434, 435, 436, 436, 437, 438, 438, 439, 440, 440, 441, 442, 442, 443, 444, 445, 445, 446, 447, 447, 448, 449, 449, 450, 451, 451, 452, 453, 453, 454, 455, 456, 456, 457, 458, 458, 459, 460, 460, 461, 462, 463, 463, 464, 465, 465, 466, 467, 467, 468, 469, 470, 470, 471, 472, 472, 473, 474, 475, 475, 476, 477, 477, 478, 479, 480, 480, 481, 482, 482, 483, 484, 485, 485, 486, 487, 488, 488, 489, 490, 490, 491, 492, 493, 493, 494, 495, 496, 496, 497, 498, 498, 499, 500, 501, 501, 502, 503, 504, 504, 505, 506, 507, 507, 508, 509, 510, 510, 511, 512, 513, 513, 514, 515, 516, 516, 517, 518, 519, 519, 520, 521, 522, 522, 523, 524, 525, 526, 526, 527, 528, 529, 529, 530, 531, 532, 532, 533, 534, 535, 535, 536, 537, 538, 539, 539, 540, 541, 542, 542, 543, 544, 545, 546, 546, 547, 548, 549, 550, 550, 551, 552, 553, 553, 554, 555, 556, 557, 557, 558, 559, 560, 561, 561, 562, 563, 564, 565, 565, 566, 567, 568, 569, 569, 570, 571, 572, 573, 573, 574, 575, 576, 577, 578, 578, 579, 580, 581, 582, 582, 583, 584, 585, 586, 587, 587, 588, 589, 590, 591, 591, 592, 593, 594, 595, 596, 596, 597, 598, 599, 600, 601, 601, 602, 603, 604, 605, 606, 606, 607, 608, 609, 610, 611, 612, 612, 613, 614, 615, 616, 617, 617, 618, 619, 620, 621, 622, 623, 623, 624, 625, 626, 627, 628, 629, 629, 630, 631, 632, 633, 634, 635, 636, 636, 637, 638, 639, 640, 641, 642, 642, 643, 644, 645, 646, 647, 648, 649, 649, 650, 651, 652, 653, 654, 655, 656, 657, 657, 658, 659, 660, 661, 662, 663, 664, 665, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 923, 924, 925, 926, 927, 928, 929, 930, 932, 933, 934, 935, 936, 937, 938, 939, 940, 942, 943, 944, 945, 946, 947, 948, 950, 951, 952, 953, 954, 955, 956, 957, 959, 960, 961, 962, 963, 964, 965, 967, 968, 969, 970, 971, 972, 974, 975, 976, 977, 978, 979, 980, 982, 983, 984, 985, 986, 987, 989, 990, 991, 992, 993, 994, 996, 997, 998, 999, 1000, 1001, 1003, 1004, 1005, 1006, 1007, 1008, 1010, 1011, 1012, 1013, 1014, 1016, 1017, 1018, 1019, 1020, 1021, 1023, 1024, 1025, 1026, 1027, 1029, 1030, 1031, 1032, 1033, 1035, 1036, 1037, 1038, 1039, 1041, 1042, 1043, 1044, 1045, 1047, 1048, 1049, 1050, 1052, 1053, 1054, 1055, 1056, 1058, 1059, 1060, 1061, 1062, 1064, 1065, 1066, 1067, 1069, 1070, 1071, 1072, 1073, 1075, 1076, 1077, 1078, 1080, 1081, 1082, 1083, 1085, 1086, 1087, 1088, 1090, 1091, 1092, 1093, 1095, 1096, 1097, 1098, 1100, 1101, 1102, 1103, 1105, 1106, 1107, 1108, 1110, 1111, 1112, 1113, 1115, 1116, 1117, 1118, 1120, 1121, 1122, 1123, 1125, 1126, 1127, 1128, 1130, 1131, 1132, 1134, 1135, 1136, 1137, 1139, 1140, 1141, 1143, 1144, 1145, 1146, 1148, 1149, 1150, 1152, 1153, 1154, 1155, 1157, 1158, 1159, 1161, 1162, 1163, 1164, 1166, 1167, 1168, 1170, 1171, 1172, 1174, 1175, 1176, 1177, 1179, 1180, 1181, 1183, 1184, 1185, 1187, 1188, 1189, 1191, 1192, 1193, 1195, 1196, 1197, 1199, 1200, 1201, 1202, 1204, 1205, 1206, 1208, 1209, 1210, 1212, 1213, 1214, 1216, 1217, 1218, 1220, 1221, 1222, 1224, 1225, 1227, 1228, 1229, 1231, 1232, 1233, 1235, 1236, 1237, 1239, 1240, 1241, 1243, 1244, 1245, 1247, 1248, 1249, 1251, 1252, 1254, 1255, 1256, 1258, 1259, 1260, 1262, 1263, 1265, 1266, 1267, 1269, 1270, 1271, 1273, 1274, 1276, 1277, 1278, 1280, 1281, 1282, 1284, 1285, 1287, 1288, 1289, 1291, 1292, 1294, 1295, 1296, 1298, 1299, 1301, 1302, 1303, 1305, 1306, 1307, 1309, 1310, 1312, 1313, 1315, 1316, 1317, 1319, 1320, 1322, 1323, 1324, 1326, 1327, 1329, 1330, 1331, 1333, 1334, 1336, 1337, 1339, 1340, 1341, 1343, 1344, 1346, 1347, 1349, 1350, 1351, 1353, 1354, 1356, 1357, 1359, 1360, 1361, 1363, 1364, 1366, 1367, 1369, 1370, 1372, 1373, 1375, 1376, 1377, 1379, 1380, 1382, 1383, 1385, 1386, 1388, 1389, 1391, 1392, 1393, 1395, 1396, 1398, 1399, 1401, 1402, 1404, 1405, 1407, 1408, 1410, 1411, 1413, 1414, 1415, 1417, 1418, 1420, 1421, 1423, 1424, 1426, 1427, 1429, 1430, 1432, 1433, 1435, 1436, 1438, 1439, 1441, 1442, 1444, 1445, 1447, 1448, 1450, 1451, 1453, 1454, 1456, 1457, 1459, 1460, 1462, 1463, 1465, 1466, 1468, 1469, 1471, 1472, 1474, 1475, 1477, 1478, 1480, 1482, 1483, 1485, 1486, 1488, 1489, 1491, 1492, 1494, 1495, 1497, 1498, 1500, 1501, 1503, 1504, 1506, 1508, 1509, 1511, 1512, 1514, 1515, 1517, 1518, 1520, 1521, 1523, 1525, 1526, 1528, 1529, 1531, 1532, 1534, 1535, 1537, 1539, 1540, 1542, 1543, 1545, 1546, 1548, 1550, 1551, 1553, 1554, 1556, 1557, 1559, 1561, 1562, 1564, 1565, 1567, 1568, 1570, 1572, 1573, 1575, 1576, 1578, 1580, 1581, 1583, 1584, 1586, 1588, 1589, 1591, 1592, 1594, 1596, 1597, 1599, 1600, 1602, 1604, 1605, 1607, 1608, 1610, 1612, 1613, 1615, 1616, 1618, 1620, 1621, 1623, 1625, 1626, 1628, 1629, 1631, 1633, 1634, 1636, 1638, 1639, 1641, 1642, 1644, 1646, 1647, 1649, 1651, 1652, 1654, 1656, 1657, 1659, 1660, 1662, 1664, 1665, 1667, 1669, 1670, 1672, 1674, 1675, 1677, 1679, 1680, 1682, 1684, 1685, 1687, 1689, 1690, 1692, 1694, 1695, 1697, 1699, 1700, 1702, 1704, 1705, 1707, 1709, 1710, 1712, 1714, 1715, 1717, 1719, 1720, 1722, 1724, 1725, 1727, 1729, 1730, 1732, 1734, 1736, 1737, 1739, 1741, 1742, 1744, 1746, 1747, 1749, 1751, 1753, 1754, 1756, 1758, 1759, 1761, 1763, 1764, 1766, 1768, 1770, 1771, 1773, 1775, 1776, 1778, 1780, 1782, 1783, 1785, 1787, 1789, 1790, 1792, 1794, 1795, 1797, 1799, 1801, 1802, 1804, 1806, 1808, 1809, 1811, 1813, 1815, 1816, 1818, 1820, 1822, 1823, 1825, 1827, 1829, 1830, 1832, 1834, 1836, 1837, 1839, 1841, 1843, 1844, 1846, 1848, 1850, 1851, 1853, 1855, 1857, 1859, 1860, 1862, 1864, 1866, 1867, 1869, 1871, 1873, 1875, 1876, 1878, 1880, 1882, 1883, 1885, 1887, 1889, 1891, 1892, 1894, 1896, 1898, 1900, 1901, 1903, 1905, 1907, 1909, 1910, 1912, 1914, 1916, 1918, 1919, 1921, 1923, 1925, 1927, 1929, 1930, 1932, 1934, 1936, 1938, 1939, 1941, 1943, 1945, 1947, 1949, 1950, 1952, 1954, 1956, 1958, 1960, 1961, 1963, 1965, 1967, 1969, 1971, 1972, 1974, 1976, 1978, 1980, 1982, 1984, 1985, 1987, 1989, 1991, 1993, 1995, 1997, 1998, 2000, 2002, 2004, 2006, 2008, 2010, 2011, 2013, 2015, 2017, 2019, 2021, 2023, 2025, 2026, 2028, 2030, 2032, 2034, 2036, 2038, 2040, 2041, 2043, 2045, 2047, 2049, 2051, 2053, 2055, 2057, 2058, 2060, 2062, 2064, 2066, 2068, 2070, 2072, 2074, 2076, 2078, 2079, 2081, 2083, 2085, 2087, 2089, 2091, 2093, 2095, 2097, 2099, 2100, 2102, 2104, 2106, 2108, 2110, 2112, 2114, 2116, 2118, 2120, 2122, 2124, 2126, 2128, 2129, 2131, 2133, 2135, 2137, 2139, 2141, 2143, 2145, 2147, 2149, 2151, 2153, 2155, 2157, 2159, 2161, 2163, 2165, 2167, 2169, 2170, 2172, 2174, 2176, 2178, 2180, 2182, 2184, 2186, 2188, 2190, 2192, 2194, 2196, 2198, 2200, 2202, 2204, 2206, 2208, 2210, 2212, 2214, 2216, 2218, 2220, 2222, 2224, 2226, 2228, 2230, 2232, 2234, 2236, 2238, 2240, 2242, 2244, 2246, 2248, 2250, 2252, 2254, 2256, 2258, 2260, 2262, 2264, 2266, 2268, 2270, 2272, 2274, 2276, 2278, 2280, 2282, 2284, 2286, 2289, 2291, 2293, 2295, 2297, 2299, 2301, 2303, 2305, 2307, 2309, 2311, 2313, 2315, 2317, 2319, 2321, 2323, 2325, 2327, 2329, 2332, 2334, 2336, 2338, 2340, 2342, 2344, 2346, 2348, 2350, 2352, 2354, 2356, 2358, 2361, 2363, 2365, 2367, 2369, 2371, 2373, 2375, 2377, 2379, 2381, 2383, 2386, 2388, 2390, 2392, 2394, 2396, 2398, 2400, 2402, 2404, 2407, 2409, 2411, 2413, 2415, 2417, 2419, 2421, 2423, 2426, 2428, 2430, 2432, 2434, 2436, 2438, 2440, 2442, 2445, 2447, 2449, 2451, 2453, 2455, 2457, 2460, 2462, 2464, 2466, 2468, 2470, 2472, 2475, 2477, 2479, 2481, 2483, 2485, 2487, 2490, 2492, 2494, 2496, 2498, 2500, 2503, 2505, 2507, 2509, 2511, 2513, 2515, 2518, 2520, 2522, 2524, 2526, 2529, 2531, 2533, 2535, 2537, 2539, 2542, 2544, 2546, 2548, 2550, 2553, 2555, 2557, 2559, 2561, 2564, 2566, 2568, 2570, 2572, 2574, 2577, 2579, 2581, 2583, 2586, 2588, 2590, 2592, 2594, 2597, 2599, 2601, 2603, 2605, 2608, 2610, 2612, 2614, 2617, 2619, 2621, 2623, 2625, 2628, 2630, 2632, 2634, 2637, 2639, 2641, 2643, 2646, 2648, 2650, 2652, 2655, 2657, 2659, 2661, 2664, 2666, 2668, 2670, 2673, 2675, 2677, 2679, 2682, 2684, 2686, 2688, 2691, 2693, 2695, 2698, 2700, 2702, 2704, 2707, 2709, 2711, 2713, 2716, 2718, 2720, 2723, 2725, 2727, 2729, 2732, 2734, 2736, 2739, 2741, 2743, 2746, 2748, 2750, 2752, 2755, 2757, 2759, 2762, 2764, 2766, 2769, 2771, 2773, 2776, 2778, 2780, 2782, 2785, 2787, 2789, 2792, 2794, 2796, 2799, 2801, 2803, 2806, 2808, 2810, 2813, 2815, 2817, 2820, 2822, 2824, 2827, 2829, 2831, 2834, 2836, 2838, 2841, 2843, 2846, 2848, 2850, 2853, 2855, 2857, 2860, 2862, 2864, 2867, 2869, 2872, 2874, 2876, 2879, 2881, 2883, 2886, 2888, 2891, 2893, 2895, 2898, 2900, 2902, 2905, 2907, 2910, 2912, 2914, 2917, 2919, 2922, 2924, 2926, 2929, 2931, 2934, 2936, 2938, 2941, 2943, 2946, 2948, 2950, 2953, 2955, 2958, 2960, 2962, 2965, 2967, 2970, 2972, 2975, 2977, 2979, 2982, 2984, 2987, 2989, 2992, 2994, 2996, 2999, 3001, 3004, 3006, 3009, 3011, 3014, 3016, 3018, 3021, 3023, 3026, 3028, 3031, 3033, 3036, 3038, 3041, 3043, 3045, 3048, 3050, 3053, 3055, 3058, 3060, 3063, 3065, 3068, 3070, 3073, 3075, 3078, 3080, 3083, 3085, 3087, 3090, 3092, 3095, 3097, 3100, 3102, 3105, 3107, 3110, 3112, 3115, 3117, 3120, 3122, 3125, 3127, 3130, 3132, 3135, 3137, 3140, 3143, 3145, 3148, 3150, 3153, 3155, 3158, 3160, 3163, 3165, 3168, 3170, 3173, 3175, 3178, 3180, 3183, 3185, 3188, 3191, 3193, 3196, 3198, 3201, 3203, 3206, 3208, 3211, 3213, 3216, 3219, 3221, 3224, 3226, 3229, 3231, 3234, 3236, 3239, 3242, 3244, 3247, 3249, 3252, 3254, 3257, 3260, 3262, 3265, 3267, 3270, 3273, 3275, 3278, 3280, 3283, 3285, 3288, 3291, 3293, 3296, 3298, 3301, 3304, 3306, 3309, 3311, 3314, 3317, 3319, 3322, 3324, 3327, 3330, 3332, 3335, 3338, 3340, 3343, 3345, 3348, 3351, 3353, 3356, 3359, 3361, 3364, 3366, 3369, 3372, 3374, 3377, 3380, 3382, 3385, 3388, 3390, 3393, 3395, 3398, 3401, 3403, 3406, 3409, 3411, 3414, 3417, 3419, 3422, 3425, 3427, 3430, 3433, 3435, 3438, 3441, 3443, 3446, 3449, 3451, 3454, 3457, 3459, 3462, 3465, 3467, 3470, 3473, 3476, 3478, 3481, 3484, 3486, 3489, 3492, 3494, 3497, 3500, 3503, 3505, 3508, 3511, 3513, 3516, 3519, 3521, 3524, 3527, 3530, 3532, 3535, 3538, 3541, 3543, 3546, 3549, 3551, 3554, 3557, 3560, 3562, 3565, 3568, 3571, 3573, 3576, 3579, 3582, 3584, 3587, 3590, 3592, 3595, 3598, 3601, 3604, 3606, 3609, 3612, 3615, 3617, 3620, 3623, 3626, 3628, 3631, 3634, 3637, 3639, 3642, 3645, 3648, 3651, 3653, 3656, 3659, 3662, 3664, 3667, 3670, 3673, 3676, 3678, 3681, 3684, 3687, 3690, 3692, 3695, 3698, 3701, 3704, 3706, 3709, 3712, 3715, 3718, 3720, 3723, 3726, 3729, 3732, 3735, 3737, 3740, 3743, 3746, 3749, 3752, 3754, 3757, 3760, 3763, 3766, 3769, 3771, 3774, 3777, 3780, 3783, 3786, 3788, 3791, 3794, 3797, 3800, 3803, 3806, 3808, 3811, 3814, 3817, 3820, 3823, 3826, 3828, 3831, 3834, 3837, 3840, 3843, 3846, 3849, 3851, 3854, 3857, 3860, 3863, 3866, 3869, 3872, 3875, 3877, 3880, 3883, 3886, 3889, 3892, 3895, 3898, 3901, 3904, 3906, 3909, 3912, 3915, 3918, 3921, 3924, 3927, 3930, 3933, 3936, 3939, 3941, 3944, 3947, 3950, 3953, 3956, 3959, 3962, 3965, 3968, 3971, 3974, 3977, 3980, 3983, 3985, 3988, 3991, 3994, 3997, 4000, 4003, 4006, 4009, 4012, 4015, 4018, 4021, 4024, 4027, 4030, 4033, 4036, 4039, 4042, 4045, 4048, 4051, 4054, 4057, 4060, 4063, 4066, 4069, 4072, 4075, 4078, 4081, 4084, 4087, 4090, 4093, 4096};
-
-#endif
\ No newline at end of file
diff --git a/daisyy/patch.h b/daisyy/patch.h
deleted file mode 100644
index db7e3007ca6f735535d7efdcbda56dabec7b8231..0000000000000000000000000000000000000000
--- a/daisyy/patch.h
+++ /dev/null
@@ -1,99 +0,0 @@
-#ifndef Patch_h
-#define Patch_h
-
-#include "hardware.h"
-
-class Patch {
-  public:
-    Patch() { }
-    ~Patch() { }
-
-    void init(size_t sample_rate, size_t num_channels);
-    void render(float **in, float **out, size_t size);
-    void switch_sound();
-
-    MoogLadder flt;
-    Oscillator osc, osc2, osc3, osc4, lfo, lfo2;
-
-    float osc_freq = 50.0f;
-    float osc_amp = 1.0f;
-    float filt_freq = 50.0f;
-    float filt_res = 0.0f;
-    float lfo_freq = 0.0f;
-    float lfo_mod_filter = 0.0f;
-    float lfo_mod_oscillator = 0.0f;
-    size_t num_channels = 1;
-};
-
-void Patch::init(size_t sample_rate, size_t num_channels) {
-  // initialize Moogladder object
-  flt.Init(sample_rate);
-  flt.SetRes(0.7);
-
-  // set parameters for SAW oscillator object
-  osc.Init(sample_rate);
-  osc.SetWaveform(Oscillator::WAVE_POLYBLEP_SAW);
-  osc.SetFreq(100);
-  osc.SetAmp(0.25);
-  osc2.Init(sample_rate);
-  osc2.SetWaveform(Oscillator::WAVE_POLYBLEP_SAW);
-  osc2.SetFreq(100);
-  osc2.SetAmp(0.25);
-  osc3.Init(sample_rate);
-  osc3.SetWaveform(Oscillator::WAVE_POLYBLEP_SAW);
-  osc3.SetFreq(100);
-  osc3.SetAmp(0.25);
-  osc4.Init(sample_rate);
-  osc4.SetWaveform(Oscillator::WAVE_POLYBLEP_SAW);
-  osc4.SetFreq(100);
-  osc4.SetAmp(0.25);
-
-  // set parameters for LFO oscillator object
-  lfo.Init(sample_rate);
-  lfo.SetWaveform(Oscillator::WAVE_TRI);
-  lfo.SetAmp(1);
-  lfo.SetFreq(.4);
-  lfo2.Init(sample_rate);
-  lfo2.SetWaveform(Oscillator::WAVE_TRI);
-  lfo2.SetAmp(1);
-  lfo2.SetFreq(.04);
-  this->num_channels = num_channels;
-}
-
-void Patch::render(float **in, float **out, size_t size) {
-  float saw, saw2, saw3, saw4, freq, output;
-  for (size_t i = 0; i < size; i++) {
-    lfo.SetFreq(lfo_freq);
-    lfo2.SetFreq(lfo_freq/10.0f);
-    float lfo_val = lfo.Process();
-    float lfo2_val = lfo2.Process();
-    freq = max(0.0f, osc_freq + (lfo_val * lfo_mod_oscillator));
-    float current_freq = freq;
-    osc.SetFreq(freq);
-    osc2.SetFreq(freq+0.5f);
-    osc3.SetFreq(freq-0.49f);
-    osc4.SetFreq(freq+0.01f);
-    osc.SetAmp(osc_amp);
-    osc2.SetAmp(osc_amp);
-    osc3.SetAmp(osc_amp);
-    osc4.SetAmp(osc_amp);
-    saw = osc.Process();
-    saw2 = osc2.Process();
-    saw3 = osc3.Process();
-    saw4 = osc4.Process();
-    float current_filt_freq = max(0.0f, filt_freq + (lfo2_val * lfo_mod_filter));
-    flt.SetFreq(current_filt_freq);
-    flt.SetRes(filt_res);
-    output = flt.Process(saw + saw2 + saw3 + saw4);
-
-    for (size_t chn = 0; chn < num_channels; chn++) {
-      out[chn][i] = output;
-    }
-  }
-}
-
-void Patch::switch_sound() {
-  Serial.println("Pressed");
-}
-
-#endif
\ No newline at end of file
diff --git a/daisyy/potentiometers.h b/daisyy/potentiometers.h
deleted file mode 100644
index 3fa2db208dc5e57c0bbf4f038e98f9343060dc28..0000000000000000000000000000000000000000
--- a/daisyy/potentiometers.h
+++ /dev/null
@@ -1,94 +0,0 @@
-#include "wiring_analog.h"
-#include <stdint.h>
-#ifndef Potentiometers_h
-#define Potentiometers_h
-#include "Arduino.h"
-#include "luts.h"
-
-// The length of the moving average filter that smooths the
-// controls. Higher number is smoother, but less responsive
-// and needs more memory.
-#define POT_MOVING_AVERAGE_SIZE 10
-
-// MODES
-#define MODE_LIN 0
-#define MODE_EXP 1
-#define MODE_BIP 2
-
-// enum PotentiometerInterpolationMode {
-//   MODE_LIN,
-//   MODE_EXP,
-//   MODE_BIP,
-//   MODE_LAST
-// };
-
-
-class Potentiometer {
-  int pin;
-  int readings[POT_MOVING_AVERAGE_SIZE];
-  uint8_t mode = 0; // 0: Linear, 1: Exponential, 2: Bipolar
-
-  public:
-    Potentiometer(int pin);
-    void init();
-    void setLinear();
-    void setExponential();
-    void setBipolar();
-    float read();
-    float last_reading;
-};
-
-Potentiometer::Potentiometer(int pin) {
-  this->pin = pin;
-}
-
-void Potentiometer::init() {
-  analogReadResolution(12);
-}
-
-void Potentiometer::setLinear() {
-  this->mode = MODE_LIN;
-}
-
-void Potentiometer::setExponential() {
-  this->mode = MODE_EXP;
-}
-
-void Potentiometer::setBipolar() {
-  this->mode = MODE_BIP;
-}
-
-float Potentiometer::read() {
-  int reading = analogRead(this->pin);
-  // Shift all readings in the buffer over by one position, deleting the oldest
-  // and adding the newest
-  for (int i=0; i<POT_MOVING_AVERAGE_SIZE; i++) {
-    int next = i+1;
-    if (next < POT_MOVING_AVERAGE_SIZE) {
-      (this->readings)[i] = (this->readings)[next];
-    }
-  }
-  (this->readings)[POT_MOVING_AVERAGE_SIZE-1] = reading;
-
-  // Get the average of the last readings
-  reading = 0;
-  for (int i=0; i<POT_MOVING_AVERAGE_SIZE; i++) {
-    reading += (this->readings)[i];
-  }
-  reading = reading / POT_MOVING_AVERAGE_SIZE;
-  if (this->mode == MODE_EXP ) {
-    reading = exp_lookup[reading];
-  }
-
-  // Convert the last reading to a float and return
-  float current_reading = reading / 4096.0f;
-  if (this->last_reading && abs(current_reading - this->last_reading) > 0.0009) {
-    Serial.print("Touched Potentiometer: ");
-    Serial.println(current_reading);
-  }
-  this->last_reading = current_reading;
-  return current_reading;
-}
-
-
-#endif
\ No newline at end of file
diff --git a/daisyy/ui.h b/daisyy/ui.h
deleted file mode 100644
index 2dc821c58decca8a2195c78c9589226bf4719356..0000000000000000000000000000000000000000
--- a/daisyy/ui.h
+++ /dev/null
@@ -1,61 +0,0 @@
-#ifndef Ui_h
-#define Ui_h
-
-#include "hardware.h"
-#include "patch.h"
-
-enum UiMode {
-  UI_MODE_SYNTH,
-  UI_MODE_SPLASH,
-  UI_MODE_LAST
-};
-
-void foo() {
-  Serial.println("ASdfsadf");
-  hardware.
-}
-
-class Ui {
-public:
-  Ui() {}
-  ~Ui() {}
-
-  void init(Patch* patch, Hardware* hardware);
-  void poll();
-  void render();
-
-  UiMode mode;
-  Patch* patch_;
-  Hardware* hardware_;
-};
-
-void Ui::init(Patch* patch, Hardware* hardware) {
-  patch_ = patch;
-  hardware_ = hardware;
-  mode = UI_MODE_SYNTH;
-  // hardware_->start_audio(*(patch_->AudioCallback));
-}
-
-void Ui::poll() {
-  hardware_->process_all_controls();
-  if (mode == UI_MODE_SYNTH) {
-    hardware_->controls[0].setExponential();
-    hardware_->controls[1].setExponential();
-    patch_->osc_freq = 10.0f + hardware_->controls[0].last_reading * 1000.0f;
-    patch_->filt_freq = 10.0f + hardware_->controls[1].last_reading * 19000.0f;
-    patch_->filt_res = hardware_->controls[3].last_reading;
-    patch_->osc_amp = hardware_->controls[2].last_reading;
-    patch_->lfo_freq = hardware_->controls[4].last_reading * 500.0f;
-    patch_->lfo_mod_filter = hardware_->controls[5].last_reading * 2.0f * patch_->filt_freq;
-    patch_->lfo_mod_oscillator = hardware_->controls[6].last_reading * 2.0f * patch_->osc_freq;
-    hardware_->buttons[1].onPress(foo);
-  }
-}
-
-void Ui::render() {
-  // render Display here
-}
-
-
-
-#endif
\ No newline at end of file