Guys, I'm working on a 16 Step MIDI Drum-Machine to run on Arduino Uno/Mega/...
I want to use its EEPROM to hold the patterns, so the user can use a Song-Link that plays patterns in order. But the problem is the size of each pattern, and I don't know how to optimize. I was wondering maybe if I could "compress" each pattern before storing, and "uncompress" on reading?
Here's the pattern per say.
unsigned int dmSteps;
Its just 14 Tracks + 1 Accent Track (last) - since this is a 16 bit number, each bit is a step On/Off.
I also need to decide how to store the patterns in the EEPROM and how to manage the Song-Mode. (shouldn't be too hard I got an Arduino Mega, which has plenty resources, but I want my first project to run on the Uno too.
Any hints would be mostly appreciated.
Thanks in advance.
Best Regards, WilliamK