From d8d34228f04d6b1da218a665d37da43d41782522 Mon Sep 17 00:00:00 2001 From: mxmxmx Date: Sun, 6 Jan 2019 11:04:34 +0100 Subject: [PATCH 1/2] [C2M] latency settings (evenly spaced) --- software/C2M_X/APP_CV2MIDI.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); From da8580a675feca589ac08a7096fd7f5c1ed8d6ed Mon Sep 17 00:00:00 2001 From: mxmxmx Date: Fri, 25 Jan 2019 09:23:34 +0100 Subject: [PATCH 2/2] [info] --- README.md | 4 ++++ 1 file changed, 4 insertions(+) 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