Change Slower element maximum value?
-
- KVRist
- Topic Starter
- 225 posts since 11 Apr, 2007 from Montreal, Canada
In SB1, what is the "Change Slower" element maximum value?
-
- KVRist
- 158 posts since 25 Mar, 2005
There is, in theory, no maximum. In practice, you'll hit the limit due to the precision of the floating point number representations.
-
- KVRist
- Topic Starter
- 225 posts since 11 Apr, 2007 from Montreal, Canada
OK, thanks.
If I wanted to construct from scratch a "change slower" circuit, what would be needed?
If I wanted to construct from scratch a "change slower" circuit, what would be needed?
-
- KVRist
- 45 posts since 16 Feb, 2012 from Indiana
I think it can be done with an envelope detector. Just set the attack and release to the same values. http://musicdsp.org/archive.php?classid=2#97 This is an algorithm for an envelope detector. There's a few of 'em here.
-
- KVRist
- 158 posts since 25 Mar, 2005
The algorithm is simple:
sr is sample rate, t is speed in milliseconds, i is input sample, o is output sample, c is a derived coefficient, and s is a state value.
Initialisation:
s = 0
c = 0.01**(1000 / (t * sr)) (where ** is the power operator)
Application:
s = c*s + (1-c)*i
o = s
You can also look at the smoother circuit in SBv2 which does the same thing, except it initiatize s to the first sample it sees.
sr is sample rate, t is speed in milliseconds, i is input sample, o is output sample, c is a derived coefficient, and s is a state value.
Initialisation:
s = 0
c = 0.01**(1000 / (t * sr)) (where ** is the power operator)
Application:
s = c*s + (1-c)*i
o = s
You can also look at the smoother circuit in SBv2 which does the same thing, except it initiatize s to the first sample it sees.
-
- KVRist
- Topic Starter
- 225 posts since 11 Apr, 2007 from Montreal, Canada
OK, thanks. It works, but it's too slow. The feedback element maybe?
You do not have the required permissions to view the files attached to this post.
-
- KVRist
- 158 posts since 25 Mar, 2005
Can't implement it manually in SBv1, since the feedback element delays the signal a full block instead of a single sample.
-
- KVRist
- Topic Starter
- 225 posts since 11 Apr, 2007 from Montreal, Canada
Ah, OK... Thanks.