added note decay and frequency control