This updated rotary encoder routine (borrowed from FlashFloppy by Kier
Fraser) should provide much more reliable encoder tracking across a
variety of encoder types, even when the encoder quality is poor or state
transitions are quite noisy.
Improve the button handling code so that a pressed and held button will
now generate additional press events after a short delay.
An acceleration curve is also applied so that events are generated with
increasing frequency the longer the button is held down.
Closes#323.
When the 1MHz timer wraps, the MIDI level meters would appear to be
stuck after a while.
Implement some additional state tracking to guard against timer wrap.
Fixes#148.
Previously, the LCD code needed to be aware of each synthesizer to know
how to draw their respective displays, which wasn't very maintainable.
Introduce a UI class where generic drawing utility functions and
"system" drawing code can be implemented, and move synth-specific
drawing to the synth classes themselves. This simplifies the LCD/OLED
drivers to just being interfaces to the hardware.
Also introduce a "MIDI monitor" class which tracks the state of all MIDI
activity per-synth for level meter drawing purposes. This ensures we
never miss a note; previously we were simply polling each synth engine
for its note velocities per LCD update, which was prone to missing fast
notes and also didn't account for channel volume or expression pedal.
Finally, enable support for 16-character wide displays (closes#58).
This commit introduces the notion of "effects profiles", with
reverb/chorus settings that can be set on a per-SoundFont basis.
The configuration file has been updated with an example of applying a
profile to the GeneralUser GS SoundFont.