i’m starting to play with the analog toolbox app but before spending many hours to program what i need, i want to be sure that what i’m doing won’t lead to performance issue:
so, it’s what i’ve done for the while:
instead of a static configuration, the Aouts can be modulated by all available source (midi, lfo1, lfo2, eg, pot) depending on a din event (to make it more clear: you press a buton to select from which source the Aout will be modulated )
here is a portion of the code i’ve started (it works):
// AOUT #1: forward Note value of MIDI channel #9 or lfo value
I ?think? it was TK that recommended another method, where you can increment a counter each time the function is called, and then use a timer to send that value over MIDI at regular intervals. This way, you know that for example every 500ms your function runs N times…
My twist on this method is to export the data to a file, parse the file for the rate of change of the counter, and graph it in excel. You can use multiple data sets in excel to compare the performance of different methods of code.
TK has dropped a few cool hints about tweaking and monitoring performance (some of which I have in a 2 foot tall pile of printed forum pages hehehe)it’d make a good wiki page actually… If anyone’s interested, I’ll search around and compile what I can find?
a little off topic, but I think that the SRIO problem
with the debounce method and a ledmatrix would also be useful WIKI info…
it will be obsolete as soon as I release MIOS V1.9c - I already made the required change, it was easier than expected. And now it works a little bit better, because debouncing is not applied on encoder pins anymore.
I’ve tested it on my MBSID and MBSEQ so far, but they have perfect buttons and therefore normaly don’t need debouncing anyhow. With the other MIDIboxes I will do this in the next days…
If you haven’t updated to the new bootloader yet, you have to do this before. Thereafter update from MIOS V1.9a to this new version (the bootloader/MIOS update package will be available with the official release, because it’s some additional effort for me to combine the codes and to calculate the correct CRC)
The algorithm I’ve developed is very tricky, and I’m not 100% sure if it works in all cases (haven’t tested it that much yet), so anybody who tries this out on his MIDIbox helps me a lot!