I'm investigating the possibility to use the Arduino platform to convert standard midi notes to CC messages. The Kaossilator Pro doesn't accept MIDI notes from a keyboard, but instead accepts CC messages for X/Y inputs to the touchpad. There have been a couple software solutions to date, but neither are very good in practice.
The desired result is to use a keyboard to play notes from the Kaossilator Pro. Notes for X axis, Mod wheel for Y.
I'm asking since I'm very new to the Arduino platform and I want to make sure the task is possible before going down the rabbit hole. I once converted the MIDI shield to work with the MIDI mod for Gameboy with great success, but that code was pre-made.
I'm not really familiar with that Kaosilator, but I can tell you that my code works for what I'm using it for. Mapping notes to CCs has been the easiest part of my project so far. If you know the notes and the CC's, then it's a matter of coding.
I can agree with Deseipel. If you have Max MSP, it may help with quickly prototyping the mapping you wish to do and quickly get the codes you want (I prototype everything midi through Max). JM2C
I'm downloading the MAX MSP demo. Is there a good code example for converting notes to CC? If I have a sample to modify, I can rig something to work. Most of my code skills are in the Unity 3D engine so I hope it won't be too difficult to understand.
I just whipped this up for you (attachment). Let me know if you have any questions.
Just open max and paste the code inside.
This code will let you play with sending midi notes as a controller value (via the keyboard at the right), and you can set the value with the number box.
The other stuff in the middle (the big cluster of stuff) will monitor what comes in, and you can send custom messages out from here.
I'll check this out once I return to my station tomorrow. I've never heard of MAX so I'm not 100% sure how this will apply to arduino, but I trust it will make more sense once I dive in. You guys are great btw.
Max is just a visual scripting language, correct me if I'm wrong here, based off of C++ but not directly compatible.
You can use Max to communicate with Arduino, but code isn't compatible (that I know of) between the two. If there is an automatic way to convert max code for Arduino, then please let me know!
I personally use Max when I'm prototyping Midi stuff; yes, it may seem odd as it's seemingly incompatible code, but I design my whole system in Max to get the entire concept down before writing code for Arduino. It's much quicker for me to work with hardware by visually programming and not having to upload and wait a minute between changes in code, etc.
When I have my rough draft written out in Max, it's quite easy and quick for me to translate everything manually to Arduino, rather than only building it on the Arduino alone.
I'm digging into this now, any chance for some commented notes on the code above? I mainly work in Unity3D but this environment is very new to me. I feel like a 1st grader all over again.
I plan to do EXACTLY the same thing. Did you finish your project? I was planning to build a small converter for exactly the same purpose and sequence the kaossilator with an external hardware.