dzannotti / junox

An emulator of a Roland Juno 60
https://dzannotti.github.io/junox/
GNU General Public License v3.0
22 stars 6 forks source link

Better LFO Attack #13

Closed dzannotti closed 5 years ago

dzannotti commented 5 years ago

in this discussion of https://github.com/dzannotti/junox/pull/12#discussion_r283288880 Andy suggested to model the attack as newValue = (1-oldValue)*rateFactor a brief test figured that rateFactor as phase/attackSamples meant we wouldn't reach 1.0 within attackSamples time, so i deferred it to a later research in order to push the PR along

pendragon-andyh commented 5 years ago

The formula I specified never reaches to 1 ... it just gets closer and closer. Options are:

Emulating these synths is not an exact science. The figures that I provide are at-best approximations that are limited by my ability to accurate measure sub-millisecond events.

dzannotti commented 5 years ago

If i multiply the result by 2, it reaches one (just above as it caps at 1.2), given how low impact something like this is, i'd say we keep it like that for now

dzannotti commented 5 years ago

This one should have been taken care in #28. Let's reopen if the * 2 isn't good?