Custom draw function for curve to show the form and not just name

Draw the curve as well as the name of curve. Could be optimised a bit by not evaluating the curve every pixel, but something like every third pixel. Could also draw dots instead of lines if we need extra speed.
This commit is contained in:
Mikael Degerfält 2019-06-26 17:50:34 +02:00
parent 5d333432ce
commit faf4f528b3
3 changed files with 35 additions and 16 deletions

View file

@ -26,6 +26,9 @@
#define DNWD 0
extern const unsigned short* const curves[];
extern const unsigned short curveIn[];
extern unsigned short breathThrVal;
extern unsigned short breathMaxVal;
extern unsigned short portamThrVal;
@ -110,4 +113,6 @@ extern byte halfPitchBendKey;
extern byte specialKey;
extern byte pinkyKey;
extern unsigned int multiMap(unsigned short val, const unsigned short * _in, const unsigned short * _out, uint8_t size);
#endif