ElectroTechnique / TSynth-Teensy4.1

TSynth for Teensy 4.1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remembering last Patch used

callimero opened this issue · comments

I tink it would be a good idea to start with the last patch used (at least for me)

I hacked(!) this and it somehow works :) No cleanup and this language is way out of my comfort zone...

master...callimero:Carsten

Things:

  • After start the last patch is showed and works, however the list is not updated, so turning the Encoder switches to 1 or 3 I think
  • Massive writing to EEprom should be avoided right? So there needs to be a mechanism to detect if the patch is not changed some time and only then write to eeprom, so scrollng through the list is not writing constantly to eeprom
  • Should there be a Setting to enable this functionality

I added a setting to it so it can be used or not.

Still no idea why or how the list needs to be regenerated, so after loading an old patch turning the Encoder Patch jumps to first or last patch

setPatchesOrdering(patchNo); did not hide good enough! :) Works now. I guess its not pretty but...

Sorry I am a github noob, I should have done branches for every feature.