Author Topic: envelope segments  (Read 1176 times)

matrix12x

  • Team Member
  • ***
  • Posts: 142
    • View Profile
envelope segments
« on: April 26, 2021, 02:15:49 AM »
Is there a way to make the segments of the envelopes logarithmic (maybe using the mod matrix)? Specifically the decay segment.

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2011
    • View Profile
Re: envelope segments
« Reply #1 on: May 01, 2021, 07:01:28 PM »

 I don't know exactly what you call "logarithmic". Any picture ?
The different segment are defined here in the code :
https://github.com/Ixox/preenfm3/blob/master/firmware/Src/synth/Env.h#L73


matrix12x

  • Team Member
  • ***
  • Posts: 142
    • View Profile
Re: envelope segments
« Reply #2 on: May 01, 2021, 08:10:45 PM »
Oh, the Decay segment is exponential. I didn't realize that. I wrongly assumed it was linear based on the linear representation in the editor. I should have looked in the code.

A logarithmic function is the inverse of the exponential function. However, I think I actually meant exponential.

Thanks. :-)