         #ifndef DEBUG
         MIDI.sendPitchBend((double) pitch/127.0, MIDI_CHANNEL);
 
-        /* This is retarded. In theory, we don't need this line of code but
-         * there seems to be a bug in the MIDI library.
-         * Whatever... now it works.
-         */
-        MIDI.sendControlChange(0, 0, 1);
+        do_stuff_because_midi_lib_is_broken();
         #endif
 
         last_midi_pitch = pitch;

        // Aftertouch
        #ifndef DEBUG
        MIDI.sendPolyPressure(last_midi_note, velocity, MIDI_CHANNEL);
        MIDI.sendControlChange(0, 0, 1);
        #endif

        last_midi_velocity = velocity;

#define     POTENTIOMETER_PIN 5
#define 	MIDI_PITCHBEND_MIN   -8192.0
#define 	MIDI_PITCHBEND_MAX   8191.0

/* If the potentiometer reading is greater than
 * MovingAverage plus/minus this value, the average is reset
 */
#define     PORTAMENTO_TOLERENCE 90

// Number of notes in range
#define     RANGE       24
