joeSeggiola / arduino-eurorack-projects

Eurorack modular synthesizer DIY projects with Arduino and C++ libraries.
https://www.tindie.com/stores/joeseggiola/
GNU General Public License v3.0
256 stars 30 forks source link

MIDI version of In CV? #8

Open grahamlucas opened 1 month ago

grahamlucas commented 1 month ago

Hi Joe, I've only just discovered your In CV project which looks fantastic so was a bit disappointed to discover that the module is no longer available - and I don't have the skills to build my own. I do however have an Arduino and MIDI shield so was wondering how easy it would be to modify your code for MIDI output?

I'm happy to have a go at modding the code myself but I'm not much of a coder (more a dabbler) so just wanted to check if you think it's feasible - and if you'd be happy to offer advice if/when I get stuck?!

Cheers, Graham

joeSeggiola commented 1 month ago

Hi Graham. It should be fairly easy to get MIDI out instead of CV/gate. I think you just need to:

  1. Discard all the code that manages actual CV/gate outputs, i.e. remove dac1, dac2 and gates instances, and all the code for the calibration procedure.
  2. Replace the CV values map here with corresponding MIDI note numbers (should be easy since I commented with note names).
  3. Rewrite the code here that updates analog outputs, replacing it with the right combinations of MIDI note on/off, picking note values from the PATTERNS_CV map you changed before.

I'll leave this issue open, so you can write here if you get stuck. I'll be happy to help with specific questions.

grahamlucas commented 1 month ago

Thanks for the quick reply and helpful advice!

On 3 Aug 2024, at 15:52, joeSeggiola @.***> wrote:

Hi Graham. It should be fairly easy to get MIDI out instead of CV/gate. I think you just need to:

Discard all the code that manages actual CV/gate outputs, i.e. remove dac1, dac2 and gates instances, and all the code for the calibration procedure. Replace the CV values map here https://github.com/joeSeggiola/arduino-eurorack-projects/blob/91674411e60ebbd048648dde172f46c521c8ec17/in-cv/patterns/patterns.h#L12-L31 with corresponding MIDI note numbers (should be easy since I commented with note names). Rewrite the code here https://github.com/joeSeggiola/arduino-eurorack-projects/blob/91674411e60ebbd048648dde172f46c521c8ec17/in-cv/in-cv.ino#L608-L619 that updated analog outputs, replacing it with the right combinations of MIDI note on/off, picking note values from the PATTERNS_CV map you changed before. I'll leave this issue open, so you can write here if you get stuck. I'll be happy to help with specific questions.

— Reply to this email directly, view it on GitHub https://github.com/joeSeggiola/arduino-eurorack-projects/issues/8#issuecomment-2266745907, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANGB25RR7ZY2Y3Z7H4OBY7LZPTVEXAVCNFSM6AAAAABL5YMBO6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRWG42DKOJQG4. You are receiving this because you authored the thread.