Added scaling transform for envelope

This commit is contained in:
xenakios
2018-02-28 00:32:18 +02:00
parent ff35bce695
commit c6c2855a56
3 changed files with 12 additions and 2 deletions

View File

@ -321,6 +321,10 @@ bool EnvelopeComponent::keyPressed(const KeyPress & ev)
m_envelope->m_transform_y_shift += 0.01;
if (ev == 'D')
m_envelope->m_transform_y_shift -= 0.01;
if (ev == 'R')
m_envelope->m_transform_y_scale += 0.05;
if (ev == 'F')
m_envelope->m_transform_y_scale -= 0.05;
repaint();
if (ev == KeyPress::deleteKey)