diff --git a/README.md b/README.md index 3abc796..b0f9808 100755 --- a/README.md +++ b/README.md @@ -22,6 +22,10 @@ - teensy 3.2 based - 10HP, depth ~ 35mm +### more info: + +- [docs](https://github.com/mxmxmx/CV2Midi/wiki) + ### DIY: - [PCBs/panels](https://pushermanproductions.com/?s=cv2midi) \ No newline at end of file diff --git a/software/C2M_X/APP_CV2MIDI.ino b/software/C2M_X/APP_CV2MIDI.ino index 272e8da..b608e40 100644 --- a/software/C2M_X/APP_CV2MIDI.ino +++ b/software/C2M_X/APP_CV2MIDI.ino @@ -49,6 +49,7 @@ MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI); const int32_t CM_SCALE = 71000; // scale factor --> velocity (~ x 1.05) const int32_t NUM_CHANNELS = 5; const int32_t DOUBLE_CLICK_TICKS = 3000; +const uint8_t trigger_delay_ticks[NUM_CHANNELS + 0x1] = { 0, 4, 8, 12, 16, 24 }; class CV2MIDI : public settings::SettingsBase { public: @@ -142,8 +143,7 @@ public: trigger_delay_.Update(); if (_triggered) { - // to do: use array with more evenly spaced values - trigger_delay_.Push(get_trigger_delay() << 0x4); + trigger_delay_.Push(trigger_delay_ticks[get_trigger_delay()]); } _triggered = trigger_delay_.triggered();